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

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

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_log_util_unittest.cc ('k') | chrome/browser/net/predictor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher_android_unittest.cc
diff --git a/chrome/browser/metrics/thread_watcher_android_unittest.cc b/chrome/browser/metrics/thread_watcher_android_unittest.cc
index 9479d1c0064be36a70c230d732e85f0cd4837185..0112fe843c708754e4df522a9dc9dd9f25ed77a6 100644
--- a/chrome/browser/metrics/thread_watcher_android_unittest.cc
+++ b/chrome/browser/metrics/thread_watcher_android_unittest.cc
@@ -2,17 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+#include "chrome/browser/metrics/thread_watcher_android.h"
#include "base/android/application_status_listener.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "chrome/browser/metrics/thread_watcher.h"
-#include "chrome/browser/metrics/thread_watcher_android.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
-using content::BrowserThread;
-
namespace {
void OnThreadWatcherTask(base::WaitableEvent* event) {
event->Signal();
@@ -44,8 +41,7 @@ TEST(ThreadWatcherAndroidTest, ApplicationStatusNotification) {
// Do not delay the ThreadWatcherList initialization for this test.
ThreadWatcherList::g_initialize_delay_seconds = 0;
- base::MessageLoopForUI message_loop_for_ui;
- content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop_for_ui);
+ content::TestBrowserThreadBundle test_browser_thread_bundle;
std::unique_ptr<WatchDogThread> watchdog_thread_(new WatchDogThread());
watchdog_thread_->StartAndWaitForTesting();
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_log_util_unittest.cc ('k') | chrome/browser/net/predictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698