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

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

Issue 1158223003: [iOS] Add FakeSyncService and factory for testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 6 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
« no previous file with comments | « components/sync_driver/fake_sync_service.h ('k') | ios/ios_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/sync_driver/fake_sync_service.h"
6
7 namespace sync_driver {
8
9 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
10 }
11
12 FakeSyncService::~FakeSyncService() {
13 }
14
15 bool FakeSyncService::HasSyncSetupCompleted() const {
16 return false;
17 }
18
19 bool FakeSyncService::IsSyncActive() const {
20 return false;
21 }
22
23 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
24 return syncer::ModelTypeSet();
25 }
26
27 void FakeSyncService::AddObserver(sync_driver::SyncServiceObserver* observer) {
28 }
29
30 void FakeSyncService::RemoveObserver(
31 sync_driver::SyncServiceObserver* observer) {
32 }
33
34 bool FakeSyncService::HasObserver(
35 const sync_driver::SyncServiceObserver* observer) const {
36 return false;
37 }
38
39 bool FakeSyncService::IsSyncEnabledAndLoggedIn() {
40 return false;
41 }
42
43 void FakeSyncService::DisableForUser() {
44 }
45
46 void FakeSyncService::RequestStop() {
47 }
48
49 void FakeSyncService::RequestStart() {
50 }
51
52 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const {
53 return syncer::ModelTypeSet();
54 }
55
56 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything,
57 syncer::ModelTypeSet chosen_types) {
58 }
59
60 void FakeSyncService::SetSyncSetupCompleted() {
61 }
62
63 bool FakeSyncService::FirstSetupInProgress() const {
64 return false;
65 }
66
67 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) {
68 }
69
70 bool FakeSyncService::setup_in_progress() const {
71 return false;
72 }
73
74 bool FakeSyncService::ConfigurationDone() const {
75 return false;
76 }
77
78 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const {
79 return error_;
80 }
81
82 bool FakeSyncService::HasUnrecoverableError() const {
83 return false;
84 }
85
86 bool FakeSyncService::backend_initialized() const {
87 return false;
88 }
89
90 bool FakeSyncService::IsPassphraseRequiredForDecryption() const {
91 return false;
92 }
93
94 base::Time FakeSyncService::GetExplicitPassphraseTime() const {
95 return base::Time();
96 }
97
98 bool FakeSyncService::IsUsingSecondaryPassphrase() const {
99 return false;
100 }
101
102 void FakeSyncService::EnableEncryptEverything() {
103 }
104
105 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase,
106 PassphraseType type) {
107 }
108
109 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) {
110 return false;
111 }
112
113 bool FakeSyncService::IsPassphraseRequired() const {
114 return false;
115 }
116
117 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
118 return syncer::ModelTypeSet();
119 }
120
121 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/fake_sync_service.h ('k') | ios/ios_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698