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/driver/glue/sync_backend_host_mock.h" | 5 #include "components/sync/driver/glue/sync_backend_host_mock.h" |
6 | 6 |
7 #include "components/sync/core/activation_context.h" | 7 #include "components/sync/core/activation_context.h" |
8 #include "components/sync/driver/sync_frontend.h" | 8 #include "components/sync/driver/sync_frontend.h" |
9 | 9 |
10 namespace browser_sync { | 10 namespace browser_sync { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 bool SyncBackendHostMock::HasUnsyncedItems() const { | 101 bool SyncBackendHostMock::HasUnsyncedItems() const { |
102 return false; | 102 return false; |
103 } | 103 } |
104 | 104 |
105 bool SyncBackendHostMock::IsNigoriEnabled() const { | 105 bool SyncBackendHostMock::IsNigoriEnabled() const { |
106 return true; | 106 return true; |
107 } | 107 } |
108 | 108 |
109 syncer::PassphraseType SyncBackendHostMock::GetPassphraseType() const { | 109 syncer::PassphraseType SyncBackendHostMock::GetPassphraseType() const { |
110 return syncer::IMPLICIT_PASSPHRASE; | 110 return syncer::PassphraseType::IMPLICIT_PASSPHRASE; |
111 } | 111 } |
112 | 112 |
113 base::Time SyncBackendHostMock::GetExplicitPassphraseTime() const { | 113 base::Time SyncBackendHostMock::GetExplicitPassphraseTime() const { |
114 return base::Time(); | 114 return base::Time(); |
115 } | 115 } |
116 | 116 |
117 bool SyncBackendHostMock::IsCryptographerReady( | 117 bool SyncBackendHostMock::IsCryptographerReady( |
118 const syncer::BaseTransaction* trans) const { | 118 const syncer::BaseTransaction* trans) const { |
119 return false; | 119 return false; |
120 } | 120 } |
(...skipping 28 matching lines...) Expand all Loading... |
149 | 149 |
150 void SyncBackendHostMock::ClearServerData( | 150 void SyncBackendHostMock::ClearServerData( |
151 const syncer::SyncManager::ClearServerDataCallback& callback) { | 151 const syncer::SyncManager::ClearServerDataCallback& callback) { |
152 callback.Run(); | 152 callback.Run(); |
153 } | 153 } |
154 | 154 |
155 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, | 155 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, |
156 bool empty_jar) {} | 156 bool empty_jar) {} |
157 | 157 |
158 } // namespace browser_sync | 158 } // namespace browser_sync |
OLD | NEW |