commit | c157cc6a1e6c85354ec50644f446ffd01f3ec4d6 | [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:01 2018 -0700 |
tree | 7608d6afd39b2aaef65a9063f5a9a9d79cf78eb4 | |
parent | a1012aa70c062fddbf23da5c417e1bf041078720 [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 4a086a8..78a7fcb 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
@@ -126,6 +126,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")