Merge "Fix DevelopmentSettingsDashboardFragmentTest" into rvc-dev am: 40613ef30c
am: 70f287362c
am: aa16276bbe
Change-Id: I270d7649d02a172c15a9fb27c05a3a96b1935fe0
This commit is contained in:
@@ -49,9 +49,9 @@ import org.robolectric.RuntimeEnvironment;
|
|||||||
import org.robolectric.annotation.Config;
|
import org.robolectric.annotation.Config;
|
||||||
import org.robolectric.annotation.Implementation;
|
import org.robolectric.annotation.Implementation;
|
||||||
import org.robolectric.annotation.Implements;
|
import org.robolectric.annotation.Implements;
|
||||||
import org.robolectric.shadows.androidx.fragment.FragmentController;
|
|
||||||
import org.robolectric.shadow.api.Shadow;
|
import org.robolectric.shadow.api.Shadow;
|
||||||
import org.robolectric.shadows.ShadowUserManager;
|
import org.robolectric.shadows.ShadowUserManager;
|
||||||
|
import org.robolectric.shadows.androidx.fragment.FragmentController;
|
||||||
import org.robolectric.util.ReflectionHelpers;
|
import org.robolectric.util.ReflectionHelpers;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -133,7 +133,8 @@ public class DevelopmentSettingsDashboardFragmentTest {
|
|||||||
@Config(shadows = {
|
@Config(shadows = {
|
||||||
ShadowPictureColorModePreferenceController.class,
|
ShadowPictureColorModePreferenceController.class,
|
||||||
ShadowAdbPreferenceController.class,
|
ShadowAdbPreferenceController.class,
|
||||||
ShadowClearAdbKeysPreferenceController.class
|
ShadowClearAdbKeysPreferenceController.class,
|
||||||
|
ShadowWirelessDebuggingPreferenceController.class
|
||||||
})
|
})
|
||||||
public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() {
|
public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() {
|
||||||
final Context appContext = RuntimeEnvironment.application;
|
final Context appContext = RuntimeEnvironment.application;
|
||||||
@@ -325,4 +326,12 @@ public class DevelopmentSettingsDashboardFragmentTest {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Implements(WirelessDebuggingPreferenceController.class)
|
||||||
|
public static class ShadowWirelessDebuggingPreferenceController {
|
||||||
|
@Implementation
|
||||||
|
protected boolean isAvailable() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user