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

Side by Side Diff: components/sync/driver/shared_change_processor_unittest.cc

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (Closed)
Patch Set: Rebase. Created 4 years 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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 26 matching lines...) Expand all
37 class TestSyncApiComponentFactory : public SyncApiComponentFactory { 37 class TestSyncApiComponentFactory : public SyncApiComponentFactory {
38 public: 38 public:
39 TestSyncApiComponentFactory() {} 39 TestSyncApiComponentFactory() {}
40 ~TestSyncApiComponentFactory() override {} 40 ~TestSyncApiComponentFactory() override {}
41 41
42 // SyncApiComponentFactory implementation. 42 // SyncApiComponentFactory implementation.
43 void RegisterDataTypes( 43 void RegisterDataTypes(
44 SyncService* sync_service, 44 SyncService* sync_service,
45 const RegisterDataTypesMethod& register_platform_types_method) override {} 45 const RegisterDataTypesMethod& register_platform_types_method) override {}
46 DataTypeManager* CreateDataTypeManager( 46 DataTypeManager* CreateDataTypeManager(
47 ModelTypeSet initial_types,
47 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 48 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
48 const DataTypeController::TypeMap* controllers, 49 const DataTypeController::TypeMap* controllers,
49 const DataTypeEncryptionHandler* encryption_handler, 50 const DataTypeEncryptionHandler* encryption_handler,
50 SyncEngine* engine, 51 ModelTypeConfigurer* configurer,
51 DataTypeManagerObserver* observer) override { 52 DataTypeManagerObserver* observer) override {
52 return nullptr; 53 return nullptr;
53 } 54 }
54 SyncEngine* CreateSyncEngine(const std::string& name, 55 SyncEngine* CreateSyncEngine(const std::string& name,
55 invalidation::InvalidationService* invalidator, 56 invalidation::InvalidationService* invalidator,
56 const base::WeakPtr<SyncPrefs>& sync_prefs, 57 const base::WeakPtr<SyncPrefs>& sync_prefs,
57 const base::FilePath& sync_folder) override { 58 const base::FilePath& sync_folder) override {
58 return nullptr; 59 return nullptr;
59 } 60 }
60 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider() 61 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider()
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // creates AttachmentService and passes it back to the syncable service. 224 // creates AttachmentService and passes it back to the syncable service.
224 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { 225 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) {
225 SetAttachmentStore(); 226 SetAttachmentStore();
226 Connect(); 227 Connect();
227 EXPECT_TRUE(HasAttachmentService()); 228 EXPECT_TRUE(HasAttachmentService());
228 } 229 }
229 230
230 } // namespace 231 } // namespace
231 232
232 } // namespace syncer 233 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl_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