Home
last modified time | relevance | path

Searched refs:mMockDeviceManager (Results 1 – 9 of 9) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceUtilStatsMonitorTest.java34 private IDeviceManager mMockDeviceManager; field in DeviceUtilStatsMonitorTest
39 mMockDeviceManager = EasyMock.createNiceMock(IDeviceManager.class); in setUp()
43 return mMockDeviceManager; in setUp()
49 return mMockDeviceManager.listAllDevices(); in setUp()
56 EasyMock.replay(mMockDeviceManager); in testEmpty()
64 EasyMock.expect(mMockDeviceManager.listAllDevices()).andReturn(buildDeviceList( in testOnlyAvailable()
66 EasyMock.replay(mMockDeviceManager); in testOnlyAvailable()
79 EasyMock.expect(mMockDeviceManager.listAllDevices()).andReturn(buildDeviceList( in testOnlyAllocated()
81 EasyMock.replay(mMockDeviceManager); in testOnlyAllocated()
96 EasyMock.expect(mMockDeviceManager.listAllDevices()).andReturn(buildDeviceList( in testExceededSamples()
[all …]
DDeviceUtilStatsMonitorLoadTest.java37 private IDeviceManager mMockDeviceManager; field in DeviceUtilStatsMonitorLoadTest
42 mMockDeviceManager = EasyMock.createNiceMock(IDeviceManager.class); in setUp()
46 return mMockDeviceManager; in setUp()
52 return mMockDeviceManager.listAllDevices(); in setUp()
71 EasyMock.expect(mMockDeviceManager.listAllDevices()).andStubReturn(deviceList); in testManyRecords()
72 EasyMock.replay(mMockDeviceManager); in testManyRecords()
DManagedTestDeviceFactoryTest.java34 IDeviceManager mMockDeviceManager; field in ManagedTestDeviceFactoryTest
41 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp()
43 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) ; in setUp()
78 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testFrameworkAvailable()
104 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testFrameworkNotAvailable()
130 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testCheckFramework_emptyReturns()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java45 private IDeviceManager mMockDeviceManager; field in RemoteManagerFuncTest
53 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp()
55 mRemoteMgr = new RemoteManager(mMockDeviceManager, mMockScheduler); in setUp()
77 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testAllocateFree()
78 mMockDeviceManager.freeDevice(EasyMock.eq(device), in testAllocateFree()
81 EasyMock.replay(mMockDeviceManager, device); in testAllocateFree()
89 EasyMock.verify(mMockDeviceManager); in testAllocateFree()
136 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testAllocateClose()
137 mMockDeviceManager.freeDevice(EasyMock.eq(device), in testAllocateClose()
140 EasyMock.replay(mMockDeviceManager, device); in testAllocateClose()
[all …]
DRemoteManagerTest.java51 private IDeviceManager mMockDeviceManager; field in RemoteManagerTest
57 mMockDeviceManager = Mockito.mock(IDeviceManager.class); in setUp()
60 new RemoteManager(mMockDeviceManager, mMockScheduler) { in setUp()
172 verify(mMockDeviceManager).forceAllocateDevice(Mockito.eq("testserial")); in testProcessClientOperations_allocateDevice_fail()
179 .when(mMockDeviceManager) in testProcessClientOperations_allocateDevice()
189 verify(mMockDeviceManager).forceAllocateDevice(Mockito.eq("testserial")); in testProcessClientOperations_allocateDevice()
208 verify(mMockDeviceManager, Mockito.times(0)).freeDevice(Mockito.any(), Mockito.any()); in testProcessClientOperations_processFree_notFound()
228 verify(mMockDeviceManager, Mockito.times(1)) in testProcessClientOperations_processFree()
251 verify(mMockDeviceManager, Mockito.times(2)) in testProcessClientOperations_processFree_wildcard()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DSdkAvdPreparerTest.java48 private IDeviceManager mMockDeviceManager; field in SdkAvdPreparerTest
60 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp()
62 mPreparer = new SdkAvdPreparer(mMockRunUtil, mMockDeviceManager) { in setUp()
117 mMockDeviceManager.launchEmulator(EasyMock.eq(mMockDevice), EasyMock.anyLong(), in testSetUp()
144 mMockDeviceManager.launchEmulator(EasyMock.eq(mMockDevice), EasyMock.anyLong(), in testSetUp_noAvdName()
179 mMockDeviceManager.launchEmulator(EasyMock.eq(mMockDevice), EasyMock.anyLong(), in testSetUp_failedBoot()
182 mMockDeviceManager.killEmulator(EasyMock.eq(mMockDevice)); in testSetUp_failedBoot()
255 EasyMock.replay(mMockRunUtil, mMockDeviceManager, mMockBuildInfo, mMockDevice, in replayMocks()
260 EasyMock.verify(mMockRunUtil, mMockDeviceManager, mMockBuildInfo, mMockDevice, in verifyMocks()
DDeviceFlashPreparerTest.java53 private IDeviceManager mMockDeviceManager; field in DeviceFlashPreparerTest
64 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp()
87 return mMockDeviceManager; in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerStressApp.java38 private IDeviceManager mMockDeviceManager; field in CommandSchedulerStressApp
45 mMockDeviceManager = new MockDeviceManager(100); in CommandSchedulerStressApp()
58 return mMockDeviceManager; in CommandSchedulerStressApp()
DCommandSchedulerFuncTest.java67 private MockDeviceManager mMockDeviceManager; field in CommandSchedulerFuncTest
89 mMockDeviceManager = new MockDeviceManager(1); in setUp()
127 return mMockDeviceManager; in setUp()
273 mMockDeviceManager.clearAllDevices(); in testBatteryLowLevel()
274 mMockDeviceManager.addDevice(mockDevice); in testBatteryLowLevel()
322 mMockDeviceManager.clearAllDevices(); in testBatteryLowLevel_interruptible()
323 mMockDeviceManager.addDevice(mockDevice); in testBatteryLowLevel_interruptible()
401 return mMockDeviceManager; in testShutdown_notInterruptible()
516 return mMockDeviceManager; in testShutdown_notInterruptible_timeout()
589 return mMockDeviceManager; in testShutdown_invocation_timeout()