Home
last modified time | relevance | path

Searched refs:OPTION_NAME (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DOptionUpdateRuleTest.java25 private static final String OPTION_NAME = "option-name"; field in OptionUpdateRuleTest
32 assertTrue(OptionUpdateRule.FIRST.shouldUpdate(OPTION_NAME, null, UPDATE)); in testFirst_simple()
33 assertFalse(OptionUpdateRule.FIRST.shouldUpdate(OPTION_NAME, CURRENT, UPDATE)); in testFirst_simple()
37 assertTrue(OptionUpdateRule.LAST.shouldUpdate(OPTION_NAME, null, UPDATE)); in testLast_simple()
38 assertTrue(OptionUpdateRule.LAST.shouldUpdate(OPTION_NAME, CURRENT, UPDATE)); in testLast_simple()
42 assertTrue(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, null, SMALL_UPDATE)); in testGreatest_simple()
43 assertFalse(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testGreatest_simple()
44 assertTrue(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, CURRENT, BIG_UPDATE)); in testGreatest_simple()
48 assertTrue(OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, null, BIG_UPDATE)); in testLeast_simple()
49 assertTrue(OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testLeast_simple()
[all …]
DConfigurationTest.java63 private static final String OPTION_NAME = "bool"; field in ConfigurationTest
76 @Option(name = OPTION_NAME, description = OPTION_DESCRIPTION, requiredForRerun = true)
317 mConfig.injectOptionValue(OPTION_NAME, Boolean.toString(true)); in testInjectOptionValue()
321 assertEquals(OPTION_NAME, optionDef.name); in testInjectOptionValue()
398 options.add(new OptionDef(OPTION_NAME, Boolean.toString(true), null)); in testInjectOptionValues()
412 assertEquals(OPTION_NAME, optionDef.name); in testInjectOptionValues()
434 assertTrue("Usage text does not contain option name", usageString.contains(OPTION_NAME)); in testPrintCommandUsage()
503 if (OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage()
DConfigurationDefTest.java47 private static final String OPTION_NAME = "option"; field in ConfigurationDefTest
59 @Option(name=OPTION_NAME, description=OPTION_DESCRIPTION)
100 mConfigDef.addOptionDef(OPTION_NAME, null, OPTION_VALUE, CONFIG_NAME); in testCreateConfiguration()
115 mConfigDef.addOptionDef(OPTION_NAME, null, OPTION_VALUE, CONFIG_NAME); in testCreateConfiguration_withDeviceHolder()
DArgsOptionParserTest.java44 private static final String OPTION_NAME = "my_option"; field in ArgsOptionParserTest.OneOptionSource
47 @Option(name=OPTION_NAME, shortName='o', description=OPTION_DESC)
56 private static final String OPTION_NAME = "my_option"; field in ArgsOptionParserTest.MapOptionSource
59 @Option(name=OPTION_NAME, shortName='o', description=OPTION_DESC)
68 private static final String OPTION_NAME = "my_option"; field in ArgsOptionParserTest.MapStringOptionSource
71 @Option(name=OPTION_NAME, shortName='o', description=OPTION_DESC)
106 private static final String OPTION_NAME = "my_sub_option"; field in ArgsOptionParserTest.InheritedOptionSource
109 @Option(name=OPTION_NAME, description=OPTION_DESC)
943 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp()
945 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp()
DGlobalConfigurationTest.java55 private final static String OPTION_NAME = "manda"; field in GlobalConfigurationTest
69 @Option(name = OPTION_NAME, description = OPTION_DESCRIPTION, mandatory = true,
118 " --%s %s", ALIAS_NAME, OPTION_NAME, OPTION_DESCRIPTION); in testPrintCommandUsage()
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/
DOptionUpdateRuleTest.java25 private static final String OPTION_NAME = "option-name"; field in OptionUpdateRuleTest
32 assertEquals(UPDATE, OptionUpdateRule.FIRST.update(OPTION_NAME, null, UPDATE)); in testFirst_simple()
33 assertEquals(CURRENT, OptionUpdateRule.FIRST.update(OPTION_NAME, CURRENT, UPDATE)); in testFirst_simple()
37 assertEquals(UPDATE, OptionUpdateRule.LAST.update(OPTION_NAME, null, UPDATE)); in testLast_simple()
38 assertEquals(UPDATE, OptionUpdateRule.LAST.update(OPTION_NAME, CURRENT, UPDATE)); in testLast_simple()
43 SMALL_UPDATE, OptionUpdateRule.GREATEST.update(OPTION_NAME, null, SMALL_UPDATE)); in testGreatest_simple()
44 assertEquals(CURRENT, OptionUpdateRule.GREATEST.update(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testGreatest_simple()
46 BIG_UPDATE, OptionUpdateRule.GREATEST.update(OPTION_NAME, CURRENT, BIG_UPDATE)); in testGreatest_simple()
50 assertEquals(BIG_UPDATE, OptionUpdateRule.LEAST.update(OPTION_NAME, null, BIG_UPDATE)); in testLeast_simple()
52 SMALL_UPDATE, OptionUpdateRule.LEAST.update(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testLeast_simple()
[all …]
DArgsOptionParserTest.java40 private static final String OPTION_NAME = "my_option"; field in ArgsOptionParserTest.OneOptionSource
43 @Option(name=OPTION_NAME, shortName='o', description=OPTION_DESC)
52 private static final String OPTION_NAME = "my_option"; field in ArgsOptionParserTest.MapOptionSource
55 @Option(name=OPTION_NAME, shortName='o', description=OPTION_DESC)
90 private static final String OPTION_NAME = "my_sub_option"; field in ArgsOptionParserTest.InheritedOptionSource
93 @Option(name=OPTION_NAME, description=OPTION_DESC)
554 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp()
556 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DLongevityHostRunnerTest.java55 private static final String OPTION_NAME = "arbitraryOptionName"; field in LongevityHostRunnerTest
78 @Option(name = OPTION_NAME)
217 setter.setOptionValue("set-option", OPTION_NAME + ":" + SET_OPTION_VALUE); in testPassingOptions()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java44 public static final String OPTION_NAME = "option"; field in ConfigurationUtil
186 serializer.startTag(null, OPTION_NAME); in dumpOptionToXml()
192 serializer.endTag(null, OPTION_NAME); in dumpOptionToXml()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DLocalRunInstructionBuilderTest.java33 private static final String OPTION_NAME = "option"; field in LocalRunInstructionBuilderTest
52 new OptionDef(OPTION_NAME, OPTION_KEY, OPTION_VALUE, OPTION_SOURCE)); in testGetInstruction()