/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 45 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() 135 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testAllocateClose() 136 mMockDeviceManager.freeDevice(EasyMock.eq(device), in testAllocateClose() 139 EasyMock.replay(mMockDeviceManager, device); in testAllocateClose() [all …]
|
D | RemoteManagerTest.java | 51 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/cluster/ |
D | ClusterCommandSchedulerTest.java | 124 private IDeviceManager mMockDeviceManager; field in ClusterCommandSchedulerTest 147 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp() 191 return mMockDeviceManager; in setUp() 265 EasyMock.expect(mMockDeviceManager.listAllDevices()).andReturn(deviceList); 267 EasyMock.replay(mMockDeviceManager); 269 mScheduler.getDevices(mMockDeviceManager, false); 270 EasyMock.verify(mMockDeviceManager); 289 EasyMock.expect(mMockDeviceManager.listAllDevices()).andReturn(deviceList); 291 EasyMock.replay(mMockDeviceManager); 293 mScheduler.getDevices(mMockDeviceManager, true); [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerFuncTest.java | 69 private MockDeviceManager mMockDeviceManager; field in CommandSchedulerFuncTest 100 mMockDeviceManager = new MockDeviceManager(1); in setUp() 140 return mMockDeviceManager; in setUp() 286 mMockDeviceManager.clearAllDevices(); in testBatteryLowLevel() 287 mMockDeviceManager.addDevice(mockDevice); in testBatteryLowLevel() 328 mMockDeviceManager.clearAllDevices(); in testBatteryLowLevel_interruptible() 329 mMockDeviceManager.addDevice(mockDevice); in testBatteryLowLevel_interruptible() 407 return mMockDeviceManager; in testShutdown_notInterruptible() 522 return mMockDeviceManager; in testShutdown_notInterruptible_timeout() 595 return mMockDeviceManager; in testShutdown_invocation_timeout()
|
D | CommandSchedulerStressApp.java | 38 private IDeviceManager mMockDeviceManager; field in CommandSchedulerStressApp 45 mMockDeviceManager = new MockDeviceManager(100); in CommandSchedulerStressApp() 58 return mMockDeviceManager; in CommandSchedulerStressApp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/ |
D | RunConfigDeviceRecoveryTest.java | 46 private IDeviceManager mMockDeviceManager; field in RunConfigDeviceRecoveryTest 53 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setup() 61 return mMockDeviceManager; in setup() 91 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testRecoverDevice_offline() 111 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testRecoverDevice_fastboot() 128 EasyMock.expect(mMockDeviceManager.forceAllocateDevice("serial")).andReturn(device); in testRecoverDevice_run() 143 EasyMock.replay(mMockTestDevice, mMockIDevice, mMockDeviceManager, mMockScheduler); in replay() 148 EasyMock.verify(mMockTestDevice, mMockIDevice, mMockDeviceManager, mMockScheduler); in verify()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | ManagedTestDeviceFactoryTest.java | 39 private IDeviceManager mMockDeviceManager; field in ManagedTestDeviceFactoryTest 46 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp() 48 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) ; in setUp() 86 new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testNestedDevice() 107 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testFrameworkAvailable() 136 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testFrameworkNotAvailable() 165 mFactory = new ManagedTestDeviceFactory(true, mMockDeviceManager, mMockDeviceMonitor) { in testCheckFramework_emptyReturns()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceFlashPreparerTest.java | 56 private IDeviceManager mMockDeviceManager; field in DeviceFlashPreparerTest 68 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp() 91 return mMockDeviceManager; in setUp()
|
D | GkiDeviceFlashPreparerTest.java | 54 private IDeviceManager mMockDeviceManager; field in GkiDeviceFlashPreparerTest 79 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp() 94 return mMockDeviceManager; in setUp()
|
D | GsiDeviceFlashPreparerTest.java | 54 private IDeviceManager mMockDeviceManager; field in GsiDeviceFlashPreparerTest 79 mMockDeviceManager = EasyMock.createMock(IDeviceManager.class); in setUp() 94 return mMockDeviceManager; in setUp()
|