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

Side by Side Diff: components/sync/engine/fake_sync_engine.cc

Issue 2641523004: [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Address comments Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/fake_sync_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/engine/fake_sync_engine.h" 5 #include "components/sync/engine/fake_sync_engine.h"
6 6
7 #include "components/sync/engine/activation_context.h" 7 #include "components/sync/engine/activation_context.h"
8 #include "components/sync/engine/sync_engine_host.h" 8 #include "components/sync/engine/sync_engine_host.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 const char kTestCacheGuid[] = "test-guid"; 12 const char kTestCacheGuid[] = "test-guid";
13 13
14 FakeSyncEngine::FakeSyncEngine() : fail_initial_download_(false) {} 14 FakeSyncEngine::FakeSyncEngine() : fail_initial_download_(false) {}
15 FakeSyncEngine::~FakeSyncEngine() {} 15 FakeSyncEngine::~FakeSyncEngine() {}
16 16
17 void FakeSyncEngine::Initialize(InitParams params) { 17 void FakeSyncEngine::Initialize(InitParams params) {
18 params.host->OnEngineInitialized(ModelTypeSet(), WeakHandle<JsBackend>(), 18 params.host->OnEngineInitialized(ModelTypeSet(), WeakHandle<JsBackend>(),
19 WeakHandle<DataTypeDebugInfoListener>(), 19 WeakHandle<DataTypeDebugInfoListener>(),
20 kTestCacheGuid, !fail_initial_download_); 20 kTestCacheGuid, !fail_initial_download_);
21 } 21 }
22 22
23 void FakeSyncEngine::TriggerRefresh(const ModelTypeSet& types) {} 23 void FakeSyncEngine::TriggerRefresh(const ModelTypeSet& types) {}
24 24
25 void FakeSyncEngine::UpdateCredentials(const SyncCredentials& credentials) {} 25 void FakeSyncEngine::UpdateCredentials(const SyncCredentials& credentials) {}
26 26
27 void FakeSyncEngine::StartConfiguration() {}
28
27 void FakeSyncEngine::StartSyncingWithServer() {} 29 void FakeSyncEngine::StartSyncingWithServer() {}
28 30
29 void FakeSyncEngine::SetEncryptionPassphrase(const std::string& passphrase, 31 void FakeSyncEngine::SetEncryptionPassphrase(const std::string& passphrase,
30 bool is_explicit) {} 32 bool is_explicit) {}
31 33
32 bool FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) { 34 bool FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) {
33 return false; 35 return false;
34 } 36 }
35 37
36 void FakeSyncEngine::StopSyncingForShutdown() {} 38 void FakeSyncEngine::StopSyncingForShutdown() {}
37 39
38 void FakeSyncEngine::Shutdown(ShutdownReason reason) {} 40 void FakeSyncEngine::Shutdown(ShutdownReason reason) {}
39 41
40 void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) {} 42 void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) {}
41 43
44 void FakeSyncEngine::RegisterDirectoryDataType(ModelType type,
45 ModelSafeGroup group) {}
46
47 void FakeSyncEngine::UnregisterDirectoryDataType(ModelType type) {}
48
42 void FakeSyncEngine::EnableEncryptEverything() {} 49 void FakeSyncEngine::EnableEncryptEverything() {}
43 50
44 void FakeSyncEngine::ActivateDirectoryDataType( 51 void FakeSyncEngine::ActivateDirectoryDataType(
45 ModelType type, 52 ModelType type,
46 ModelSafeGroup group, 53 ModelSafeGroup group,
47 ChangeProcessor* change_processor) {} 54 ChangeProcessor* change_processor) {}
48 void FakeSyncEngine::DeactivateDirectoryDataType(ModelType type) {} 55 void FakeSyncEngine::DeactivateDirectoryDataType(ModelType type) {}
49 56
50 void FakeSyncEngine::ActivateNonBlockingDataType( 57 void FakeSyncEngine::ActivateNonBlockingDataType(
51 ModelType type, 58 ModelType type,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 108
102 void FakeSyncEngine::ClearServerData( 109 void FakeSyncEngine::ClearServerData(
103 const SyncManager::ClearServerDataCallback& callback) { 110 const SyncManager::ClearServerDataCallback& callback) {
104 callback.Run(); 111 callback.Run();
105 } 112 }
106 113
107 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { 114 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) {
108 } 115 }
109 116
110 } // namespace syncer 117 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_engine.h ('k') | components/sync/engine/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698