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

Side by Side Diff: components/sync/driver/fake_sync_service.cc

Issue 2551023006: [Sync] SyncEngine 1.5: Fix all backend references in PSS. (Closed)
Patch Set: Fix Android. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/fake_sync_service.h" 5 #include "components/sync/driver/fake_sync_service.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "components/sync/driver/data_type_controller.h" 9 #include "components/sync/driver/data_type_controller.h"
10 #include "components/sync/syncable/base_transaction.h" 10 #include "components/sync/syncable/base_transaction.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const { 87 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const {
88 return error_; 88 return error_;
89 } 89 }
90 90
91 bool FakeSyncService::HasUnrecoverableError() const { 91 bool FakeSyncService::HasUnrecoverableError() const {
92 return false; 92 return false;
93 } 93 }
94 94
95 bool FakeSyncService::IsBackendInitialized() const { 95 bool FakeSyncService::IsEngineInitialized() const {
96 return false; 96 return false;
97 } 97 }
98 98
99 sync_sessions::OpenTabsUIDelegate* FakeSyncService::GetOpenTabsUIDelegate() { 99 sync_sessions::OpenTabsUIDelegate* FakeSyncService::GetOpenTabsUIDelegate() {
100 return nullptr; 100 return nullptr;
101 } 101 }
102 102
103 bool FakeSyncService::IsPassphraseRequiredForDecryption() const { 103 bool FakeSyncService::IsPassphraseRequiredForDecryption() const {
104 return false; 104 return false;
105 } 105 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 bool FakeSyncService::QueryDetailedSyncStatus(SyncStatus* result) { 161 bool FakeSyncService::QueryDetailedSyncStatus(SyncStatus* result) {
162 return false; 162 return false;
163 } 163 }
164 164
165 base::string16 FakeSyncService::GetLastSyncedTimeString() const { 165 base::string16 FakeSyncService::GetLastSyncedTimeString() const {
166 return base::string16(); 166 return base::string16();
167 } 167 }
168 168
169 std::string FakeSyncService::GetBackendInitializationStateString() const { 169 std::string FakeSyncService::GetEngineInitializationStateString() const {
170 return std::string(); 170 return std::string();
171 } 171 }
172 172
173 SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const { 173 SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const {
174 return SyncCycleSnapshot(); 174 return SyncCycleSnapshot();
175 } 175 }
176 176
177 std::unique_ptr<base::Value> FakeSyncService::GetTypeStatusMap() { 177 std::unique_ptr<base::Value> FakeSyncService::GetTypeStatusMap() {
178 return base::MakeUnique<base::ListValue>(); 178 return base::MakeUnique<base::ListValue>();
179 } 179 }
(...skipping 24 matching lines...) Expand all
204 TypeDebugInfoObserver* observer) {} 204 TypeDebugInfoObserver* observer) {}
205 205
206 base::WeakPtr<JsController> FakeSyncService::GetJsController() { 206 base::WeakPtr<JsController> FakeSyncService::GetJsController() {
207 return base::WeakPtr<JsController>(); 207 return base::WeakPtr<JsController>();
208 } 208 }
209 209
210 void FakeSyncService::GetAllNodes( 210 void FakeSyncService::GetAllNodes(
211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} 211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
212 212
213 } // namespace syncer 213 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_service.h ('k') | components/sync/driver/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698