commit | 8dbdb4ecef3410dca601ca50d1b79e3a6e738622 | [log] [tgz] |
---|---|---|
author | Riley Jones <jonesriley@google.com> | Tue Feb 27 21:58:50 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Feb 27 21:58:50 2024 +0000 |
tree | 63239d33dea05837c9eacab5da8481c3ff5b75de | |
parent | d625b72bacd56901d50b827d097987d707ae1341 [diff] | |
parent | 3a5b5a4d2a807201669586e27ff9101777cfd5a0 [diff] |
Merge "Fix for EditShortcutsPreferenceFragmentTest to mock the correct AccessibilityTarget fields" into main
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; }