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

Unified Diff: chrome/browser/metrics/thread_watcher_unittest.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
Index: chrome/browser/metrics/thread_watcher_unittest.cc
diff --git a/chrome/browser/metrics/thread_watcher_unittest.cc b/chrome/browser/metrics/thread_watcher_unittest.cc
index 2f360be7c20ee0550c6c14e0aae4a4a18bef33d0..a53cd490d79b5e5bf46b583e5a9a9169a76bd964 100644
--- a/chrome/browser/metrics/thread_watcher_unittest.cc
+++ b/chrome/browser/metrics/thread_watcher_unittest.cc
@@ -337,7 +337,7 @@ const std::string ThreadWatcherTest::crash_on_hang_thread_data =
TEST_F(ThreadWatcherTest, ThreadNamesOnlyArgs) {
// Setup command_line arguments.
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitchASCII(switches::kCrashOnHangThreads,
crash_on_hang_thread_names);
@@ -367,7 +367,7 @@ TEST_F(ThreadWatcherTest, ThreadNamesOnlyArgs) {
TEST_F(ThreadWatcherTest, ThreadNamesAndLiveThresholdArgs) {
// Setup command_line arguments.
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitchASCII(switches::kCrashOnHangThreads,
thread_names_and_live_threshold);
@@ -397,7 +397,7 @@ TEST_F(ThreadWatcherTest, ThreadNamesAndLiveThresholdArgs) {
TEST_F(ThreadWatcherTest, CrashOnHangThreadsAllArgs) {
// Setup command_line arguments.
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitchASCII(switches::kCrashOnHangThreads,
crash_on_hang_thread_data);
@@ -697,7 +697,7 @@ TEST_F(ThreadWatcherListTest, Restart) {
// whilst StopWatchingAll() will just PostTask to destroy it.
// Ensure that when Stop is called, Start will NOT create
// g_thread_watcher_list_ later on.
- ThreadWatcherList::StartWatchingAll(*CommandLine::ForCurrentProcess());
+ ThreadWatcherList::StartWatchingAll(*base::CommandLine::ForCurrentProcess());
ThreadWatcherList::StopWatchingAll();
message_loop_for_ui.PostDelayedTask(
FROM_HERE,
@@ -711,7 +711,7 @@ TEST_F(ThreadWatcherListTest, Restart) {
"Start / Stopped");
// Proceed with just |StartWatchingAll| and ensure it'll be started.
- ThreadWatcherList::StartWatchingAll(*CommandLine::ForCurrentProcess());
+ ThreadWatcherList::StartWatchingAll(*base::CommandLine::ForCurrentProcess());
message_loop_for_ui.PostDelayedTask(
FROM_HERE,
message_loop_for_ui.QuitClosure(),
« no previous file with comments | « chrome/browser/metrics/thread_watcher_android_unittest.cc ('k') | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698