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

Unified Diff: sync/sessions/model_type_registry_unittest.cc

Issue 272323002: sync: Implement disabling of non blocking types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: sync/sessions/model_type_registry_unittest.cc
diff --git a/sync/sessions/model_type_registry_unittest.cc b/sync/sessions/model_type_registry_unittest.cc
index 375e84b53bb66de76a7a2b3c672cb7d6c8337038..a5e3c9143aac2d1d6887111fff514e17c26a0f08 100644
--- a/sync/sessions/model_type_registry_unittest.cc
+++ b/sync/sessions/model_type_registry_unittest.cc
@@ -140,16 +140,12 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypes) {
EXPECT_TRUE(registry()->GetEnabledTypes().Empty());
registry()->InitializeNonBlockingType(
- syncer::THEMES,
- task_runner,
- themes_processor.AsWeakPtr());
+ syncer::THEMES, task_runner, themes_processor.AsWeakPtrForUI());
EXPECT_TRUE(registry()->GetEnabledTypes().Equals(
ModelTypeSet(syncer::THEMES)));
registry()->InitializeNonBlockingType(
- syncer::SESSIONS,
- task_runner,
- sessions_processor.AsWeakPtr());
+ syncer::SESSIONS, task_runner, sessions_processor.AsWeakPtrForUI());
EXPECT_TRUE(registry()->GetEnabledTypes().Equals(
ModelTypeSet(syncer::THEMES, syncer::SESSIONS)));
@@ -177,9 +173,7 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypesWithDirectoryTypes) {
// Add the themes non-blocking type.
registry()->InitializeNonBlockingType(
- syncer::THEMES,
- task_runner,
- themes_processor.AsWeakPtr());
+ syncer::THEMES, task_runner, themes_processor.AsWeakPtrForUI());
current_types.Put(syncer::THEMES);
EXPECT_TRUE(registry()->GetEnabledTypes().Equals(current_types));
@@ -190,9 +184,7 @@ TEST_F(ModelTypeRegistryTest, NonBlockingTypesWithDirectoryTypes) {
// Add sessions non-blocking type.
registry()->InitializeNonBlockingType(
- syncer::SESSIONS,
- task_runner,
- sessions_processor.AsWeakPtr());
+ syncer::SESSIONS, task_runner, sessions_processor.AsWeakPtrForUI());
current_types.Put(syncer::SESSIONS);
EXPECT_TRUE(registry()->GetEnabledTypes().Equals(current_types));
@@ -219,13 +211,9 @@ TEST_F(ModelTypeRegistryTest, DeletionOrdering) {
EXPECT_TRUE(registry()->GetEnabledTypes().Empty());
registry()->InitializeNonBlockingType(
- syncer::THEMES,
- task_runner,
- themes_processor->AsWeakPtr());
+ syncer::THEMES, task_runner, themes_processor->AsWeakPtrForUI());
registry()->InitializeNonBlockingType(
- syncer::SESSIONS,
- task_runner,
- sessions_processor->AsWeakPtr());
+ syncer::SESSIONS, task_runner, sessions_processor->AsWeakPtrForUI());
EXPECT_TRUE(registry()->GetEnabledTypes().Equals(
ModelTypeSet(syncer::THEMES, syncer::SESSIONS)));
« sync/internal_api/sync_core.h ('K') | « sync/internal_api/test/null_sync_core_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698