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

Unified Diff: chrome/browser/history/android/android_history_provider_service_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
Index: chrome/browser/history/android/android_history_provider_service_unittest.cc
diff --git a/chrome/browser/history/android/android_history_provider_service_unittest.cc b/chrome/browser/history/android/android_history_provider_service_unittest.cc
index b51ab1c051c2e13156a43a1ea2e0dd50b26bb113..c6ccd3a7c087a0a16da40c99bb390d2cbfc4f989 100644
--- a/chrome/browser/history/android/android_history_provider_service_unittest.cc
+++ b/chrome/browser/history/android/android_history_provider_service_unittest.cc
@@ -20,7 +20,7 @@
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/history/core/browser/android/android_history_types.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -28,7 +28,6 @@ namespace {
using base::Bind;
using base::Time;
-using content::BrowserThread;
using history::AndroidStatement;
using history::HistoryAndBookmarkRow;
using history::SearchRow;
@@ -41,11 +40,7 @@ using history::SearchRow;
class AndroidHistoryProviderServiceTest : public testing::Test {
public:
AndroidHistoryProviderServiceTest()
- : profile_manager_(
- TestingBrowserProcess::GetGlobal()),
- ui_thread_(BrowserThread::UI, &message_loop_),
- file_thread_(BrowserThread::FILE, &message_loop_) {
- }
+ : profile_manager_(TestingBrowserProcess::GetGlobal()) {}
~AndroidHistoryProviderServiceTest() override {}
protected:
@@ -73,9 +68,7 @@ class AndroidHistoryProviderServiceTest : public testing::Test {
protected:
TestingProfileManager profile_manager_;
- base::MessageLoop message_loop_;
- content::TestBrowserThread ui_thread_;
- content::TestBrowserThread file_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
std::unique_ptr<AndroidHistoryProviderService> service_;
base::CancelableTaskTracker cancelable_tracker_;
TestingProfile* testing_profile_;

Powered by Google App Engine
This is Rietveld 408576698