Merge "Remove context from powerUsageFeatureProvider" into main
This commit is contained in:
@@ -57,7 +57,7 @@ public class BatteryInfoLoaderTest {
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mContext = spy(RuntimeEnvironment.application);
|
||||
FakeFeatureFactory.setupForTest().getPowerUsageFeatureProvider(mContext);
|
||||
FakeFeatureFactory.setupForTest().getPowerUsageFeatureProvider();
|
||||
|
||||
doReturn(mContext).when(mContext).getApplicationContext();
|
||||
when(mContext.getSystemService(eq(Context.BATTERY_STATS_SERVICE)))
|
||||
|
@@ -162,8 +162,9 @@ public class FakeFeatureFactory extends FeatureFactory {
|
||||
return batterySettingsFeatureProvider;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public PowerUsageFeatureProvider getPowerUsageFeatureProvider(Context context) {
|
||||
public PowerUsageFeatureProvider getPowerUsageFeatureProvider() {
|
||||
return powerUsageFeatureProvider;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user