Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: content/public/test/test_launcher.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_launcher.cc
diff --git a/content/public/test/test_launcher.cc b/content/public/test/test_launcher.cc
index 1caefb6cc189188d8ca6c8d11a7066da3947b6ae..c5de324eff1f32da09ba94136199cdb86ee0b43f 100644
--- a/content/public/test/test_launcher.cc
+++ b/content/public/test/test_launcher.cc
@@ -176,7 +176,7 @@ bool WrapperTestLauncherDelegate::ShouldRunTest(
all_test_names_.insert(test_case_name + "." + test_name);
if (StartsWithASCII(test_name, kManualTestPrefix, true) &&
- !CommandLine::ForCurrentProcess()->HasSwitch(kRunManualTestsFlag)) {
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(kRunManualTestsFlag)) {
return false;
}
@@ -315,18 +315,18 @@ void WrapperTestLauncherDelegate::DoRunTest(base::TestLauncher* test_launcher,
const std::string& test_name) {
std::string test_name_no_pre(RemoveAnyPrePrefixes(test_name));
- CommandLine cmd_line(*CommandLine::ForCurrentProcess());
+ base::CommandLine cmd_line(*base::CommandLine::ForCurrentProcess());
CHECK(launcher_delegate_->AdjustChildProcessCommandLine(
&cmd_line, user_data_dir_map_[test_name_no_pre]));
- CommandLine new_cmd_line(cmd_line.GetProgram());
- CommandLine::SwitchMap switches = cmd_line.GetSwitches();
+ base::CommandLine new_cmd_line(cmd_line.GetProgram());
+ base::CommandLine::SwitchMap switches = cmd_line.GetSwitches();
// Strip out gtest_output flag because otherwise we would overwrite results
// of the other tests.
switches.erase(base::kGTestOutputFlag);
- for (CommandLine::SwitchMap::const_iterator iter = switches.begin();
+ for (base::CommandLine::SwitchMap::const_iterator iter = switches.begin();
iter != switches.end(); ++iter) {
new_cmd_line.AppendSwitchNative(iter->first, iter->second);
}
@@ -435,8 +435,9 @@ int LaunchTests(TestLauncherDelegate* launcher_delegate,
DCHECK(!g_launcher_delegate);
g_launcher_delegate = launcher_delegate;
- CommandLine::Init(argc, argv);
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ base::CommandLine::Init(argc, argv);
+ const base::CommandLine* command_line =
+ base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(kHelpFlag)) {
PrintUsage();
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698