Remove context from powerUsageFeatureProvider
PowerUsageFeatureProviderImpl is created by using application context, no need pass context in when get. Bug: 286764889 Test: m Settings Change-Id: Iec81e98648fcb2f6a20978ef4ce164e1af50a804
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)))
|
||||
|
Reference in New Issue
Block a user