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

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

Issue 59793008: sync: don't allow NULL profile in ProfileSyncService and friends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 7 years, 1 month 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/shared_change_processor_unittest.cc
diff --git a/chrome/browser/sync/glue/shared_change_processor_unittest.cc b/chrome/browser/sync/glue/shared_change_processor_unittest.cc
index 40983b64b972d58b079e32d018f72ae082bb02b9..507438c4f58daab8930fddd4b1515c902a97fc8e 100644
--- a/chrome/browser/sync/glue/shared_change_processor_unittest.cc
+++ b/chrome/browser/sync/glue/shared_change_processor_unittest.cc
@@ -37,7 +37,8 @@ class SyncSharedChangeProcessorTest : public testing::Test {
public:
SyncSharedChangeProcessorTest()
: ui_thread_(BrowserThread::UI, &ui_loop_),
- db_thread_(BrowserThread::DB) {}
+ db_thread_(BrowserThread::DB),
+ sync_service_(&profile_) {}
virtual ~SyncSharedChangeProcessorTest() {
EXPECT_FALSE(db_syncable_service_.get());
@@ -117,6 +118,7 @@ class SyncSharedChangeProcessorTest : public testing::Test {
scoped_refptr<SharedChangeProcessor> shared_change_processor_;
NiceMock<ProfileSyncComponentsFactoryMock> sync_factory_;
+ TestingProfile profile_;
NiceMock<ProfileSyncServiceMock> sync_service_;
StrictMock<DataTypeErrorHandlerMock> error_handler_;

Powered by Google App Engine
This is Rietveld 408576698