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.java561 IDevice mockIDevice = EasyMock.createNiceMock(IDevice.class); in testFreeDevice_noop() local
562 EasyMock.expect(testDevice.getIDevice()).andReturn(mockIDevice); in testFreeDevice_noop()
563 EasyMock.expect(mockIDevice.isEmulator()).andReturn(Boolean.FALSE); in testFreeDevice_noop()
565 replayMocks(testDevice, mockIDevice); in testFreeDevice_noop()
568 verifyMocks(testDevice, mockIDevice); in testFreeDevice_noop()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java274 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel() local
275 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in testBatteryLowLevel()
316 IDevice mockIDevice = new StubDevice("serial"); in testBatteryLowLevel_interruptible() local
318 EasyMock.expect(mockDevice.getIDevice()).andReturn(mockIDevice).anyTimes(); in testBatteryLowLevel_interruptible()
DCommandSchedulerTest.java358 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testExecCommand() local
363 EasyMock.expect(mockDevice.getIDevice()).andStubReturn(mockIDevice); in testExecCommand()
1152 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testExecCommand_versioning() local
1157 EasyMock.expect(mockDevice.getIDevice()).andStubReturn(mockIDevice); in testExecCommand_versioning()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationFileTestTest.java72 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in setUp() local
76 EasyMock.expect(mMockTestDevice.getIDevice()).andStubReturn(mockIDevice); in setUp()