Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java91 private Configuration mConfig; field in ConfigurationTest
99 mConfig = new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION); in setUp()
108 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObject()
109 Object fromConfig = mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject()
119 mConfig.setConfigurationObject(CONFIG_OBJECT_TYPE_NAME, testConfigObject); in testGetConfigurationObjectList()
120 List<TestConfig> configList = (List<TestConfig>)mConfig.getConfigurationObjectList( in testGetConfigurationObjectList()
130 assertNull(mConfig.getConfigurationObject("non-existent")); in testGetConfigurationObject_wrongname()
139 mConfig.getConfigurationObject(Configuration.TEST_TYPE_NAME); in testGetConfigurationObject_typeIsList()
154 mConfig.setConfigurationObjectList(CONFIG_OBJECT_TYPE_NAME, list); in testGetConfigurationObject_forList()
156 mConfig.getConfigurationObject(CONFIG_OBJECT_TYPE_NAME); in testGetConfigurationObject_forList()
[all …]
DSandboxConfigurationFactoryTest.java51 private File mConfig; field in SandboxConfigurationFactoryTest
58 mConfig = FileUtil.createTempFile("sandbox-config-test", ".xml"); in setUp()
70 FileUtil.deleteFile(mConfig); in tearDown()
83 eq(mConfig.getAbsolutePath()))) in expectDumpCmd()
103 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs()
124 String[] args = new String[] {mConfig.getAbsolutePath()}; in testCreateConfigurationFromArgs_fail()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java71 private IConfiguration mConfig; field in ShardHelperTest
92 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp()
100 mConfig.setLogSaver(mMockLogSaver); in setUp()
118 mConfig.setCommandOptions(options); in testSplitWithShardCount()
119 mConfig.setCommandLine(new String[] {"empty"}); in testSplitWithShardCount()
125 mConfig.setTest(test); in testSplitWithShardCount()
126 assertEquals(1, mConfig.getTests().size()); in testSplitWithShardCount()
127 assertTrue(mHelper.shardConfig(mConfig, mContext, mRescheduler)); in testSplitWithShardCount()
146 mConfig.setCommandOptions(options); in testSplit_noShardCount()
147 mConfig.setCommandLine(new String[] {"empty"}); in testSplit_noShardCount()
[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()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationExecutionTest.java60 private IConfiguration mConfig; field in InvocationExecutionTest
67 mConfig = new Configuration("test", "test"); in setUp()
83 mConfig.setDeviceConfig(holder); in testCleanUp()
89 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp()
102 mConfig.setDeviceConfig(holder); in testCleanUp_disabled()
108 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_disabled()
121 mConfig.setDeviceConfig(holder); in testCleanUp_tearDownDisabled()
127 mExec.doCleanUp(mContext, mConfig, null); in testCleanUp_tearDownDisabled()
185 mConfig.setTests(tests); in testRun_metricCollectors()
188 mConfig.setDeviceMetricCollectors(collectors); in testRun_metricCollectors()
[all …]
/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/prod-tests/src/com/android/framework/tests/
DTestDirForwarder.java40 private IConfiguration mConfig = null; field in TestDirForwarder
51 if (mConfig == null) { in setUp()
59 mConfig.injectOptionValue("test-app-path", testAppDir.getAbsolutePath()); in setUp()
71 mConfig = config; in setConfiguration()
/tools/tradefederation/core/prod-tests/src/com/android/monkey/
DAppPkgInjector.java48 private IConfiguration mConfig; field in AppPkgInjector
55 mConfig = configuration; in setConfiguration()
68 Assert.assertNotNull(mConfig); in setUp()
86 mConfig.injectOptionValue("package", pkgName); in setUp()