Revert "[Settings] Support getSystemService(Class<T>)"
This reverts commit d5ccde31a8
.
Reason for revert: failure on test cases
Change-Id: I0a179a6ebb5ef1dec566ce6e8facd5f3b82d7c8a
This commit is contained in:
@@ -53,7 +53,7 @@ public class WifiEnablerTest {
|
||||
@Before
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
when(mContext.getSystemService(WifiManager.class)).thenReturn(mWifiManager);
|
||||
when(mContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(mWifiManager);
|
||||
mEnabler = new WifiEnabler(mContext, mock(SwitchWidgetController.class),
|
||||
mock(MetricsFeatureProvider.class), mConnectivityManager);
|
||||
}
|
||||
|
Reference in New Issue
Block a user