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

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

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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
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/core/base_transaction.h" 9 #include "components/sync/core/base_transaction.h"
10 #include "components/sync/core/user_share.h" 10 #include "components/sync/core/user_share.h"
11 #include "components/sync/sessions/sync_session_snapshot.h" 11 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
12 12
13 namespace sync_driver { 13 namespace sync_driver {
14 14
15 FakeSyncService::FakeSyncService() 15 FakeSyncService::FakeSyncService()
16 : error_(GoogleServiceAuthError::NONE), 16 : error_(GoogleServiceAuthError::NONE),
17 user_share_(base::WrapUnique(new syncer::UserShare())) {} 17 user_share_(base::WrapUnique(new syncer::UserShare())) {}
18 18
19 FakeSyncService::~FakeSyncService() {} 19 FakeSyncService::~FakeSyncService() {}
20 20
21 bool FakeSyncService::IsFirstSetupComplete() const { 21 bool FakeSyncService::IsFirstSetupComplete() const {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 base::string16 FakeSyncService::GetLastSyncedTimeString() const { 167 base::string16 FakeSyncService::GetLastSyncedTimeString() const {
168 return base::string16(); 168 return base::string16();
169 } 169 }
170 170
171 std::string FakeSyncService::GetBackendInitializationStateString() const { 171 std::string FakeSyncService::GetBackendInitializationStateString() const {
172 return std::string(); 172 return std::string();
173 } 173 }
174 174
175 syncer::sessions::SyncSessionSnapshot FakeSyncService::GetLastSessionSnapshot() 175 syncer::SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const {
176 const { 176 return syncer::SyncCycleSnapshot();
177 return syncer::sessions::SyncSessionSnapshot();
178 } 177 }
179 178
180 base::Value* FakeSyncService::GetTypeStatusMap() const { 179 base::Value* FakeSyncService::GetTypeStatusMap() const {
181 return new base::ListValue(); 180 return new base::ListValue();
182 } 181 }
183 182
184 const GURL& FakeSyncService::sync_service_url() const { 183 const GURL& FakeSyncService::sync_service_url() const {
185 return sync_service_url_; 184 return sync_service_url_;
186 } 185 }
187 186
(...skipping 19 matching lines...) Expand all
207 syncer::TypeDebugInfoObserver* observer) {} 206 syncer::TypeDebugInfoObserver* observer) {}
208 207
209 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { 208 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() {
210 return base::WeakPtr<syncer::JsController>(); 209 return base::WeakPtr<syncer::JsController>();
211 } 210 }
212 211
213 void FakeSyncService::GetAllNodes( 212 void FakeSyncService::GetAllNodes(
214 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} 213 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
215 214
216 } // namespace sync_driver 215 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_service.h ('k') | components/sync/driver/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698