Loading tests/robotests/src/com/android/settings/fuelgauge/BatteryChartPreferenceControllerTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -93,8 +93,9 @@ public final class BatteryChartPreferenceControllerTest { @Before public void setUp() { org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); MockitoAnnotations.initMocks(this); Locale.setDefault(new Locale("en_US")); org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); mFeatureFactory = FakeFeatureFactory.setupForTest(); mMetricsFeatureProvider = mFeatureFactory.metricsFeatureProvider; mContext = spy(RuntimeEnvironment.application); Loading tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ public final class ConvertUtilsTest { mContext = spy(RuntimeEnvironment.application); mFeatureFactory = FakeFeatureFactory.setupForTest(); mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; Locale.setDefault(new Locale("en_US")); org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); } @Test Loading Loading
tests/robotests/src/com/android/settings/fuelgauge/BatteryChartPreferenceControllerTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -93,8 +93,9 @@ public final class BatteryChartPreferenceControllerTest { @Before public void setUp() { org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); MockitoAnnotations.initMocks(this); Locale.setDefault(new Locale("en_US")); org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); mFeatureFactory = FakeFeatureFactory.setupForTest(); mMetricsFeatureProvider = mFeatureFactory.metricsFeatureProvider; mContext = spy(RuntimeEnvironment.application); Loading
tests/robotests/src/com/android/settings/fuelgauge/ConvertUtilsTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ public final class ConvertUtilsTest { mContext = spy(RuntimeEnvironment.application); mFeatureFactory = FakeFeatureFactory.setupForTest(); mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; Locale.setDefault(new Locale("en_US")); org.robolectric.shadows.ShadowSettings.set24HourTimeFormat(false); } @Test Loading