OLD | NEW |
---|---|
(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 #include "components/sync_driver/data_type_manager.h" | |
Nicolas Zea
2015/06/09 21:27:20
is this necessary?
droger
2015/06/10 09:31:56
Removed.
| |
8 | |
9 namespace sync_driver { | |
10 | |
11 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) { | |
12 } | |
13 | |
14 FakeSyncService::~FakeSyncService() { | |
15 } | |
16 | |
17 bool FakeSyncService::HasSyncSetupCompleted() const { | |
18 return false; | |
19 } | |
20 | |
21 bool FakeSyncService::IsSyncActive() const { | |
22 return false; | |
23 } | |
24 | |
25 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { | |
26 return syncer::ModelTypeSet(); | |
27 } | |
28 | |
29 void FakeSyncService::AddObserver(sync_driver::SyncServiceObserver* observer) { | |
30 } | |
31 | |
32 void FakeSyncService::RemoveObserver( | |
33 sync_driver::SyncServiceObserver* observer) { | |
34 } | |
35 | |
36 bool FakeSyncService::HasObserver( | |
37 const sync_driver::SyncServiceObserver* observer) const { | |
38 return false; | |
39 } | |
40 | |
41 bool FakeSyncService::IsSyncEnabledAndLoggedIn() { | |
42 return false; | |
43 } | |
44 | |
45 void FakeSyncService::DisableForUser() { | |
46 } | |
47 | |
48 void FakeSyncService::RequestStop() { | |
49 } | |
50 | |
51 void FakeSyncService::RequestStart() { | |
52 } | |
53 | |
54 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const { | |
55 return syncer::ModelTypeSet(); | |
56 } | |
57 | |
58 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, | |
59 syncer::ModelTypeSet chosen_types) { | |
60 } | |
61 | |
62 void FakeSyncService::SetSyncSetupCompleted() { | |
63 } | |
64 | |
65 bool FakeSyncService::FirstSetupInProgress() const { | |
66 return false; | |
67 } | |
68 | |
69 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) { | |
70 } | |
71 | |
72 bool FakeSyncService::setup_in_progress() const { | |
73 return false; | |
74 } | |
75 | |
76 bool FakeSyncService::ConfigurationDone() const { | |
77 return false; | |
78 } | |
79 | |
80 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const { | |
81 return error_; | |
82 } | |
83 | |
84 bool FakeSyncService::HasUnrecoverableError() const { | |
85 return false; | |
86 } | |
87 | |
88 bool FakeSyncService::backend_initialized() const { | |
89 return false; | |
90 } | |
91 | |
92 bool FakeSyncService::IsPassphraseRequiredForDecryption() const { | |
93 return false; | |
94 } | |
95 | |
96 base::Time FakeSyncService::GetExplicitPassphraseTime() const { | |
97 return base::Time(); | |
98 } | |
99 | |
100 bool FakeSyncService::IsUsingSecondaryPassphrase() const { | |
101 return false; | |
102 } | |
103 | |
104 void FakeSyncService::EnableEncryptEverything() { | |
105 } | |
106 | |
107 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase, | |
108 PassphraseType type) { | |
109 } | |
110 | |
111 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) { | |
112 return false; | |
113 } | |
114 | |
115 bool FakeSyncService::IsPassphraseRequired() const { | |
116 return false; | |
117 } | |
118 | |
119 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { | |
120 return syncer::ModelTypeSet(); | |
121 } | |
122 | |
123 } // namespace sync_driver | |
OLD | NEW |