commit | 3a5b5a4d2a807201669586e27ff9101777cfd5a0 | [log] [tgz] |
---|---|---|
author | Riley Jones <jonesriley@google.com> | Mon Feb 26 21:27:00 2024 +0000 |
committer | Riley Jones <jonesriley@google.com> | Tue Feb 27 18:13:38 2024 +0000 |
tree | 27c79f2aae7e66c7aa423a82b74e49cba713c120 | |
parent | 22b3c1fe1dbdfd0c7c6243c22bd64d1b5601d80a [diff] |
Fix for EditShortcutsPreferenceFragmentTest to mock the correct AccessibilityTarget fields Also adds settings a11y tests to TEST_MAPPING presubmit Bug: 324945360 Test: EditShortcutsPreferenceFragmentTest Flag: N/A Change-Id: I8c36031ae33f2d74297ed4bbb0aa4fcbd026db76
diff --git a/tests/robotests/src/com/android/settings/accessibility/shortcuts/EditShortcutsPreferenceFragmentTest.java b/tests/robotests/src/com/android/settings/accessibility/shortcuts/EditShortcutsPreferenceFragmentTest.java index b2ddb6c..56486d2 100644 --- a/tests/robotests/src/com/android/settings/accessibility/shortcuts/EditShortcutsPreferenceFragmentTest.java +++ b/tests/robotests/src/com/android/settings/accessibility/shortcuts/EditShortcutsPreferenceFragmentTest.java
@@ -549,6 +549,7 @@ ComponentName componentName, String label) { AccessibilityTarget target = mock(AccessibilityTarget.class); when(target.getComponentName()).thenReturn(componentName); + when(target.getId()).thenReturn(componentName.flattenToString()); when(target.getLabel()).thenReturn(label); return target; }