OLD | NEW |
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 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; | 87 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; |
88 | 88 |
89 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; | 89 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; |
90 | 90 |
91 virtual bool IsCryptographerReady( | 91 virtual bool IsCryptographerReady( |
92 const syncer::BaseTransaction* trans) const OVERRIDE; | 92 const syncer::BaseTransaction* trans) const OVERRIDE; |
93 | 93 |
94 virtual void GetModelSafeRoutingInfo( | 94 virtual void GetModelSafeRoutingInfo( |
95 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; | 95 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; |
96 | 96 |
97 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE; | |
98 | |
99 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; | 97 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; |
100 virtual void DisableProtocolEventForwarding() OVERRIDE; | 98 virtual void DisableProtocolEventForwarding() OVERRIDE; |
101 | 99 |
102 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 100 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; |
103 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 101 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; |
104 | 102 |
105 virtual void GetAllNodesForTypes( | 103 virtual void GetAllNodesForTypes( |
106 syncer::ModelTypeSet types, | 104 syncer::ModelTypeSet types, |
107 base::Callback<void(const std::vector<syncer::ModelType>& type, | 105 base::Callback<void(const std::vector<syncer::ModelType>& type, |
108 ScopedVector<base::ListValue>) > callback) OVERRIDE; | 106 ScopedVector<base::ListValue>) > callback) OVERRIDE; |
109 | 107 |
110 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; | 108 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; |
111 | 109 |
112 void set_fail_initial_download(bool should_fail); | 110 void set_fail_initial_download(bool should_fail); |
113 | 111 |
114 private: | 112 private: |
115 bool fail_initial_download_; | 113 bool fail_initial_download_; |
116 }; | 114 }; |
117 | 115 |
118 } // namespace browser_sync | 116 } // namespace browser_sync |
119 | 117 |
120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 118 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |