Home
last modified time | relevance | path

Searched refs:HasSwitch (Results 1 – 25 of 28) sorted by relevance

12

/external/libchrome/base/
Dcommand_line_unittest.cc53 EXPECT_FALSE(cl.HasSwitch("cruller")); in TEST()
54 EXPECT_FALSE(cl.HasSwitch("flim")); in TEST()
55 EXPECT_FALSE(cl.HasSwitch("program")); in TEST()
56 EXPECT_FALSE(cl.HasSwitch("dog")); in TEST()
57 EXPECT_FALSE(cl.HasSwitch("cat")); in TEST()
58 EXPECT_FALSE(cl.HasSwitch("output-rotation")); in TEST()
59 EXPECT_FALSE(cl.HasSwitch("not-a-switch")); in TEST()
60 EXPECT_FALSE(cl.HasSwitch("--")); in TEST()
65 EXPECT_TRUE(cl.HasSwitch("foo")); in TEST()
67 EXPECT_TRUE(cl.HasSwitch("bar")); in TEST()
[all …]
Dsys_info.cc23 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in AmountOfPhysicalMemory()
33 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in AmountOfAvailablePhysicalMemory()
48 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in IsLowEndDevice()
60 if (command_line->HasSwitch(switches::kEnableLowEndDeviceMode)) in DetectLowEndDevice()
62 if (command_line->HasSwitch(switches::kDisableLowEndDeviceMode)) in DetectLowEndDevice()
Dcommand_line.h162 bool HasSwitch(const StringPiece& switch_string) const;
163 bool HasSwitch(const char switch_constant[]) const;
Dcommand_line.cc283 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const { in HasSwitch() function in base::CommandLine
288 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch() function in base::CommandLine
289 return HasSwitch(base::StringPiece(switch_constant)); in HasSwitch()
365 if (source.HasSwitch(switches[i])) in CopySwitchesFrom()
Dlogging.cc414 if (command_line->HasSwitch(switches::kV) || in BaseInitLoggingImpl()
415 command_line->HasSwitch(switches::kVModule)) { in BaseInitLoggingImpl()
Dfeature_list.cc272 base::CommandLine::ForCurrentProcess()->HasSwitch( in SetInstance()
/external/libchrome/base/test/launcher/
Dtest_launcher.cc237 return CommandLine::ForCurrentProcess()->HasSwitch( in BotModeEnabled()
647 if (CommandLine::ForCurrentProcess()->HasSwitch( in OnTestFinished()
839 if (command_line->HasSwitch(switches::kTestLauncherTotalShards) && in Init()
840 command_line->HasSwitch(switches::kTestLauncherShardIndex)) { in Init()
884 if (command_line->HasSwitch(kGTestRepeatFlag) && in Init()
891 if (command_line->HasSwitch(switches::kTestLauncherRetryLimit)) { in Init()
901 } else if (!command_line->HasSwitch(kGTestFilterFlag) || BotModeEnabled()) { in Init()
907 if (command_line->HasSwitch(switches::kTestLauncherForceRunBrokenTests)) in Init()
915 if (command_line->HasSwitch(kGTestShuffleFlag)) { in Init()
918 if (command_line->HasSwitch(kGTestRandomSeedFlag)) { in Init()
[all …]
Dunit_test_launcher.cc181 if (!CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) in GetSwitchValueAsInt()
204 if (CommandLine::ForCurrentProcess()->HasSwitch( in LaunchUnitTestsInternal()
219 if (CommandLine::ForCurrentProcess()->HasSwitch(kGTestHelpFlag) || in LaunchUnitTestsInternal()
220 CommandLine::ForCurrentProcess()->HasSwitch(kGTestListTestsFlag) || in LaunchUnitTestsInternal()
221 CommandLine::ForCurrentProcess()->HasSwitch(kSingleProcessTestsFlag) || in LaunchUnitTestsInternal()
222 CommandLine::ForCurrentProcess()->HasSwitch( in LaunchUnitTestsInternal()
229 if (CommandLine::ForCurrentProcess()->HasSwitch(kHelpFlag)) { in LaunchUnitTestsInternal()
/external/libchrome/libchrome_tools/patch/
Dlogging.patch21 - if (command_line->HasSwitch(switches::kV) ||
22 - command_line->HasSwitch(switches::kVModule)) {
37 + if (command_line->HasSwitch(switches::kV) ||
38 + command_line->HasSwitch(switches::kVModule)) {
/external/libchrome/base/test/
Dtest_timeouts.cc27 if (base::CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) { in InitializeTimeout()
98 base::CommandLine::ForCurrentProcess()->HasSwitch( in Initialize()
Dtrace_to_file.cc30 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kTraceToFile)) in BeginTracingFromCommandLineOptions()
39 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTraceToFileName)) { in BeginTracingFromCommandLineOptions()
Dtest_suite.cc109 if (command_line.HasSwitch(switches::kProfilingFile)) in GetProfileName()
228 if (!CommandLine::ForCurrentProcess()->HasSwitch( in AddTestLauncherResultPrinter()
389 if (command_line->HasSwitch(switches::kWaitForDebugger)) { in Initialize()
439 !command_line->HasSwitch("show-error-dialogs")) { in Initialize()
Dicu_test_util.cc31 if (!CommandLine::ForCurrentProcess()->HasSwitch( in InitializeICUForTesting()
Dmultiprocess_test.cc24 if (!command_line.HasSwitch(switches::kTestChildProcess)) in SpawnMultiProcessTestChild()
Dmultiprocess_test_android.cc46 if (!command_line.HasSwitch(switches::kTestChildProcess)) { in SpawnMultiProcessTestChild()
Dgtest_xml_unittest_result_printer.cc96 if (CommandLine::ForCurrentProcess()->HasSwitch( in OnTestEnd()
/external/libchrome/base/files/
Dfile_locking_unittest.cc99 if (command_line->HasSwitch(kFileUnlock)) { in MULTIPROCESS_TEST_MAIN()
104 } else if (command_line->HasSwitch(kCloseUnlock)) { in MULTIPROCESS_TEST_MAIN()
111 CHECK(command_line->HasSwitch(kExitUnlock)); in MULTIPROCESS_TEST_MAIN()
/external/libchrome/mojo/core/test/
Dmultiprocess_test_helper.cc133 CHECK(!command_line.HasSwitch(switch_string)); in StartChildWithExtraSwitch()
222 if (command_line.HasSwitch(kRunAsBrokerClient)) { in ChildSetup()
/external/libchrome/base/android/
Dcommand_line_android.cc40 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch()
/external/libchrome/base/android/library_loader/
Dlibrary_loader_hooks.cc96 return CommandLine::ForCurrentProcess()->HasSwitch( in ShouldDoOrderfileMemoryOptimization()
/external/libchrome/base/i18n/
Drtl.cc59 static bool has_switch = base::CommandLine::ForCurrentProcess()->HasSwitch( in GetCharacterDirection()
178 if (command_line->HasSwitch(switches::kForceUIDirection)) { in GetForcedTextDirection()
Dbuild_utf8_validator_tables.cc436 if (base::CommandLine::ForCurrentProcess()->HasSwitch("help")) { in main()
/external/libbrillo/brillo/
Dflag_helper.cc217 if (command_line_->HasSwitch("help")) { in UpdateFlagValues()
/external/libchrome/base/metrics/
Dfield_trial.cc832 if (cmd_line.HasSwitch(field_trial_handle_switch)) { in CreateTrialsFromCommandLine()
842 if (cmd_line.HasSwitch(field_trial_handle_switch)) { in CreateTrialsFromCommandLine()
850 if (cmd_line.HasSwitch(switches::kForceFieldTrials)) { in CreateTrialsFromCommandLine()
/external/libchrome/base/task_scheduler/
Dtask_tracker.cc120 CommandLine::ForCurrentProcess()->HasSwitch( in GetMaxNumScheduledBackgroundSequences()

12