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

Unified Diff: chrome/browser/history/android/sqlite_cursor_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/sqlite_cursor_unittest.cc
diff --git a/chrome/browser/history/android/sqlite_cursor_unittest.cc b/chrome/browser/history/android/sqlite_cursor_unittest.cc
index 4f99e723f8a2c7f29739c704b4aeb490ff6c6f3c..6f657b385d5ab940fc8458ea66cc81f0c4b05190 100644
--- a/chrome/browser/history/android/sqlite_cursor_unittest.cc
+++ b/chrome/browser/history/android/sqlite_cursor_unittest.cc
@@ -28,7 +28,7 @@
#include "components/history/core/browser/android/android_time.h"
#include "components/history/core/browser/history_service.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 "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -36,7 +36,6 @@ namespace {
using base::Bind;
using base::Time;
-using content::BrowserThread;
using history::AndroidStatement;
using history::HistoryAndBookmarkRow;
using history::SearchRow;
@@ -46,12 +45,7 @@ using history::SearchRow;
class SQLiteCursorTest : public testing::Test,
public SQLiteCursor::TestObserver {
public:
- SQLiteCursorTest()
- : profile_manager_(
- TestingBrowserProcess::GetGlobal()),
- ui_thread_(BrowserThread::UI, &message_loop_),
- file_thread_(BrowserThread::FILE, &message_loop_) {
- }
+ SQLiteCursorTest() : profile_manager_(TestingBrowserProcess::GetGlobal()) {}
~SQLiteCursorTest() override {}
protected:
@@ -108,9 +102,7 @@ class SQLiteCursorTest : 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