Home
last modified time | relevance | path

Searched refs:mockIDevice (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java68 IDevice mockIDevice = EasyMock.createNiceMock(IDevice.class); in setNumDevicesInternal() local
69 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesInternal()
70 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in setNumDevicesInternal()
75 EasyMock.replay(mockDevice, mockIDevice); in setNumDevicesInternal()
87 IDevice mockIDevice = EasyMock.createNiceMock(idevicetype); in setNumDevicesCustomRealNoRecovery() local
88 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesCustomRealNoRecovery()
91 EasyMock.replay(mockIDevice); in setNumDevicesCustomRealNoRecovery()
92 ITestDevice mockDevice = new TestDevice(mockIDevice, stateMonitor, allocationMonitor) { in setNumDevicesCustomRealNoRecovery()
110 IDevice mockIDevice = EasyMock.createNiceMock(idevicetype); in setNumDevicesCustom() local
111 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesCustom()
[all …]
DDeviceManagerTest.java487 IDevice mockIDevice = EasyMock.createNiceMock(IDevice.class); in testFreeDevice_noop() local
488 EasyMock.expect(testDevice.getIDevice()).andReturn(mockIDevice); in testFreeDevice_noop()
489 EasyMock.expect(mockIDevice.isEmulator()).andReturn(Boolean.FALSE); in testFreeDevice_noop()
491 replayMocks(testDevice, mockIDevice); in testFreeDevice_noop()
494 verifyMocks(testDevice, mockIDevice); in testFreeDevice_noop()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java261 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel() local
262 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in testBatteryLowLevel()
303 IDevice mockIDevice = new StubDevice("serial") { in testBatteryLowLevel_interruptible() local
312 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in testBatteryLowLevel_interruptible()
DCommandSchedulerTest.java340 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testExecCommand() local
345 EasyMock.expect(mockDevice.getIDevice()).andStubReturn(mockIDevice); in testExecCommand()
1128 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testExecCommand_versioning() local
1133 EasyMock.expect(mockDevice.getIDevice()).andStubReturn(mockIDevice); in testExecCommand_versioning()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationFileTestTest.java67 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in setUp() local
71 EasyMock.expect(mMockTestDevice.getIDevice()).andStubReturn(mockIDevice); in setUp()