| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 syncer::ModelType type) {} | 86 syncer::ModelType type) {} |
| 87 | 87 |
| 88 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { | 88 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { |
| 89 return NULL; | 89 return NULL; |
| 90 } | 90 } |
| 91 | 91 |
| 92 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { | 92 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { |
| 93 return SyncBackendHost::Status(); | 93 return SyncBackendHost::Status(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 syncer::sessions::SyncSessionSnapshot | 96 syncer::SyncCycleSnapshot SyncBackendHostMock::GetLastCycleSnapshot() const { |
| 97 SyncBackendHostMock::GetLastSessionSnapshot() const { | 97 return syncer::SyncCycleSnapshot(); |
| 98 return syncer::sessions::SyncSessionSnapshot(); | |
| 99 } | 98 } |
| 100 | 99 |
| 101 bool SyncBackendHostMock::HasUnsyncedItems() const { | 100 bool SyncBackendHostMock::HasUnsyncedItems() const { |
| 102 return false; | 101 return false; |
| 103 } | 102 } |
| 104 | 103 |
| 105 bool SyncBackendHostMock::IsNigoriEnabled() const { | 104 bool SyncBackendHostMock::IsNigoriEnabled() const { |
| 106 return true; | 105 return true; |
| 107 } | 106 } |
| 108 | 107 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 148 |
| 150 void SyncBackendHostMock::ClearServerData( | 149 void SyncBackendHostMock::ClearServerData( |
| 151 const syncer::SyncManager::ClearServerDataCallback& callback) { | 150 const syncer::SyncManager::ClearServerDataCallback& callback) { |
| 152 callback.Run(); | 151 callback.Run(); |
| 153 } | 152 } |
| 154 | 153 |
| 155 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, | 154 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, |
| 156 bool empty_jar) {} | 155 bool empty_jar) {} |
| 157 | 156 |
| 158 } // namespace browser_sync | 157 } // namespace browser_sync |
| OLD | NEW |