Snap for 9312404 from dc6f8fd7ed to udc-release

Change-Id: I67ca88fff512d2acc418779ff08a6a767a720e0a
This commit is contained in:
Android Build Coastguard Worker
2022-11-20 00:31:09 +00:00
3 changed files with 6 additions and 3 deletions

View File

@@ -71,7 +71,8 @@ public class AnomalyCleanupJobServiceTest {
MockitoAnnotations.initMocks(this);
mContext = spy(RuntimeEnvironment.application);
mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
mJobScheduler = spy(new JobSchedulerImpl(mContext,
IJobScheduler.Stub.asInterface(new Binder())));
when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);
}

View File

@@ -69,7 +69,8 @@ public class AnomalyConfigJobServiceTest {
MockitoAnnotations.initMocks(this);
mContext = spy(RuntimeEnvironment.application);
mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
mJobScheduler = spy(new JobSchedulerImpl(mContext,
IJobScheduler.Stub.asInterface(new Binder())));
when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);
mJobService = spy(new AnomalyConfigJobService());

View File

@@ -113,7 +113,8 @@ public class AnomalyDetectionJobServiceTest {
MockitoAnnotations.initMocks(this);
mContext = spy(RuntimeEnvironment.application);
mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
mJobScheduler = spy(new JobSchedulerImpl(mContext,
IJobScheduler.Stub.asInterface(new Binder())));
when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);
mPolicy = new BatteryTipPolicy(mContext);