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

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

Issue 7655055: [Sync] Make BackendMigrator not wait for full sync cycles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more comments Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_registrar.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4d58ab64fd2a9a872b50970f5409ef0f51863164..8d409552bcb0529d2dfe048c455b2d8b58ec4e08 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
+++ b/chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
@@ -74,8 +74,7 @@ class SyncBackendRegistrarTest : public testing::Test {
TEST_F(SyncBackendRegistrarTest, ConstructorEmpty) {
TestingProfile profile;
- SyncBackendRegistrar registrar(ModelTypeSet(),
- &profile, &loop_);
+ SyncBackendRegistrar registrar(ModelTypeSet(), "test", &profile, &loop_);
EXPECT_FALSE(registrar.IsNigoriEnabled());
{
std::vector<ModelSafeWorker*> workers;
@@ -94,8 +93,7 @@ TEST_F(SyncBackendRegistrarTest, ConstructorNonEmpty) {
initial_types.insert(BOOKMARKS);
initial_types.insert(NIGORI);
initial_types.insert(PASSWORDS);
- SyncBackendRegistrar registrar(initial_types,
- &profile, &loop_);
+ SyncBackendRegistrar registrar(initial_types, "test", &profile, &loop_);
EXPECT_TRUE(registrar.IsNigoriEnabled());
{
std::vector<ModelSafeWorker*> workers;
@@ -116,8 +114,7 @@ TEST_F(SyncBackendRegistrarTest, ConstructorNonEmpty) {
TEST_F(SyncBackendRegistrarTest, ConfigureDataTypes) {
TestingProfile profile;
- SyncBackendRegistrar registrar(ModelTypeSet(),
- &profile, &loop_);
+ SyncBackendRegistrar registrar(ModelTypeSet(), "test", &profile, &loop_);
// Add.
ModelTypeSet types1;
@@ -159,7 +156,7 @@ TEST_F(SyncBackendRegistrarTest, ConfigureDataTypes) {
TEST_F(SyncBackendRegistrarTest, ActivateDeactivateUIDataType) {
InSequence in_sequence;
TestingProfile profile;
- SyncBackendRegistrar registrar(ModelTypeSet(), &profile, &loop_);
+ SyncBackendRegistrar registrar(ModelTypeSet(), "test", &profile, &loop_);
StrictMock<ChangeProcessorMock> change_processor_mock;
EXPECT_CALL(change_processor_mock, StartImpl(&profile));
EXPECT_CALL(change_processor_mock, IsRunning())
@@ -193,7 +190,7 @@ TEST_F(SyncBackendRegistrarTest, ActivateDeactivateNonUIDataType) {
BrowserThread db_thread(BrowserThread::DB, &loop_);
InSequence in_sequence;
TestingProfile profile;
- SyncBackendRegistrar registrar(ModelTypeSet(), &profile, &loop_);
+ SyncBackendRegistrar registrar(ModelTypeSet(), "test", &profile, &loop_);
StrictMock<ChangeProcessorMock> change_processor_mock;
EXPECT_CALL(change_processor_mock, StartImpl(&profile));
EXPECT_CALL(change_processor_mock, IsRunning())
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_registrar.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698