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

Unified Diff: chrome/browser/sync/backend_migrator_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/backend_migrator_unittest.cc
diff --git a/chrome/browser/sync/backend_migrator_unittest.cc b/chrome/browser/sync/backend_migrator_unittest.cc
index 205bf35a5929e44d5cb7347cfe94f48d819a977a..f261756a5b67c9d3cf8c18ad72925e6fae8ead29 100644
--- a/chrome/browser/sync/backend_migrator_unittest.cc
+++ b/chrome/browser/sync/backend_migrator_unittest.cc
@@ -29,7 +29,7 @@ using syncer::sessions::SyncSessionSnapshot;
class SyncBackendMigratorTest : public testing::Test {
public:
- SyncBackendMigratorTest() { }
+ SyncBackendMigratorTest() : service_(&profile_) { }
virtual ~SyncBackendMigratorTest() { }
virtual void SetUp() {
@@ -104,6 +104,7 @@ class SyncBackendMigratorTest : public testing::Test {
scoped_ptr<SyncSessionSnapshot> snap_;
base::MessageLoop message_loop_;
syncer::ModelTypeSet preferred_types_;
+ TestingProfile profile_;
NiceMock<ProfileSyncServiceMock> service_;
NiceMock<DataTypeManagerMock> manager_;
syncer::TestUserShare test_user_share_;
« no previous file with comments | « chrome/browser/invalidation/invalidator_storage.cc ('k') | chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698