Merge "Fix error prone of AccessibilityShortcutControllerTest" into tm-qpr-dev

This commit is contained in:
Menghan Li
2023-02-10 04:37:22 +00:00
committed by Android (Google) Code Review

View File

@@ -457,6 +457,7 @@ public class AccessibilityShortcutControllerTest {
} }
} }
@Test
public void getFrameworkFeatureMap_containsExpectedDefaultKeys() { public void getFrameworkFeatureMap_containsExpectedDefaultKeys() {
final Map<ComponentName, AccessibilityShortcutController.ToggleableFrameworkFeatureInfo> final Map<ComponentName, AccessibilityShortcutController.ToggleableFrameworkFeatureInfo>
frameworkFeatureMap = frameworkFeatureMap =
@@ -489,6 +490,7 @@ public class AccessibilityShortcutControllerTest {
assertFalse(frameworkFeatureMap.containsKey(ONE_HANDED_COMPONENT_NAME)); assertFalse(frameworkFeatureMap.containsKey(ONE_HANDED_COMPONENT_NAME));
} }
@Test
public void testOnAccessibilityShortcut_forServiceWithNoSummary_doesNotCrash() public void testOnAccessibilityShortcut_forServiceWithNoSummary_doesNotCrash()
throws Exception { throws Exception {
configureShortcutEnabled(ENABLED_EXCEPT_LOCK_SCREEN); configureShortcutEnabled(ENABLED_EXCEPT_LOCK_SCREEN);