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

Unified Diff: sync/internal_api/shared_model_type_processor_unittest.cc

Issue 1763953002: [USS] Change the place where SharedModelTypeProcessor got created (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« sync/api/model_type_service.h ('K') | « sync/api/model_type_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/shared_model_type_processor_unittest.cc
diff --git a/sync/internal_api/shared_model_type_processor_unittest.cc b/sync/internal_api/shared_model_type_processor_unittest.cc
index 53d173538ad526d613629197dde8a7b58df2f4f5..3d659fc7596a6b2d1a0ec83e397d45ed8894bcd8 100644
--- a/sync/internal_api/shared_model_type_processor_unittest.cc
+++ b/sync/internal_api/shared_model_type_processor_unittest.cc
@@ -142,8 +142,7 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
void CreateProcessor() {
ASSERT_FALSE(type_processor());
- set_change_processor(
- make_scoped_ptr(new SharedModelTypeProcessor(kModelType, this)));
+ InitializeProcessor(kModelType);
}
void InitializeToMetadataLoaded() {
@@ -372,6 +371,12 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
return static_cast<SharedModelTypeProcessor*>(change_processor());
}
+ protected:
+ scoped_ptr<syncer_v2::SharedModelTypeProcessor>
+ CreateSharedModelTypeProcessor(syncer::ModelType type) override {
+ return make_scoped_ptr(new SharedModelTypeProcessor(type, this));
+ }
+
private:
static std::string GenerateTagHash(const std::string& tag) {
return syncer::syncable::GenerateSyncableHash(kModelType, tag);
« sync/api/model_type_service.h ('K') | « sync/api/model_type_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698