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

Side by Side Diff: components/sync_driver/fake_sync_service.cc

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 5 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 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 "sync/internal_api/public/base_transaction.h" 7 #include "sync/internal_api/public/base_transaction.h"
8 #include "sync/internal_api/public/user_share.h" 8 #include "sync/internal_api/public/user_share.h"
9 9
10 namespace sync_driver { 10 namespace sync_driver {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return base::Time(); 105 return base::Time();
106 } 106 }
107 107
108 bool FakeSyncService::IsUsingSecondaryPassphrase() const { 108 bool FakeSyncService::IsUsingSecondaryPassphrase() const {
109 return false; 109 return false;
110 } 110 }
111 111
112 void FakeSyncService::EnableEncryptEverything() { 112 void FakeSyncService::EnableEncryptEverything() {
113 } 113 }
114 114
115 bool FakeSyncService::EncryptEverythingEnabled() const {
116 return false;
117 }
118
115 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase, 119 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase,
116 PassphraseType type) { 120 PassphraseType type) {
117 } 121 }
118 122
119 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) { 123 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) {
120 return false; 124 return false;
121 } 125 }
122 126
123 bool FakeSyncService::IsCryptographerReady( 127 bool FakeSyncService::IsCryptographerReady(
124 const syncer::BaseTransaction* trans) const { 128 const syncer::BaseTransaction* trans) const {
125 return false; 129 return false;
126 } 130 }
127 131
128 syncer::UserShare* FakeSyncService::GetUserShare() const { 132 syncer::UserShare* FakeSyncService::GetUserShare() const {
129 return new syncer::UserShare(); 133 return new syncer::UserShare();
130 } 134 }
131 135
136 LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const {
137 return nullptr;
138 }
139
140 void FakeSyncService::RegisterDataTypeController(
141 sync_driver::DataTypeController* data_type_controller) {
142 }
143
144 void FakeSyncService::ReenableDatatype(syncer::ModelType type) {}
145
146 void FakeSyncService::DeactivateDataType(syncer::ModelType type) {}
147
132 bool FakeSyncService::IsPassphraseRequired() const { 148 bool FakeSyncService::IsPassphraseRequired() const {
133 return false; 149 return false;
134 } 150 }
135 151
136 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { 152 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
137 return syncer::ModelTypeSet(); 153 return syncer::ModelTypeSet();
138 } 154 }
139 155
140 } // namespace sync_driver 156 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698