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

Unified Diff: sync/internal_api/public/test/fake_model_type_service.h

Issue 1763953002: [USS] Change the place where SharedModelTypeProcessor got created (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 9 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/internal_api/public/test/fake_model_type_service.h
diff --git a/sync/internal_api/public/test/fake_model_type_service.h b/sync/internal_api/public/test/fake_model_type_service.h
index 966680a9a796ad36bd90c55b41f0fb03d0330c18..230e7b85586f3d77a7e5b5b83c26b878fed6c915 100644
--- a/sync/internal_api/public/test/fake_model_type_service.h
+++ b/sync/internal_api/public/test/fake_model_type_service.h
@@ -13,6 +13,7 @@
#include "sync/api/metadata_batch.h"
#include "sync/api/metadata_change_list.h"
#include "sync/api/model_type_service.h"
+#include "sync/internal_api/public/shared_model_type_processor.h"
namespace syncer_v2 {
@@ -42,6 +43,23 @@ class FakeModelTypeService
std::string GetClientTag(const EntityData& entity_data) override;
void OnChangeProcessorSet() override;
+
+ // TODO(gangwu): remove this and use overload constructor.
+ base::WeakPtr<SharedModelTypeProcessor> SetUpProcessor(
+ ModelTypeChangeProcessor* processor);
+
+ protected:
+ // The function will create ModelTypeChangeProcessor.
+ virtual ModelTypeChangeProcessor* CreateProcessorForTest(
+ syncer::ModelType type,
+ ModelTypeService* service);
+
+ private:
+ scoped_ptr<ModelTypeChangeProcessor> CreateProcessorForTestWrapper(
+ syncer::ModelType type,
+ ModelTypeService* service);
+
+ syncer_v2::ModelTypeChangeProcessor* processor_;
};
} // namespace syncer_v2
« no previous file with comments | « sync/internal_api/public/shared_model_type_processor.h ('k') | sync/internal_api/shared_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698