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

Side by Side Diff: components/sync/driver/generic_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/generic_change_processor.h" 5 #include "components/sync/driver/generic_change_processor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // pass MockAttachmentService to it. 63 // pass MockAttachmentService to it.
64 class MockSyncApiComponentFactory : public SyncApiComponentFactory { 64 class MockSyncApiComponentFactory : public SyncApiComponentFactory {
65 public: 65 public:
66 MockSyncApiComponentFactory() {} 66 MockSyncApiComponentFactory() {}
67 67
68 // SyncApiComponentFactory implementation. 68 // SyncApiComponentFactory implementation.
69 void RegisterDataTypes( 69 void RegisterDataTypes(
70 SyncService* sync_service, 70 SyncService* sync_service,
71 const RegisterDataTypesMethod& register_platform_types_method) override {} 71 const RegisterDataTypesMethod& register_platform_types_method) override {}
72 DataTypeManager* CreateDataTypeManager( 72 DataTypeManager* CreateDataTypeManager(
73 ModelTypeSet initial_types,
73 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 74 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
74 const DataTypeController::TypeMap* controllers, 75 const DataTypeController::TypeMap* controllers,
75 const DataTypeEncryptionHandler* encryption_handler, 76 const DataTypeEncryptionHandler* encryption_handler,
76 SyncEngine* backend, 77 ModelTypeConfigurer* configurer,
77 DataTypeManagerObserver* observer) override { 78 DataTypeManagerObserver* observer) override {
78 return nullptr; 79 return nullptr;
79 }; 80 };
80 SyncEngine* CreateSyncEngine(const std::string& name, 81 SyncEngine* CreateSyncEngine(const std::string& name,
81 invalidation::InvalidationService* invalidator, 82 invalidation::InvalidationService* invalidator,
82 const base::WeakPtr<SyncPrefs>& sync_prefs, 83 const base::WeakPtr<SyncPrefs>& sync_prefs,
83 const base::FilePath& sync_folder) override { 84 const base::FilePath& sync_folder) override {
84 return nullptr; 85 return nullptr;
85 } 86 }
86 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider() 87 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider()
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 SyncDataList sync_data = change_processor()->GetAllSyncData(SESSIONS); 502 SyncDataList sync_data = change_processor()->GetAllSyncData(SESSIONS);
502 ASSERT_EQ(sync_data.size(), 1U); 503 ASSERT_EQ(sync_data.size(), 1U);
503 ASSERT_EQ("session tag 2", 504 ASSERT_EQ("session tag 2",
504 sync_data[0].GetSpecifics().session().session_tag()); 505 sync_data[0].GetSpecifics().session().session_tag());
505 EXPECT_FALSE(SyncDataRemote(sync_data[0]).GetClientTagHash().empty()); 506 EXPECT_FALSE(SyncDataRemote(sync_data[0]).GetClientTagHash().empty());
506 } 507 }
507 508
508 } // namespace 509 } // namespace
509 510
510 } // namespace syncer 511 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_manager_impl_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698