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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_mock.cc

Issue 1433473007: [NOT FOR REVIEW] Copy of Max's CL with conflicts fixed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pss_strings
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_mock.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/sync/glue/sync_backend_host_mock.h" 5 #include "components/sync_driver/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync_driver/sync_frontend.h" 7 #include "components/sync_driver/sync_frontend.h"
8 #include "sync/internal_api/public/activation_context.h" 8 #include "sync/internal_api/public/activation_context.h"
9 9
10 namespace browser_sync { 10 namespace browser_sync {
11 11
12 const char kTestCacheGuid[] = "test-guid"; 12 const char kTestCacheGuid[] = "test-guid";
13 13
14 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {} 14 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {}
15 SyncBackendHostMock::~SyncBackendHostMock() {} 15 SyncBackendHostMock::~SyncBackendHostMock() {}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 syncer::sessions::SyncSessionSnapshot 97 syncer::sessions::SyncSessionSnapshot
98 SyncBackendHostMock::GetLastSessionSnapshot() const { 98 SyncBackendHostMock::GetLastSessionSnapshot() const {
99 return syncer::sessions::SyncSessionSnapshot(); 99 return syncer::sessions::SyncSessionSnapshot();
100 } 100 }
101 101
102 bool SyncBackendHostMock::HasUnsyncedItems() const { 102 bool SyncBackendHostMock::HasUnsyncedItems() const {
103 return false; 103 return false;
104 } 104 }
105 105
106 bool SyncBackendHostMock::IsNigoriEnabled() const { 106 bool SyncBackendHostMock::IsNigoriEnabled() const {
107 return true; 107 return true;
108 } 108 }
109 109
110 syncer::PassphraseType SyncBackendHostMock::GetPassphraseType() const { 110 syncer::PassphraseType SyncBackendHostMock::GetPassphraseType() const {
111 return syncer::IMPLICIT_PASSPHRASE; 111 return syncer::IMPLICIT_PASSPHRASE;
112 } 112 }
113 113
114 base::Time SyncBackendHostMock::GetExplicitPassphraseTime() const { 114 base::Time SyncBackendHostMock::GetExplicitPassphraseTime() const {
115 return base::Time(); 115 return base::Time();
116 } 116 }
117 117
(...skipping 29 matching lines...) Expand all
147 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 147 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
148 fail_initial_download_ = should_fail; 148 fail_initial_download_ = should_fail;
149 } 149 }
150 150
151 void SyncBackendHostMock::ClearServerData( 151 void SyncBackendHostMock::ClearServerData(
152 const syncer::SyncManager::ClearServerDataCallback& callback) { 152 const syncer::SyncManager::ClearServerDataCallback& callback) {
153 callback.Run(); 153 callback.Run();
154 } 154 }
155 155
156 } // namespace browser_sync 156 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_mock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698