OLD | NEW |
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 { |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 void FakeSyncEngine::UpdateCredentials(const SyncCredentials& credentials) {} | 25 void FakeSyncEngine::UpdateCredentials(const SyncCredentials& credentials) {} |
26 | 26 |
27 void FakeSyncEngine::StartConfiguration() {} | 27 void FakeSyncEngine::StartConfiguration() {} |
28 | 28 |
29 void FakeSyncEngine::StartSyncingWithServer() {} | 29 void FakeSyncEngine::StartSyncingWithServer() {} |
30 | 30 |
31 void FakeSyncEngine::SetEncryptionPassphrase(const std::string& passphrase, | 31 void FakeSyncEngine::SetEncryptionPassphrase(const std::string& passphrase, |
32 bool is_explicit) {} | 32 bool is_explicit) {} |
33 | 33 |
34 bool FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) { | 34 void FakeSyncEngine::SetDecryptionPassphrase(const std::string& passphrase) {} |
35 return false; | |
36 } | |
37 | 35 |
38 void FakeSyncEngine::StopSyncingForShutdown() {} | 36 void FakeSyncEngine::StopSyncingForShutdown() {} |
39 | 37 |
40 void FakeSyncEngine::Shutdown(ShutdownReason reason) {} | 38 void FakeSyncEngine::Shutdown(ShutdownReason reason) {} |
41 | 39 |
42 void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) {} | 40 void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) {} |
43 | 41 |
44 void FakeSyncEngine::RegisterDirectoryDataType(ModelType type, | 42 void FakeSyncEngine::RegisterDirectoryDataType(ModelType type, |
45 ModelSafeGroup group) {} | 43 ModelSafeGroup group) {} |
46 | 44 |
(...skipping 18 matching lines...) Expand all Loading... |
65 } | 63 } |
66 | 64 |
67 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() { | 65 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() { |
68 return SyncEngine::Status(); | 66 return SyncEngine::Status(); |
69 } | 67 } |
70 | 68 |
71 bool FakeSyncEngine::HasUnsyncedItems() const { | 69 bool FakeSyncEngine::HasUnsyncedItems() const { |
72 return false; | 70 return false; |
73 } | 71 } |
74 | 72 |
75 bool FakeSyncEngine::IsNigoriEnabled() const { | |
76 return true; | |
77 } | |
78 | |
79 PassphraseType FakeSyncEngine::GetPassphraseType() const { | |
80 return PassphraseType::IMPLICIT_PASSPHRASE; | |
81 } | |
82 | |
83 base::Time FakeSyncEngine::GetExplicitPassphraseTime() const { | |
84 return base::Time(); | |
85 } | |
86 | |
87 bool FakeSyncEngine::IsCryptographerReady(const BaseTransaction* trans) const { | 73 bool FakeSyncEngine::IsCryptographerReady(const BaseTransaction* trans) const { |
88 return false; | 74 return false; |
89 } | 75 } |
90 | 76 |
91 void FakeSyncEngine::GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const {} | 77 void FakeSyncEngine::GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const {} |
92 | 78 |
93 void FakeSyncEngine::FlushDirectory() const {} | 79 void FakeSyncEngine::FlushDirectory() const {} |
94 | 80 |
95 void FakeSyncEngine::RefreshTypesForTest(ModelTypeSet types) {} | 81 void FakeSyncEngine::RefreshTypesForTest(ModelTypeSet types) {} |
96 | 82 |
(...skipping 11 matching lines...) Expand all Loading... |
108 | 94 |
109 void FakeSyncEngine::ClearServerData( | 95 void FakeSyncEngine::ClearServerData( |
110 const SyncManager::ClearServerDataCallback& callback) { | 96 const SyncManager::ClearServerDataCallback& callback) { |
111 callback.Run(); | 97 callback.Run(); |
112 } | 98 } |
113 | 99 |
114 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { | 100 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { |
115 } | 101 } |
116 | 102 |
117 } // namespace syncer | 103 } // namespace syncer |
OLD | NEW |