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

Side by Side Diff: components/sync_driver/shared_change_processor_unittest.cc

Issue 1421003007: [Sync] Componentize ProfileSyncComponentsFactoryImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix sessions api test Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync_driver/shared_change_processor.h" 5 #include "components/sync_driver/shared_change_processor.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 24 matching lines...) Expand all
35 35
36 using ::testing::NiceMock; 36 using ::testing::NiceMock;
37 using ::testing::StrictMock; 37 using ::testing::StrictMock;
38 38
39 class TestSyncApiComponentFactory : public SyncApiComponentFactory { 39 class TestSyncApiComponentFactory : public SyncApiComponentFactory {
40 public: 40 public:
41 TestSyncApiComponentFactory() {} 41 TestSyncApiComponentFactory() {}
42 ~TestSyncApiComponentFactory() override {} 42 ~TestSyncApiComponentFactory() override {}
43 43
44 // SyncApiComponentFactory implementation. 44 // SyncApiComponentFactory implementation.
45 void RegisterDataTypes(sync_driver::SyncClient* sync_client) override {} 45 void RegisterDataTypes(
46 const RegisterDataTypesMethod& register_platform_types_method) override {}
46 sync_driver::DataTypeManager* CreateDataTypeManager( 47 sync_driver::DataTypeManager* CreateDataTypeManager(
47 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 48 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
48 debug_info_listener, 49 debug_info_listener,
49 const sync_driver::DataTypeController::TypeMap* controllers, 50 const sync_driver::DataTypeController::TypeMap* controllers,
50 const sync_driver::DataTypeEncryptionHandler* encryption_handler, 51 const sync_driver::DataTypeEncryptionHandler* encryption_handler,
51 browser_sync::SyncBackendHost* backend, 52 browser_sync::SyncBackendHost* backend,
52 sync_driver::DataTypeManagerObserver* observer) override { 53 sync_driver::DataTypeManagerObserver* observer) override {
53 return nullptr; 54 return nullptr;
54 } 55 }
55 browser_sync::SyncBackendHost* CreateSyncBackendHost( 56 browser_sync::SyncBackendHost* CreateSyncBackendHost(
56 const std::string& name, 57 const std::string& name,
57 SyncClient* sync_client,
58 invalidation::InvalidationService* invalidator, 58 invalidation::InvalidationService* invalidator,
59 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 59 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
60 const base::FilePath& sync_folder) override { 60 const base::FilePath& sync_folder) override {
61 return nullptr; 61 return nullptr;
62 } 62 }
63 scoped_ptr<sync_driver::LocalDeviceInfoProvider> 63 scoped_ptr<sync_driver::LocalDeviceInfoProvider>
64 CreateLocalDeviceInfoProvider() override { 64 CreateLocalDeviceInfoProvider() override {
65 return nullptr; 65 return nullptr;
66 } 66 }
67 SyncApiComponentFactory::SyncComponents CreateBookmarkSyncComponents( 67 SyncApiComponentFactory::SyncComponents CreateBookmarkSyncComponents(
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // creates AttachmentService and passes it back to the syncable service. 233 // creates AttachmentService and passes it back to the syncable service.
234 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { 234 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) {
235 SetAttachmentStore(); 235 SetAttachmentStore();
236 Connect(); 236 Connect();
237 EXPECT_TRUE(HasAttachmentService()); 237 EXPECT_TRUE(HasAttachmentService());
238 } 238 }
239 239
240 } // namespace 240 } // namespace
241 241
242 } // namespace sync_driver 242 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor_unittest.cc ('k') | components/sync_driver/sync_api_component_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698