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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.cc

Issue 2279713002: Make PassphraseType a "enum class" instead of "enum". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix java Created 4 years, 3 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 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
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
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
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | components/sync/engine/sync_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698