commit | d61cff9c54506d9a9d95067203608f144107e8c0 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Tue Jul 03 14:44:20 2018 -0700 |
committer | JP Sugarbroad <jpsugar@google.com> | Tue Aug 21 13:36:05 2018 -0700 |
tree | c5470351c0d3620b747617668486e2cabe08ee8f | |
parent | d324feb10c00f1a63e6cebb3eb52a4d7fcaa6ea7 [diff] |
Update CTS for I78948446a63b428ae750464194558fd44a658493 Test: CtsShortcutManagerTestCases Bug: 109824443 Change-Id: I0d6934e6871957189bddc82520f78bf9d8c5499c (cherry picked from commit 254f1e13ed196a6e2926bef14d21ebd553cdd11f)
diff --git a/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ShortcutManagerClientApiTest.java b/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ShortcutManagerClientApiTest.java index c0f76a6..99c7dc1 100644 --- a/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ShortcutManagerClientApiTest.java +++ b/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ShortcutManagerClientApiTest.java
@@ -129,6 +129,8 @@ assertExpectException(NullPointerException.class, "action must be set", () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(new Intent())); + setCurrentCaller(getTestContext()); + assertExpectException( IllegalArgumentException.class, "Short label must be provided", () -> { ShortcutInfo si = new ShortcutInfo.Builder(getTestContext(), "id")