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

Unified Diff: components/sync/model/recording_model_type_change_processor.h

Issue 2856933005: [Sync] Create UserEventSyncBridge. (Closed)
Patch Set: Removing autocomplete_sync_bridge_unittest.cc from cl. Created 3 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: components/sync/model/recording_model_type_change_processor.h
diff --git a/components/sync/model/recording_model_type_change_processor.h b/components/sync/model/recording_model_type_change_processor.h
index 6fe9180166c8fd4fb35916eab8139cdbeb257b94..59f87e96e74f5d52319bb8c8a16be0389762561f 100644
--- a/components/sync/model/recording_model_type_change_processor.h
+++ b/components/sync/model/recording_model_type_change_processor.h
@@ -11,6 +11,7 @@
#include <string>
#include "components/sync/model/fake_model_type_change_processor.h"
+#include "components/sync/model/model_type_sync_bridge.h"
namespace syncer {
@@ -41,6 +42,14 @@ class RecordingModelTypeChangeProcessor : public FakeModelTypeChangeProcessor {
MetadataBatch* metadata() const { return metadata_.get(); }
+ // Returns a callback that constructs a processor and assigns a raw pointer to
+ // the given address. The caller must ensure that the address passed in is
+ // still valid whenever the callback is run. This can be useful for tests that
+ // want to verify the RecordingModelTypeChangeProcessor was given data by the
+ // bridge they are testing.
+ static ModelTypeSyncBridge::ChangeProcessorFactory FactoryForBridgeTest(
+ RecordingModelTypeChangeProcessor** processor_address);
+
private:
std::multimap<std::string, std::unique_ptr<EntityData>> put_multimap_;
std::set<std::string> delete_set_;
« no previous file with comments | « components/sync/model/model_type_store_test_util.cc ('k') | components/sync/model/recording_model_type_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698