Home
last modified time | relevance | path

Searched refs:OPTION_NAME (Results 1 – 9 of 9) 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 …]
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()
DGlobalConfigurationTest.java43 private final static String OPTION_NAME = "manda"; field in GlobalConfigurationTest
58 @Option(name = OPTION_NAME, description = OPTION_DESCRIPTION, mandatory = true,
110 " --%s %s", ALIAS_NAME, OPTION_NAME, OPTION_DESCRIPTION); in testPrintCommandUsage()
DConfigurationTest.java62 private static final String OPTION_NAME = "bool"; field in ConfigurationTest
75 @Option(name = OPTION_NAME, description = OPTION_DESCRIPTION)
316 mConfig.injectOptionValue(OPTION_NAME, Boolean.toString(true)); in testInjectOptionValue()
394 options.add(new OptionDef(OPTION_NAME, Boolean.toString(true), null)); in testInjectOptionValues()
427 assertTrue("Usage text does not contain option name", usageString.contains(OPTION_NAME)); in testPrintCommandUsage()
497 if (OPTION_NAME.equals(field.getString("name"))) { in testGetJsonCommandUsage()
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)
928 assertTrue(help.contains(InheritedOptionSource.OPTION_NAME)); in testGetOptionHelp()
930 assertTrue(help.contains(OneOptionSource.OPTION_NAME)); in testGetOptionHelp()
/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/src/com/android/tradefed/config/
DConfigurationUtil.java42 public static final String OPTION_NAME = "option"; field in ConfigurationUtil
142 serializer.startTag(null, OPTION_NAME); in dumpOptionToXml()
148 serializer.endTag(null, OPTION_NAME); in dumpOptionToXml()
/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()