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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar_unittest.cc

Issue 1086733002: Ensure tests have an active task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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/sync/glue/sync_backend_registrar_unittest.cc
diff --git a/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc b/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
index 1129bbffb8272ef42e504bda7cbe9e70afeef80f..3db65e9aa8506800906545295e371b71596ff562 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
+++ b/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
@@ -60,10 +60,10 @@ class SyncBackendRegistrarTest : public testing::Test {
protected:
SyncBackendRegistrarTest()
- : sync_thread_(NULL),
- thread_bundle_(content::TestBrowserThreadBundle::REAL_DB_THREAD |
+ : thread_bundle_(content::TestBrowserThreadBundle::REAL_DB_THREAD |
content::TestBrowserThreadBundle::REAL_FILE_THREAD |
- content::TestBrowserThreadBundle::REAL_IO_THREAD) {}
+ content::TestBrowserThreadBundle::REAL_IO_THREAD),
+ sync_thread_(NULL) {}
~SyncBackendRegistrarTest() override {}
@@ -101,12 +101,12 @@ class SyncBackendRegistrarTest : public testing::Test {
}
}
+ content::TestBrowserThreadBundle thread_bundle_;
syncer::TestUserShare test_user_share_;
TestingProfile profile_;
scoped_ptr<SyncBackendRegistrar> registrar_;
base::Thread* sync_thread_;
- content::TestBrowserThreadBundle thread_bundle_;
};
TEST_F(SyncBackendRegistrarTest, ConstructorEmpty) {

Powered by Google App Engine
This is Rietveld 408576698