Home
last modified time | relevance | path

Searched refs:mMockConfig (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DTestInvocationMultiTest.java75 @Mock IConfiguration mMockConfig; field in TestInvocationMultiTest
97 when(mMockConfig.getSkipManager()).thenReturn(new SkipManager()); in setUp()
98 when(mMockConfig.getPostProcessors()).thenReturn(mPostProcessors); in setUp()
99 when(mMockConfig.getRetryDecision()).thenReturn(new BaseRetryDecision()); in setUp()
100 when(mMockConfig.getConfigurationObject(ShardHelper.SHARED_TEST_INFORMATION)) in setUp()
102 when(mMockConfig.getConfigurationObject(ShardHelper.LAST_SHARD_DETECTOR)).thenReturn(null); in setUp()
103 mMockConfig.setConfigurationObject(Mockito.eq("TEST_INFORMATION"), Mockito.any()); in setUp()
104 when(mMockConfig.getConfigurationObject("DELEGATE")).thenReturn(null); in setUp()
105 when(mMockConfig.getInopOptions()).thenReturn(new HashSet<>()); in setUp()
145 when(mMockConfig.getDeviceConfigByName("device1")).thenReturn(holder1); in makeTwoDeviceContext()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/sandbox/
DTradefedSandboxTest.java68 @Mock IConfiguration mMockConfig; field in TradefedSandboxTest
89 .when(mMockConfig) in setUp()
91 doReturn(new ConfigurationDescriptor()).when(mMockConfig).getConfigurationDescription(); in setUp()
144 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment()
191 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail()
235 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
266 when(mMockConfig.getCommandLine()).thenReturn("empty --arg 1"); in testPrepareEnvironment_noTfDirJar()
267 when(mMockConfig.getCommandOptions()).thenReturn(new CommandOptions()); in testPrepareEnvironment_noTfDirJar()
270 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_noTfDirJar()
284 verify(mMockConfig, times(2)).getCommandLine(); in verifyPrepareConfigurationExpectations()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DKnownFailurePreparerTest.java34 private IConfiguration mMockConfig; field in KnownFailurePreparerTest
43 mMockConfig = Mockito.mock(IConfiguration.class); in setUp()
44 mKnownFailurePreparer.setConfiguration(mMockConfig); in setUp()
55 Mockito.verify(mMockConfig, Mockito.times(1)) in testSetup()
57 Mockito.verify(mMockConfig, Mockito.times(1)) in testSetup()
/tools/tradefederation/core/javatests/com/android/tradefed/command/
DCommandSchedulerFuncTest.java87 private IDeviceConfiguration mMockConfig; field in CommandSchedulerFuncTest
104 mMockConfig = new DeviceConfigurationHolder("device"); in setUp()
105 mMockConfig.addSpecificConfig(mDeviceOptions); in setUp()
106 mMockConfig.addSpecificConfig(new TestDeviceOptions()); in setUp()
107 mMockDeviceConfig.add(mMockConfig); in setUp()
126 when(mSlowConfig.getDeviceConfigByName(Mockito.eq("device"))).thenReturn(mMockConfig); in setUp()
128 when(mFastConfig.getDeviceConfigByName(Mockito.eq("device"))).thenReturn(mMockConfig); in setUp()
298 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel()
339 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel_interruptible()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DTfTestLauncherTest.java71 @Mock IConfiguration mMockConfig; field in TfTestLauncherTest
88 mTfTestLauncher.setConfiguration(mMockConfig); in setUp()
95 when(mMockConfig.getCommandOptions()).thenReturn(new CommandOptions()); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java64 @Mock IConfiguration mMockConfig; field in ResultsPlayerTest
73 when(mMockConfig.getLogOutput()).thenReturn(mMockLogOutput); in setUp()
80 mPlayer.setConfiguration(mMockConfig); in setUp()