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

Unified Diff: components/sync/driver/sync_api_component_factory_mock.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 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 | « components/sync/driver/sync_api_component_factory_mock.h ('k') | components/sync/driver/sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/sync_api_component_factory_mock.cc
diff --git a/components/sync/driver/sync_api_component_factory_mock.cc b/components/sync/driver/sync_api_component_factory_mock.cc
index 03e04e1f362ae7b80e3504d89edacaf91ed0af26..189b4576e99e2447100eeb033d25916059b96fac 100644
--- a/components/sync/driver/sync_api_component_factory_mock.cc
+++ b/components/sync/driver/sync_api_component_factory_mock.cc
@@ -27,9 +27,6 @@ SyncApiComponentFactoryMock::SyncApiComponentFactoryMock(
: model_associator_(model_associator),
change_processor_(change_processor),
local_device_(new sync_driver::LocalDeviceInfoProviderMock()) {
- ON_CALL(*this, CreateBookmarkSyncComponents(_, _))
- .WillByDefault(InvokeWithoutArgs(
- this, &SyncApiComponentFactoryMock::MakeSyncComponents));
}
SyncApiComponentFactoryMock::~SyncApiComponentFactoryMock() {}
@@ -45,6 +42,13 @@ SyncApiComponentFactoryMock::CreateAttachmentService(
}
sync_driver::SyncApiComponentFactory::SyncComponents
+SyncApiComponentFactoryMock::CreateBookmarkSyncComponents(
+ sync_driver::SyncService* sync_service,
+ std::unique_ptr<syncer::DataTypeErrorHandler> error_handler) {
+ return MakeSyncComponents();
+}
+
+sync_driver::SyncApiComponentFactory::SyncComponents
SyncApiComponentFactoryMock::MakeSyncComponents() {
return sync_driver::SyncApiComponentFactory::SyncComponents(
model_associator_.release(), change_processor_.release());
« no previous file with comments | « components/sync/driver/sync_api_component_factory_mock.h ('k') | components/sync/driver/sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698