Home
last modified time | relevance | path

Searched refs:mConfig (Results 1 – 18 of 18) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java92 private Configuration mConfig; field in ConfigurationTest
100 mConfig = new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION); in setUp()
109 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObject()
110 Object fromConfig = mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject()
120 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObjectList()
121 List<TestConfig> configList = (List<TestConfig>)mConfig.getConfigurationObjectList( in testGetConfigurationObjectList()
131 assertNull(mConfig.getConfigurationObject("non-existent")); in testGetConfigurationObject_wrongname()
140 mConfig.getConfigurationObject(Configuration.TEST_TYPE_NAME); in testGetConfigurationObject_typeIsList()
155 mConfig.setConfigurationObjectList(CONFIG_OBJECT_TYPE_NAME, list); in testGetConfigurationObject_forList()
157 mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject_forList()
[all …]
DSandboxConfigurationFactoryTest.java53 private File mConfig; field in SandboxConfigurationFactoryTest
60 mConfig = FileUtil.createTempFile("sandbox-config-test", ".xml"); in setUp()
72 FileUtil.deleteFile(mConfig); in tearDown()
85 eq(mConfig.getAbsolutePath()))) in expectDumpCmd()
105 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs()
127 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs_fail()
165 try (PrintWriter pw = new PrintWriter(mConfig)) { in testCreateConfiguration_runConfig()
169 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfiguration_runConfig()
DRetryConfigurationFactoryTest.java47 private File mConfig; field in RetryConfigurationFactoryTest
54 mConfig = FileUtil.createTempFile("config-retry-factory", ".xml"); in setUp()
60 FileUtil.deleteFile(mConfig); in tearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java76 private IConfiguration mConfig; field in ShardHelperTest
103 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp()
111 mConfig.setLogSaver(mMockLogSaver); in setUp()
129 mConfig.setCommandOptions(options); in testSplitWithShardCount()
130 mConfig.setCommandLine(new String[] {"empty"}); in testSplitWithShardCount()
136 mConfig.setTest(test); in testSplitWithShardCount()
137 assertEquals(1, mConfig.getTests().size()); in testSplitWithShardCount()
138 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testSplitWithShardCount()
157 mConfig.setCommandOptions(options); in testSplit_noShardCount()
158 mConfig.setCommandLine(new String[] {"empty"}); in testSplit_noShardCount()
[all …]
DStrictShardHelperTest.java66 private IConfiguration mConfig; field in StrictShardHelperTest
74 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp()
79 mConfig.setLogSaver(mMockLogSaver); in setUp()
88 mConfig.setCommandOptions(options); in testShardConfig_internal()
89 mConfig.setCommandLine(new String[] {"empty"}); in testShardConfig_internal()
93 mConfig.setTest(test); in testShardConfig_internal()
94 assertEquals(1, mConfig.getTests().size()); in testShardConfig_internal()
95 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testShardConfig_internal()
116 mConfig.setCommandOptions(options); in testShardConfig_internal_shardIndex()
117 mConfig.setCommandLine(new String[] {"empty"}); in testShardConfig_internal_shardIndex()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java76 private IConfiguration mConfig; field in SandboxedInvocationExecutionTest
116 mConfig = new Configuration("test", "test"); in setUp()
134 mConfig.setConfigurationObject( in testSandboxInvocation()
136 mConfig.setLogSaver(mMockLogSaver); in testSandboxInvocation()
137 mConfig.setBuildProvider(mMockProvider); in testSandboxInvocation()
143 mInvocation.invoke(mContext, mConfig, mMockRescheduler, mMockListener); in testSandboxInvocation()
198 mConfig.getCommandOptions().setShouldUseSandboxing(true); in testParentSandboxInvocation_sharding()
199 mConfig.getCommandOptions().setShardCount(5); in testParentSandboxInvocation_sharding()
200 mConfig.getCommandOptions().setShardIndex(1); in testParentSandboxInvocation_sharding()
201 mConfig.setConfigurationObject( in testParentSandboxInvocation_sharding()
[all …]
DInvocationExecutionTest.java75 private IConfiguration mConfig; field in InvocationExecutionTest
83 mConfig = new Configuration("test", "test"); in setUp()
103 mConfig.setDeviceConfig(holder); in testCleanUp()
109 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp()
122 mConfig.setDeviceConfig(holder); in testCleanUp_disabled()
128 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_disabled()
141 mConfig.setDeviceConfig(holder); in testCleanUp_tearDownDisabled()
147 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_tearDownDisabled()
207 mConfig.setTests(tests); in testRun_metricCollectors()
210 mConfig.setDeviceMetricCollectors(collectors); in testRun_metricCollectors()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java56 private IConfiguration mConfig; field in ParentSandboxInvocationExecutionTest
84 mConfig = new Configuration("test", "test"); in setUp()
90 mParentSandbox.doSetup(mContext, mConfig, null); in testDefaultSkipSetup_tearDown()
91 mParentSandbox.doTeardown(mContext, mConfig, null, null); in testDefaultSkipSetup_tearDown()
92 mParentSandbox.doCleanUp(mContext, mConfig, null); in testDefaultSkipSetup_tearDown()
100 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig()
110 mParentSandbox.doSetup(mContext, mConfig, null); in testParentConfig()
111 mParentSandbox.doTeardown(mContext, mConfig, null, null); in testParentConfig()
112 mParentSandbox.doCleanUp(mContext, mConfig, null); in testParentConfig()
122 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_errorStage()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxInvocationRunnerTest.java39 private IConfiguration mConfig; field in SandboxInvocationRunnerTest
46 mConfig = new Configuration("name", "description"); in setUp()
55 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun()
56 EasyMock.expect(mMockSandbox.prepareEnvironment(mContext, mConfig, mMockListener)) in testPrepareAndRun()
59 EasyMock.expect(mMockSandbox.run(mConfig, mMockListener)).andReturn(res); in testPrepareAndRun()
62 SandboxInvocationRunner.prepareAndRun(mConfig, mContext, mMockListener); in testPrepareAndRun()
69 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun_prepFailure()
70 EasyMock.expect(mMockSandbox.prepareEnvironment(mContext, mConfig, mMockListener)) in testPrepareAndRun_prepFailure()
75 SandboxInvocationRunner.prepareAndRun(mConfig, mContext, mMockListener); in testPrepareAndRun_prepFailure()
DSandboxedInvocationExecutionTest.java40 private IConfiguration mConfig; field in SandboxedInvocationExecutionTest
46 mConfig = new Configuration("name", "desc"); in setUp()
47 mConfig.getConfigurationDescription().setSandboxed(true); in setUp()
55 mConfig.getCommandOptions().setTestTag("test"); in testBuildInfo_testTag()
57 mExecution.fetchBuild(mContext, mConfig, null, null); in testBuildInfo_testTag()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandRunnerTest.java55 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/targetprep/app/
DNoApkTestSkipperTest.java44 private IConfiguration mConfig; field in NoApkTestSkipperTest
51 mConfig = new Configuration("name", "desc"); in setUp()
69 mConfig.setTargetPreparer(preparer); in testNoApkPresent()
70 assertEquals(1, mConfig.getTests().size()); in testNoApkPresent()
72 mSkipper.setConfiguration(mConfig); in testNoApkPresent()
76 assertTrue(mConfig.getTests().isEmpty()); in testNoApkPresent()
/tools/tradefederation/contrib/src/com/android/framework/tests/
DTestDirForwarder.java40 private IConfiguration mConfig = null; field in TestDirForwarder
49 if (mConfig == null) { in setUp()
57 mConfig.injectOptionValue("test-app-path", testAppDir.getAbsolutePath()); in setUp()
69 mConfig = config; in setConfiguration()
/tools/tradefederation/contrib/src/com/android/monkey/
DAppPkgInjector.java51 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/targetprep/
DStubTargetPreparer.java36 private IConfiguration mConfig; field in StubTargetPreparer
49 mConfig = configuration; in setConfiguration()
54 return mConfig; in getConfiguration()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java108 protected IConfiguration mConfig; field in SubprocessTfLauncher
118 mConfig = configuration; in setConfiguration()
224 UniqueMultiMap<String, String> data = mConfig.getCommandOptions().getInvocationData(); in addInvocationData()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java91 private IConfiguration mConfig; field in TestsPoolPoller
197 ((IConfigurationReceiver) test).setConfiguration(mConfig); in run()
396 mConfig = configuration; in setConfiguration()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java280 private final IConfiguration mConfig; field in CommandScheduler.ExecutableCommand
287 mConfig = config; in ExecutableCommand()
297 return mConfig; in getConfiguration()
334 return mConfig.getCommandOptions().isLoopMode(); in isLoopMode()