Make Settings robotest work with tot Robolectric
Bug: 116278591 Test: make -j RunSettingsRoboTests Change-Id: I32cb2fcf6094675f79d2fc24702ef6298a9691e4
This commit is contained in:
@@ -64,7 +64,7 @@ public class AutoSyncDataPreferenceControllerTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
ShadowApplication shadowContext = ShadowApplication.getInstance();
|
||||
shadowContext.setSystemService(Context.USER_SERVICE, mUserManager);
|
||||
mContext = shadowContext.getApplicationContext();
|
||||
mContext = RuntimeEnvironment.application;
|
||||
mController = new AutoSyncDataPreferenceController(mContext, mFragment);
|
||||
mConfirmSyncFragment = new AutoSyncDataPreferenceController.ConfirmAutoSyncChangeFragment();
|
||||
mConfirmSyncFragment.setTargetFragment(mFragment, 0);
|
||||
|
||||
Reference in New Issue
Block a user