/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationTest.java | 108 private Configuration mConfig; field in ConfigurationTest 116 mConfig = new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION); in setUp() 130 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObject() 131 Object fromConfig = mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject() 141 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObjectList() 142 List<TestConfig> configList = (List<TestConfig>)mConfig.getConfigurationObjectList( in testGetConfigurationObjectList() 152 assertNull(mConfig.getConfigurationObject("non-existent")); in testGetConfigurationObject_wrongname() 161 mConfig.getConfigurationObject(Configuration.TEST_TYPE_NAME); in testGetConfigurationObject_typeIsList() 176 mConfig.setConfigurationObjectList(CONFIG_OBJECT_TYPE_NAME, list); in testGetConfigurationObject_forList() 178 mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject_forList() [all …]
|
D | SandboxConfigurationFactoryTest.java | 54 private File mConfig; field in SandboxConfigurationFactoryTest 61 mConfig = FileUtil.createTempFile("sandbox-config-test", ".xml"); in setUp() 73 FileUtil.deleteFile(mConfig); in tearDown() 86 eq(mConfig.getAbsolutePath()))) in expectDumpCmd() 106 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs() 128 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs_fail() 166 try (PrintWriter pw = new PrintWriter(mConfig)) { in testCreateConfiguration_runConfig() 170 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfiguration_runConfig()
|
D | RetryConfigurationFactoryTest.java | 46 private File mConfig; field in RetryConfigurationFactoryTest 53 mConfig = FileUtil.createTempFile("config-retry-factory", ".xml"); in setUp() 59 FileUtil.deleteFile(mConfig); in tearDown()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | ShardHelperTest.java | 75 private IConfiguration mConfig; field in ShardHelperTest 103 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp() 112 mConfig.setLogSaver(mMockLogSaver); in setUp() 130 mConfig.setCommandOptions(options); in testSplitWithShardCount() 131 mConfig.setCommandLine(new String[] {"empty"}); in testSplitWithShardCount() 137 mConfig.setTest(test); in testSplitWithShardCount() 138 assertEquals(1, mConfig.getTests().size()); in testSplitWithShardCount() 139 assertTrue(mHelper.shardConfig(mConfig, mTestInfo, mRescheduler, null)); in testSplitWithShardCount() 158 mConfig.setCommandOptions(options); in testSplit_noShardCount() 159 mConfig.setCommandLine(new String[] {"empty"}); in testSplit_noShardCount() [all …]
|
D | StrictShardHelperTest.java | 76 private IConfiguration mConfig; field in StrictShardHelperTest 85 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp() 93 mConfig.setLogSaver(mMockLogSaver); in setUp() 110 mConfig.setDeviceConfig(holder); in testShardConfig_internal() 114 mConfig.setCommandOptions(options); in testShardConfig_internal() 115 mConfig.setCommandLine(new String[] {configFile.getAbsolutePath()}); in testShardConfig_internal() 119 mConfig.setTest(test); in testShardConfig_internal() 120 assertEquals(1, mConfig.getTests().size()); in testShardConfig_internal() 121 assertTrue(mHelper.shardConfig(mConfig, mTestInfo, mRescheduler, null)); in testShardConfig_internal() 145 mConfig.setCommandOptions(options); in testShardConfig_internal_shardIndex() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | InvocationExecutionTest.java | 79 private IConfiguration mConfig; field in InvocationExecutionTest 89 mConfig = new Configuration("test", "test"); in setUp() 91 mConfig.setLogSaver(mLogSaver); in setUp() 112 mConfig.setDeviceConfig(holder); in testCleanUp() 118 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp() 131 mConfig.setDeviceConfig(holder); in testCleanUp_disabled() 137 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_disabled() 150 mConfig.setDeviceConfig(holder); in testCleanUp_tearDownDisabled() 156 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_tearDownDisabled() 204 OptionSetter setter = new OptionSetter(mConfig.getRetryDecision()); in testRun_autoRetry() [all …]
|
D | SandboxedInvocationExecutionTest.java | 85 private IConfiguration mConfig; field in SandboxedInvocationExecutionTest 127 mConfig = new Configuration("test", "test"); in setUp() 128 mConfig.getConfigurationDescription().setSandboxed(true); in setUp() 149 mConfig.setConfigurationObject( in testSandboxInvocation() 151 mConfig.setLogSaver(mMockLogSaver); in testSandboxInvocation() 152 mConfig.setBuildProvider(mMockProvider); in testSandboxInvocation() 158 mInvocation.invoke(mContext, mConfig, mMockRescheduler, mMockListener); in testSandboxInvocation() 214 mConfig.getCommandOptions().setShouldUseSandboxing(true); in testParentSandboxInvocation_sharding() 215 mConfig.getCommandOptions().setShardCount(5); in testParentSandboxInvocation_sharding() 216 mConfig.getCommandOptions().setShardIndex(1); in testParentSandboxInvocation_sharding() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/ |
D | ParentSandboxInvocationExecutionTest.java | 68 private IConfiguration mConfig; field in ParentSandboxInvocationExecutionTest 116 mConfig = new Configuration("test", "test"); in setUp() 122 mParentSandbox.doSetup(mTestInfo, mConfig, null); in testDefaultSkipSetup_tearDown() 123 mParentSandbox.doTeardown(mTestInfo, mConfig, null, null); in testDefaultSkipSetup_tearDown() 124 mParentSandbox.doCleanUp(mContext, mConfig, null); in testDefaultSkipSetup_tearDown() 132 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig() 142 mParentSandbox.doSetup(mTestInfo, mConfig, null); in testParentConfig() 143 mParentSandbox.doTeardown(mTestInfo, mConfig, mMockLogger, null); in testParentConfig() 144 mParentSandbox.doCleanUp(mContext, mConfig, null); in testParentConfig() 154 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_errorStage() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandConfigBuilderTest.java | 74 private IConfiguration mConfig; field in ClusterCommandConfigBuilderTest 92 return mConfig; in setUp() 111 verify(mConfig, times(1)).injectOptionValue("cluster:request-id", REQUEST_ID); in testBuild_commandProperties() 112 verify(mConfig, times(1)).injectOptionValue("cluster:command-id", COMMAND_ID); in testBuild_commandProperties() 113 verify(mConfig, times(1)).injectOptionValue("cluster:attempt-id", ATTEMPT_ID); in testBuild_commandProperties() 114 verify(mConfig, times(1)).injectOptionValue("cluster:command-line", COMMAND_LINE); in testBuild_commandProperties() 115 verify(mConfig, times(1)).injectOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in testBuild_commandProperties() 133 verify(mConfig, times(1)).setDeviceConfigList(captor.capture()); in testBuild_targetPreparers() 153 .when(mConfig) in testBuild_resultReporters() 169 verify(mConfig, times(1)) in testBuild_envVars() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | SandboxInvocationRunnerTest.java | 40 private IConfiguration mConfig; field in SandboxInvocationRunnerTest 47 mConfig = new Configuration("name", "description"); in setUp() 57 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun() 58 EasyMock.expect(mMockSandbox.prepareEnvironment(mContext, mConfig, mMockListener)) in testPrepareAndRun() 61 EasyMock.expect(mMockSandbox.run(mConfig, mMockListener)).andReturn(res); in testPrepareAndRun() 64 SandboxInvocationRunner.prepareAndRun(info, mConfig, mMockListener); in testPrepareAndRun() 72 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun_prepFailure() 73 EasyMock.expect(mMockSandbox.prepareEnvironment(mContext, mConfig, mMockListener)) in testPrepareAndRun_prepFailure() 78 SandboxInvocationRunner.prepareAndRun(info, mConfig, mMockListener); in testPrepareAndRun_prepFailure()
|
D | SandboxedInvocationExecutionTest.java | 47 private IConfiguration mConfig; field in SandboxedInvocationExecutionTest 53 mConfig = new Configuration("name", "desc"); in setUp() 54 mConfig.getConfigurationDescription().setSandboxed(true); in setUp() 63 mConfig.getCommandOptions().setTestTag("test"); in testBuildInfo_testTag() 67 mExecution.fetchBuild(testInfo, mConfig, null, null); in testBuildInfo_testTag()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandRunnerTest.java | 55 private File mConfig; field in CommandRunnerTest 61 mConfig = FileUtil.createTempFile("empty", ".xml"); in setUp() 62 FileUtil.writeToFile(EMPTY_CONF_CONTENT, mConfig); in setUp() 88 FileUtil.deleteFile(mConfig); in tearDown() 127 mConfig.getAbsolutePath(), in testRun_noError() 146 mConfig.getAbsolutePath(), in testRun_deviceUnresponsive() 168 mConfig.getAbsolutePath(), in testRun_deviceUnavailable() 190 mConfig.getAbsolutePath(), in testRun_throwable() 235 mConfig.getAbsolutePath(), in testRun_noDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/params/ |
D | MainlineModuleHandlerTest.java | 44 private IConfiguration mConfig; field in MainlineModuleHandlerTest 51 mConfig = new Configuration("test", "test"); in setUp() 66 mHandler.applySetup(mConfig); in testApplySetup() 67 assertTrue(mConfig.getTargetPreparers().get(0) instanceof InstallApexModuleTargetPreparer); in testApplySetup() 69 (InstallApexModuleTargetPreparer) mConfig.getTargetPreparers().get(0); in testApplySetup() 81 mHandler.applySetup(mConfig); in testApplySetup_MultipleMainlineModules() 82 assertTrue(mConfig.getTargetPreparers().get(0) instanceof InstallApexModuleTargetPreparer); in testApplySetup_MultipleMainlineModules() 84 (InstallApexModuleTargetPreparer) mConfig.getTargetPreparers().get(0); in testApplySetup_MultipleMainlineModules()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | FormattedGeneratorReporterTest.java | 51 private IConfiguration mConfig; field in FormattedGeneratorReporterTest 58 mConfig = new Configuration("stub", "stub"); in setUp() 185 mConfig.setTest(new ResultsPlayer(false)); in testFinalizedResults_skipped() 186 mReporter.setConfiguration(mConfig); in testFinalizedResults_skipped() 209 mConfig.setTest(new ResultsPlayer(false)); in testFinalizedResults_skippedByNPE() 210 mReporter.setConfiguration(mConfig); in testFinalizedResults_skippedByNPE() 238 mConfig.setTest(new StubTest()); in testFinalizedResults_notRetry() 239 mReporter.setConfiguration(mConfig); in testFinalizedResults_notRetry()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/app/ |
D | NoApkTestSkipperTest.java | 45 private IConfiguration mConfig; field in NoApkTestSkipperTest 53 mConfig = new Configuration("name", "desc"); in setUp() 70 mConfig.setTargetPreparer(preparer); in testNoApkPresent() 71 assertEquals(1, mConfig.getTests().size()); in testNoApkPresent() 73 mSkipper.setConfiguration(mConfig); in testNoApkPresent() 77 assertTrue(mConfig.getTests().isEmpty()); in testNoApkPresent()
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | AppPkgInjector.java | 51 private IConfiguration mConfig; field in AppPkgInjector 56 mConfig = configuration; in setConfiguration() 66 Assert.assertNotNull(mConfig); in setUp() 89 mConfig.injectOptionValue("package", pkgName); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | SubprocessTfLauncher.java | 180 protected IConfiguration mConfig; field in SubprocessTfLauncher 190 mConfig = configuration; in setConfiguration() 263 Integer shardCount = mConfig.getCommandOptions().getShardCount(); in preRun() 315 UniqueMultiMap<String, String> data = mConfig.getCommandOptions().getInvocationData(); in addInvocationData()
|
D | StubTest.java | 77 private IConfiguration mConfig; field in StubTest 125 mConfig = configuration; in setConfiguration() 129 return mConfig; in getConfiguration()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | DynamicRemoteFileResolver.java | 524 private final ImmutableMap<String, String> mConfig; field in DynamicRemoteFileResolver.ServiceFileResolverLoader.LoaderState 531 this.mConfig = ImmutableMap.copyOf(config); in LoaderState() 552 for (Map.Entry<String, String> e : mConfig.entrySet()) { in resolve() 581 dynamicResolver.addExtraArgs(mConfig); in resolve()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | StubTargetPreparer.java | 35 private IConfiguration mConfig; field in StubTargetPreparer 46 mConfig = configuration; in setConfiguration() 51 return mConfig; in getConfiguration()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | TestsPoolPoller.java | 84 private IConfiguration mConfig; field in TestsPoolPoller 215 ((IConfigurationReceiver) test).setConfiguration(mConfig); in run() 365 mConfig = configuration; in setConfiguration()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 105 private IConfiguration mConfig = null; field in InstrumentationTestTest 157 mConfig = new Configuration("", ""); in setUp() 161 mConfig.setCoverageOptions(mCoverageOptions); in setUp() 162 mInstrumentationTest.setConfiguration(mConfig); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandScheduler.java | 286 private final IConfiguration mConfig; field in CommandScheduler.ExecutableCommand 293 mConfig = config; in ExecutableCommand() 303 return mConfig; in getConfiguration() 340 return mConfig.getCommandOptions().isLoopMode(); in isLoopMode()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 1179 private IConfiguration mConfig; field in TestInvocation.CleanUpInvocationFiles 1183 mConfig = config; in CleanUpInvocationFiles() 1188 deleteInvocationFiles(mTestInfo, mConfig); in run()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostTest.java | 175 private IConfiguration mConfig; field in HostTest 210 mConfig = configuration; in setConfiguration() 1338 resolver.addExtraArgs(mConfig.getCommandOptions().getDynamicDownloadArgs()); in createResolver()
|