Home
last modified time | relevance | path

Searched refs:mMockContext (Results 1 – 3 of 3) sorted by relevance

/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/device/metric/
DVtsHalTraceCollectorTest.java53 private IInvocationContext mMockContext; field in VtsHalTraceCollectorTest
61 mMockContext = EasyMock.createNiceMock(IInvocationContext.class); in setUp()
68 mCollect.init(mMockContext, mMockListener); in setUp()
80 EasyMock.expect(mMockContext.getDevices()).andReturn(mDevices); in testOnTestRunEnd()
81 EasyMock.expect(mMockContext.getBuildInfos()).andReturn(mBuildInfos); in testOnTestRunEnd()
99 EasyMock.replay(mMockContext); in testOnTestRunEnd()
106 EasyMock.verify(mMockContext); in testOnTestRunEnd()
DVtsCoverageCollectorTest.java51 @Mock IInvocationContext mMockContext; field in VtsCoverageCollectorTest
71 mCollector.init(mMockContext, mMockListener); in setUp()
75 doReturn(mDevices).when(mMockContext).getDevices(); in setUp()
76 doReturn(mBuildInfos).when(mMockContext).getBuildInfos(); in setUp()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTestTest.java67 private IInvocationContext mMockContext; field in RetryFactoryTestTest
109 mMockContext = new InvocationContext(); in setUp()
110 mMockContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
111 mMockContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockInfo); in setUp()
112 mTestInfo = TestInformation.newBuilder().setInvocationContext(mMockContext).build(); in setUp()
191 mFactory.setInvocationContext(mMockContext); in testValidation()