/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationMultiTest.java | 58 private IConfiguration mMockConfig; field in TestInvocationMultiTest 78 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 79 EasyMock.expect(mMockConfig.getPostProcessors()).andReturn(mPostProcessors); in setUp() 124 EasyMock.expect(mMockConfig.getDeviceConfigByName("device1")).andStubReturn(holder1); in makeTwoDeviceContext() 125 EasyMock.expect(mMockConfig.isDeviceConfiguredFake("device1")).andReturn(false); in makeTwoDeviceContext() 136 EasyMock.expect(mMockConfig.getDeviceConfigByName("device2")).andStubReturn(holder2); in makeTwoDeviceContext() 153 EasyMock.expect(mMockConfig.getTestInvocationListeners()) in testRunBuildProvider_oneMiss() 156 EasyMock.expect(mMockConfig.getLogSaver()).andReturn(mMockLogSaver); in testRunBuildProvider_oneMiss() 157 EasyMock.expect(mMockConfig.getLogOutput()).andStubReturn(mMockLogger); in testRunBuildProvider_oneMiss() 158 EasyMock.expect(mMockConfig.getConfigurationDescription()).andReturn(mConfigDesc); in testRunBuildProvider_oneMiss() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | TradefedSandboxTest.java | 59 private IConfiguration mMockConfig; field in TradefedSandboxTest 74 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 75 EasyMock.expect(mMockConfig.getConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME)) in setUp() 137 EasyMock.replay(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment() 138 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment() 139 EasyMock.verify(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment() 180 EasyMock.replay(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment_dumpConfigFail() 181 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail() 182 EasyMock.verify(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment_dumpConfigFail() 197 EasyMock.expect(mMockConfig.getCommandLine()).andReturn("empty --arg 1"); in testPrepareEnvironment_noTfDirJar() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | VersionedTfLauncherTest.java | 78 private IConfiguration mMockConfig; field in VersionedTfLauncherTest 86 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 92 mVersionedTfLauncher.setConfiguration(mMockConfig); in setUp() 167 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_singleDevice() 168 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 170 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 229 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_nullDevice() 230 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_nullDevice() 232 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_nullDevice() 291 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_DeviceNoPreSetup() [all …]
|
D | TfTestLauncherTest.java | 63 private IConfiguration mMockConfig; field in TfTestLauncherTest 70 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 76 mTfTestLauncher.setConfiguration(mMockConfig); in setUp() 78 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in setUp() 153 EasyMock.replay(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun() 155 EasyMock.verify(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerStressApp.java | 39 private IConfiguration mMockConfig; field in CommandSchedulerStressApp 44 mMockConfig = EasyMock.createNiceMock(IConfiguration.class); in CommandSchedulerStressApp() 50 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(mCommandOptions); in CommandSchedulerStressApp() 51 EasyMock.expect(mMockConfig.getDeviceRequirements()).andStubReturn( in CommandSchedulerStressApp() 82 .andReturn(mMockConfig).anyTimes(); in testRunLoad() 84 EasyMock.replay(mMockConfig, mMockConfigFactory); in testRunLoad()
|
D | CommandSchedulerFuncTest.java | 77 private IDeviceConfiguration mMockConfig; field in CommandSchedulerFuncTest 92 mMockConfig = new DeviceConfigurationHolder("device"); in setUp() 93 mMockConfig.addSpecificConfig(mDeviceOptions); in setUp() 94 mMockConfig.addSpecificConfig(new TestDeviceOptions()); in setUp() 95 mMockDeviceConfig.add(mMockConfig); in setUp() 118 .andStubReturn(mMockConfig); in setUp() 121 .andStubReturn(mMockConfig); in setUp() 281 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel() 324 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel_interruptible()
|