/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationXmlParserTest.java | 60 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse() 82 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_interleaved() 105 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_globalOption() 130 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_multiple() 155 xmlParser.parse(new ConfigurationDef("foo"), "foo", getStringAsStream(config), null); in testParse_objectMissingAttr() 168 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_optionMissingAttr() 180 ConfigurationDef configDef = new ConfigurationDef("name"); in testParse_object() 191 ConfigurationDef configDef = new ConfigurationDef("foo"); in testParse_include() 208 ConfigurationDef parent = new ConfigurationDef("name"); in testParse_includeMissing() 233 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_badTag() [all …]
|
D | ConfigurationFactoryTest.java | 23 import com.android.tradefed.config.ConfigurationDef.ConfigObjectDef; 109 for (Entry<ConfigId, ConfigurationDef> entry : spyFactory.getMapConfig().entrySet()) { in testLoadAllConfigs() 116 ConfigurationDef cDef = entry.getValue(); in testLoadAllConfigs() 737 ConfigurationDef test = mFactory.new ConfigLoader(false) in testTopDescriptionIsPreserved() 1289 assertNotNull(config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testCreateConfigurationFromArgs_old_config_with_deviceHolder() 1290 assertEquals("20", config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder() 1292 assertEquals("stub", config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder() 1294 assertEquals(1, config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder() 1301 config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder() 1702 ConfigurationDef.DEFAULT_DEVICE_NAME, in testCreateConfiguration_singleDeviceConfig_withFake() [all …]
|
D | ConfigurationDefTest.java | 63 private ConfigurationDef mConfigDef; 67 mConfigDef = new ConfigurationDef(CONFIG_NAME); in setUp() 109 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withDeviceHolder() 128 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withCollectors() 142 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withCollectors_asReporter()
|
D | ConfigurationTest.java | 748 original.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME), in testDeepClone() 749 copy.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testDeepClone() 771 original.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME), in testDeepClone_innerDevice() 772 copy.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testDeepClone_innerDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationFactory.java | 71 private Map<ConfigId, ConfigurationDef> mConfigDefMap; 184 private static class ConfigDefComparator implements Comparator<ConfigurationDef> { 190 public int compare(ConfigurationDef d1, ConfigurationDef d2) { in compare() 266 public ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap) in getConfigurationDef() 271 ConfigurationDef def = mConfigDefMap.get(configId); in getConfigurationDef() 274 def = new ConfigurationDef(configName); in getConfigurationDef() 372 ConfigurationDef def, in loadIncludedConfiguration() 408 ConfigurationDef def, in loadConfiguration() 440 protected void trackConfig(String name, ConfigurationDef def) { in trackConfig() 468 mConfigDefMap = new Hashtable<ConfigId, ConfigurationDef>(); in ConfigurationFactory() [all …]
|
D | ConfigurationXmlParser.java | 66 private final ConfigurationDef mConfigDef; 82 ConfigurationDef def, in ConfigHandler() 132 if (deviceName.equals(ConfigurationDef.DEFAULT_DEVICE_NAME)) { in startElement() 135 ConfigurationDef.DEFAULT_DEVICE_NAME))); in startElement() 375 ConfigurationDef configDef, in parse() 397 ConfigurationDef configDef, in parse() 444 ConfigHandler configHandler, ConfigurationDef configDef) throws SAXException { in checkValidMultiConfiguration()
|
D | SandboxConfigurationFactory.java | 70 protected ConfigurationDef getConfigurationDef( in getConfigurationDef() 75 ConfigurationDef def = createConfigurationDef(name); in getConfigurationDef() 81 protected ConfigurationDef createConfigurationDef(String name) { in createConfigurationDef() 82 return new ConfigurationDef(name); in createConfigurationDef() 199 protected ConfigurationDef createConfigurationDef(String name) { in createConfigurationDef() 200 return new ConfigurationDef(name) { in createConfigurationDef()
|
D | IConfigDefLoader.java | 35 ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap) in getConfigurationDef() 52 ConfigurationDef def, in loadIncludedConfiguration()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteIntegrationTest.java | 27 import com.android.tradefed.config.ConfigurationDef; 168 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 169 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp() 524 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_firstModuleRunsAll() 525 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_firstModuleRunsAll() 566 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_parallelRun() 567 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_parallelRun() 615 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_withIndex() 616 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_withIndex() 695 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in helperTestShardIndex() [all …]
|
D | TestMappingSuiteRunnerTest.java | 23 import com.android.tradefed.config.ConfigurationDef; 121 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 122 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp() 507 .addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_shard() 553 .addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_shardNoTest() 861 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_moduleDifferentoptions() 912 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTestsForMainline()
|
D | TfSuiteRunnerTest.java | 28 import com.android.tradefed.config.ConfigurationDef; 89 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, null); in setUp() 90 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp() 233 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mock(ITestDevice.class)); in testLoadTests_suite()
|
D | ITestSuiteTest.java | 32 import com.android.tradefed.config.ConfigurationDef; 314 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 315 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp() 433 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun() 460 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_whiteListPreparer() 1462 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_withModuleListener() 1587 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_GranularRerunwithModuleListener()
|
D | ModuleMergerTest.java | 24 import com.android.tradefed.config.ConfigurationDef; 48 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, null); in setUp() 49 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
|
D | BaseTestSuiteTest.java | 29 import com.android.tradefed.config.ConfigurationDef; 80 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 81 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/config/yaml/ |
D | ConfigurationYamlParser.java | 20 import com.android.tradefed.config.ConfigurationDef; 60 ConfigurationDef configDef, in parse() 85 ConfigurationDef configDef, Map<String, Object> yamlObjects) in translateYamlInTradefed() 134 ConfigurationDef def, YamlTestDependencies testDeps) { in convertDependenciesToObjects() 188 private void convertTestsToObjects(ConfigurationDef def, YamlTestRunners tests) { in convertTestsToObjects()
|
D | IDefaultObjectLoader.java | 18 import com.android.tradefed.config.ConfigurationDef; 35 private ConfigurationDef mConfigDef; 39 public LoaderConfiguration setConfigurationDef(ConfigurationDef configDef) { in setConfigurationDef() 59 public ConfigurationDef getConfigDef() { in getConfigDef()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 24 import com.android.tradefed.config.ConfigurationDef; 133 ConfigurationDef.DEFAULT_DEVICE_NAME, EasyMock.createMock(ITestDevice.class)); in setUp() 135 ConfigurationDef.DEFAULT_DEVICE_NAME, EasyMock.createMock(ITestDevice.class)); in setUp() 136 mInvocationContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in setUp() 138 ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp() 720 ConfigurationDef.DEFAULT_DEVICE_NAME, mInvocationContext.getBuildInfos().get(0)); in createModuleContext()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/ |
D | ParentSandboxInvocationExecutionTest.java | 32 import com.android.tradefed.config.ConfigurationDef; 113 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 114 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp() 226 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testParentSandbox_NotTestMode()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | SandboxedInvocationExecutionTest.java | 32 import com.android.tradefed.config.ConfigurationDef; 130 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 131 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp() 409 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in testBackFill()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 28 import com.android.tradefed.config.ConfigurationDef; 88 ConfigurationDef.DEFAULT_DEVICE_NAME, Mockito.mock(ITestDevice.class)); in setUp() 89 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp() 108 new DeviceConfigurationHolder(ConfigurationDef.DEFAULT_DEVICE_NAME); in testShardConfig_internal()
|
D | ShardHelperTest.java | 27 import com.android.tradefed.config.ConfigurationDef; 106 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp() 108 ConfigurationDef.DEFAULT_DEVICE_NAME, Mockito.mock(ITestDevice.class)); in setUp()
|
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/gcs/ |
D | GCSConfigurationFactory.java | 19 import com.android.tradefed.config.ConfigurationDef; 103 protected ConfigurationDef getConfigurationDef( in getConfigurationDef() 151 protected void trackConfig(String name, ConfigurationDef def) { in trackConfig()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/yaml/ |
D | ConfigurationYamlParserTest.java | 25 import com.android.tradefed.config.ConfigurationDef; 50 private ConfigurationDef mConfigDef; 55 mConfigDef = new ConfigurationDef("test"); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/ |
D | GCSConfigurationFactoryTest.java | 19 import com.android.tradefed.config.ConfigurationDef; 135 ConfigurationDef def = in testGetConfigurationDef() 142 ConfigurationDef def = in testGetConfigurationDef_include()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4TestTest.java | 27 import com.android.tradefed.config.ConfigurationDef; 139 mMockContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp() 140 mMockContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuild); in setUp()
|