Merge "Support some phone information in Settings slice"
This commit is contained in:
@@ -48,7 +48,7 @@ import org.robolectric.annotation.Config;
|
||||
@RunWith(SettingsRobolectricTestRunner.class)
|
||||
public class DeviceModelPreferenceControllerTest {
|
||||
|
||||
private final String KEY = "device_model_key";
|
||||
private final String KEY = "device_model";
|
||||
|
||||
@Mock
|
||||
private Fragment mFragment;
|
||||
@@ -101,6 +101,11 @@ public class DeviceModelPreferenceControllerTest {
|
||||
.add(any(HardwareInfoDialogFragment.class), eq(HardwareInfoDialogFragment.TAG));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSliceable_shouldBeTrue() {
|
||||
assertThat(mController.isSliceable()).isTrue();
|
||||
}
|
||||
|
||||
private boolean containBuildModel(CharSequence result) {
|
||||
final String oracle = mContext.getResources().getString(R.string.model_summary,
|
||||
Build.MODEL);
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.robolectric.annotation.Resetter;
|
||||
@RunWith(SettingsRobolectricTestRunner.class)
|
||||
public class FirmwareVersionPreferenceControllerTest {
|
||||
|
||||
private final String KEY = "firmware_key";
|
||||
private final String KEY = "firmware_version";
|
||||
|
||||
@Mock
|
||||
private Fragment mFragment;
|
||||
@@ -103,6 +103,11 @@ public class FirmwareVersionPreferenceControllerTest {
|
||||
assertThat(result).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSliceable_shouldBeTrue() {
|
||||
assertThat(mController.isSliceable()).isTrue();
|
||||
}
|
||||
|
||||
@Implements(FirmwareVersionDialogFragment.class)
|
||||
public static class ShadowFirmwareVersionDialogFragment {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user