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

Side by Side Diff: content/public/test/test_launcher.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/test_launcher.h" 5 #include "content/public/test/test_launcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 if (!base::StringToInt(switch_value, result) || *result < 1) { 316 if (!base::StringToInt(switch_value, result) || *result < 1) {
317 LOG(ERROR) << "Invalid value for " << switch_name << ": " << switch_value; 317 LOG(ERROR) << "Invalid value for " << switch_name << ": " << switch_value;
318 return false; 318 return false;
319 } 319 }
320 320
321 return true; 321 return true;
322 } 322 }
323 323
324 } // namespace 324 } // namespace
325 325
326 // The following is kept for historical reasons (so people that are used to
327 // using it don't get surprised).
328 const char kChildProcessFlag[] = "child";
329
330 const char kHelpFlag[] = "help"; 326 const char kHelpFlag[] = "help";
331 327
332 const char kLaunchAsBrowser[] = "as-browser"; 328 const char kLaunchAsBrowser[] = "as-browser";
333 329
334 // See kManualTestPrefix above. 330 // See kManualTestPrefix above.
335 const char kRunManualTestsFlag[] = "run-manual"; 331 const char kRunManualTestsFlag[] = "run-manual";
336 332
337 const char kSingleProcessTestsFlag[] = "single_process"; 333 const char kSingleProcessTestsFlag[] = "single_process";
338 334
339 335
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 419
424 WrapperTestLauncherDelegate delegate(launcher_delegate, jobs); 420 WrapperTestLauncherDelegate delegate(launcher_delegate, jobs);
425 return base::LaunchTests(&delegate, argc, argv); 421 return base::LaunchTests(&delegate, argc, argv);
426 } 422 }
427 423
428 TestLauncherDelegate* GetCurrentTestLauncherDelegate() { 424 TestLauncherDelegate* GetCurrentTestLauncherDelegate() {
429 return g_launcher_delegate; 425 return g_launcher_delegate;
430 } 426 }
431 427
432 } // namespace content 428 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698