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

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

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
Index: components/sync/driver/sync_api_component_factory_mock.h
diff --git a/components/sync/driver/sync_api_component_factory_mock.h b/components/sync/driver/sync_api_component_factory_mock.h
index b768e688cb64710cc453f27d822a0d636c4bbc5d..dc5c4964a8ef4490666d9ffe550a9eae4de265f4 100644
--- a/components/sync/driver/sync_api_component_factory_mock.h
+++ b/components/sync/driver/sync_api_component_factory_mock.h
@@ -6,9 +6,10 @@
#define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__
#include <memory>
+#include <string>
+#include "components/sync/api/data_type_error_handler.h"
#include "components/sync/base/model_type.h"
-#include "components/sync/core/data_type_error_handler.h"
#include "components/sync/driver/data_type_controller.h"
#include "components/sync/driver/sync_api_component_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -58,13 +59,9 @@ class SyncApiComponentFactoryMock
const std::string& store_birthday,
syncer::ModelType model_type,
syncer::AttachmentService::Delegate* delegate) override;
- MOCK_METHOD2(CreateBookmarkSyncComponents,
- SyncComponents(sync_driver::SyncService* sync_service,
- syncer::DataTypeErrorHandler* error_handler));
- MOCK_METHOD3(CreateTypedUrlSyncComponents,
- SyncComponents(sync_driver::SyncService* sync_service,
- history::HistoryBackend* history_backend,
- syncer::DataTypeErrorHandler* error_handler));
+ SyncComponents CreateBookmarkSyncComponents(
+ sync_driver::SyncService* sync_service,
+ std::unique_ptr<syncer::DataTypeErrorHandler> error_handler) override;
private:
sync_driver::SyncApiComponentFactory::SyncComponents MakeSyncComponents();
« no previous file with comments | « components/sync/driver/sync_api_component_factory.h ('k') | components/sync/driver/sync_api_component_factory_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698