Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java52 private ITestDevice mMockITestDevice = null; field in RustBinaryTestTest
64 mMockITestDevice = EasyMock.createMock(ITestDevice.class); in setUp()
67 EasyMock.expect(mMockITestDevice.getSerialNumber()).andStubReturn("serial"); in setUp()
76 mRustBinaryTest.setDevice(mMockITestDevice); in setUp()
78 context.addAllocatedDevice("device", mMockITestDevice); in setUp()
92 EasyMock.replay(mMockInvocationListener, mMockITestDevice, mMockReceiver); in replayMocks()
97 EasyMock.verify(mMockInvocationListener, mMockITestDevice, mMockReceiver); in verifyMocks()
110 EasyMock.expect(mMockITestDevice.executeShellCommand(path + " --list")).andReturn(result); in mockCountTests()
121 mMockITestDevice.executeShellCommand( in mockShellCommand()
146 EasyMock.expect(mMockITestDevice.doesFileExist(testPath)).andReturn(false); in testRun_noTestDir()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestTest.java53 private ITestDevice mMockITestDevice = null; field in GTestTest
67 mMockITestDevice = EasyMock.createMock(ITestDevice.class); in setUp()
70 EasyMock.expect(mMockITestDevice.getSerialNumber()).andStubReturn("serial"); in setUp()
90 mGTest.setDevice(mMockITestDevice); in setUp()
108 EasyMock.replay(mMockInvocationListener, mMockITestDevice, mMockReceiver); in replayMocks()
115 EasyMock.verify(mMockInvocationListener, mMockITestDevice, mMockReceiver); in verifyMocks()
121 EasyMock.expect(mMockITestDevice.doesFileExist(GTest.DEFAULT_NATIVETEST_PATH)) in testRun_noTestDir()
152 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun()
153 EasyMock.expect(mMockITestDevice.doesFileExist(nativeTestPath)).andReturn(true); in testRun()
154 EasyMock.expect(mMockITestDevice.isDirectory(nativeTestPath)).andReturn(true); in testRun()
[all …]
DGoogleBenchmarkTestTest.java46 private ITestDevice mMockITestDevice = null; field in GoogleBenchmarkTestTest
59 mMockITestDevice = EasyMock.createMock(ITestDevice.class); in setUp()
61 EasyMock.expect(mMockITestDevice.getSerialNumber()).andStubReturn("serial"); in setUp()
82 mGoogleBenchmarkTest.setDevice(mMockITestDevice); in setUp()
90 EasyMock.replay(mMockInvocationListener, mMockITestDevice); in replayMocks()
97 EasyMock.verify(mMockInvocationListener, mMockITestDevice); in verifyMocks()
107 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun()
108 EasyMock.expect(mMockITestDevice.doesFileExist(nativeTestPath)).andReturn(true); in testRun()
109 EasyMock.expect(mMockITestDevice.isDirectory(nativeTestPath)).andReturn(true); in testRun()
110 EasyMock.expect(mMockITestDevice.isDirectory(nativeTestPath + "/test1")).andReturn(false); in testRun()
[all …]
DArtRunTestTest.java57 private ITestDevice mMockITestDevice; field in ArtRunTestTest
72 mMockITestDevice = EasyMock.createMock(ITestDevice.class); in setUp()
82 mArtRunTest.setDevice(mMockITestDevice); in setUp()
111 EasyMock.replay(mMockInvocationListener, mMockAbi, mMockITestDevice); in replayMocks()
116 EasyMock.verify(mMockInvocationListener, mMockAbi, mMockITestDevice); in verifyMocks()
175 EasyMock.expect(mMockITestDevice.getSerialNumber()).andReturn(""); in testRunSingleTest()
184 mMockITestDevice.executeShellCommand( in testRunSingleTest()
187 EasyMock.expect(mMockITestDevice.getSerialNumber()).andReturn(""); in testRunSingleTest()
213 EasyMock.expect(mMockITestDevice.getSerialNumber()).andReturn(""); in testRunSingleTest_unexpectedOutput()
222 mMockITestDevice.executeShellCommand( in testRunSingleTest_unexpectedOutput()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableTargetTestTest.java58 private ITestDevice mMockITestDevice = null; field in ExecutableTargetTestTest
67 mMockITestDevice = Mockito.mock(ITestDevice.class); in setUp()
69 context.addAllocatedDevice("device", mMockITestDevice); in setUp()
90 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_cmdSuccess()
134 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_pathNotExist()
180 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_cmdFailed()
227 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_addExcludeFilter()
283 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_addIncludeFilter()
338 mExecutableTargetTest.setDevice(mMockITestDevice); in testRun_add_description_IncludeFilter()