Loading tests/robotests/src/com/android/settings/development/DevelopmentSettingsDashboardFragmentTest.java +11 −2 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ import org.robolectric.RuntimeEnvironment; import org.robolectric.annotation.Config; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; import org.robolectric.shadows.androidx.fragment.FragmentController; import org.robolectric.shadow.api.Shadow; import org.robolectric.shadows.ShadowUserManager; import org.robolectric.shadows.androidx.fragment.FragmentController; import org.robolectric.util.ReflectionHelpers; import java.util.List; Loading Loading @@ -133,7 +133,8 @@ public class DevelopmentSettingsDashboardFragmentTest { @Config(shadows = { ShadowPictureColorModePreferenceController.class, ShadowAdbPreferenceController.class, ShadowClearAdbKeysPreferenceController.class ShadowClearAdbKeysPreferenceController.class, ShadowWirelessDebuggingPreferenceController.class }) public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() { final Context appContext = RuntimeEnvironment.application; Loading Loading @@ -325,4 +326,12 @@ public class DevelopmentSettingsDashboardFragmentTest { return true; } } @Implements(WirelessDebuggingPreferenceController.class) public static class ShadowWirelessDebuggingPreferenceController { @Implementation protected boolean isAvailable() { return true; } } } Loading
tests/robotests/src/com/android/settings/development/DevelopmentSettingsDashboardFragmentTest.java +11 −2 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ import org.robolectric.RuntimeEnvironment; import org.robolectric.annotation.Config; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; import org.robolectric.shadows.androidx.fragment.FragmentController; import org.robolectric.shadow.api.Shadow; import org.robolectric.shadows.ShadowUserManager; import org.robolectric.shadows.androidx.fragment.FragmentController; import org.robolectric.util.ReflectionHelpers; import java.util.List; Loading Loading @@ -133,7 +133,8 @@ public class DevelopmentSettingsDashboardFragmentTest { @Config(shadows = { ShadowPictureColorModePreferenceController.class, ShadowAdbPreferenceController.class, ShadowClearAdbKeysPreferenceController.class ShadowClearAdbKeysPreferenceController.class, ShadowWirelessDebuggingPreferenceController.class }) public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() { final Context appContext = RuntimeEnvironment.application; Loading Loading @@ -325,4 +326,12 @@ public class DevelopmentSettingsDashboardFragmentTest { return true; } } @Implements(WirelessDebuggingPreferenceController.class) public static class ShadowWirelessDebuggingPreferenceController { @Implementation protected boolean isAvailable() { return true; } } }