Convert SettingsLib Lifecycle to Flatfoot
Bug: 69257739 Test: m -j RunSettingsRoboTests Change-Id: I27e7850c39afb9c09297007e8cc352f410665653
This commit is contained in:
@@ -66,13 +66,15 @@ public class LocationEnablerTest {
|
||||
|
||||
private Context mContext;
|
||||
private LocationEnabler mEnabler;
|
||||
private Lifecycle mLifecycle;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mContext = spy(RuntimeEnvironment.application);
|
||||
when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager);
|
||||
mEnabler = spy(new LocationEnabler(mContext, mListener, new Lifecycle()));
|
||||
mLifecycle = new Lifecycle(() -> mLifecycle);
|
||||
mEnabler = spy(new LocationEnabler(mContext, mListener, mLifecycle));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user