/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationMultiTest.java | 54 private IConfiguration mMockConfig; field in TestInvocationMultiTest 70 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 115 EasyMock.expect(mMockConfig.getDeviceConfigByName("device1")).andStubReturn(holder1); in makeTwoDeviceContext() 126 EasyMock.expect(mMockConfig.getDeviceConfigByName("device2")).andStubReturn(holder2); in makeTwoDeviceContext() 143 EasyMock.expect(mMockConfig.getTestInvocationListeners()) in testRunBuildProvider_oneMiss() 146 EasyMock.expect(mMockConfig.getLogSaver()).andReturn(mMockLogSaver); in testRunBuildProvider_oneMiss() 147 EasyMock.expect(mMockConfig.getLogOutput()).andReturn(mMockLogger).times(4); in testRunBuildProvider_oneMiss() 148 EasyMock.expect(mMockConfig.getConfigurationDescription()).andReturn(mConfigDesc); in testRunBuildProvider_oneMiss() 156 EasyMock.expect(mMockConfig.getCommandLine()).andStubReturn("empty"); in testRunBuildProvider_oneMiss() 157 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in testRunBuildProvider_oneMiss() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | TradefedSandboxTest.java | 56 private IConfiguration mMockConfig; field in TradefedSandboxTest 71 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 72 EasyMock.expect(mMockConfig.getConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME)) in setUp() 126 EasyMock.replay(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment() 127 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment() 128 EasyMock.verify(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment() 162 EasyMock.replay(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment_dumpConfigFail() 163 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail() 164 EasyMock.verify(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment_dumpConfigFail() 178 EasyMock.expect(mMockConfig.getCommandLine()).andReturn("empty --arg 1"); in testPrepareEnvironment_noTfDirJar() [all …]
|
/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 | 75 private IDeviceConfiguration mMockConfig; field in CommandSchedulerFuncTest 81 mMockConfig = new DeviceConfigurationHolder("device"); in setUp() 82 mMockConfig.addSpecificConfig(mDeviceOptions); in setUp() 83 mMockConfig.addSpecificConfig(new TestDeviceOptions()); in setUp() 84 mMockDeviceConfig.add(mMockConfig); in setUp() 107 .andStubReturn(mMockConfig); in setUp() 110 .andStubReturn(mMockConfig); in setUp() 268 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel() 318 mMockConfig.addSpecificConfig(testDeviceOptions); in testBatteryLowLevel_interruptible()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | VersionedTfLauncherTest.java | 75 private IConfiguration mMockConfig; field in VersionedTfLauncherTest 83 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 89 mVersionedTfLauncher.setConfiguration(mMockConfig); in setUp() 157 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_singleDevice() 158 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 160 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 212 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_nullDevice() 213 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_nullDevice() 215 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_nullDevice() 267 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_DeviceNoPreSetup() [all …]
|
D | TfTestLauncherTest.java | 61 private IConfiguration mMockConfig; field in TfTestLauncherTest 68 mMockConfig = EasyMock.createMock(IConfiguration.class); in setUp() 74 mTfTestLauncher.setConfiguration(mMockConfig); in setUp() 142 EasyMock.replay(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun() 144 EasyMock.verify(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun()
|