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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const syncer::BaseTransaction* trans) const OVERRIDE; | 89 const syncer::BaseTransaction* trans) const OVERRIDE; |
90 | 90 |
91 virtual void GetModelSafeRoutingInfo( | 91 virtual void GetModelSafeRoutingInfo( |
92 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; | 92 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; |
93 | 93 |
94 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE; | 94 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE; |
95 | 95 |
96 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; | 96 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; |
97 virtual void DisableProtocolEventForwarding() OVERRIDE; | 97 virtual void DisableProtocolEventForwarding() OVERRIDE; |
98 | 98 |
| 99 virtual void GetAllNodesForTypes( |
| 100 syncer::ModelTypeSet types, |
| 101 base::Callback<void(const std::vector<syncer::ModelType>& type, |
| 102 ScopedVector<base::ListValue>) > callback) OVERRIDE; |
| 103 |
99 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; | 104 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; |
100 | 105 |
101 void set_fail_initial_download(bool should_fail); | 106 void set_fail_initial_download(bool should_fail); |
102 | 107 |
103 private: | 108 private: |
104 bool fail_initial_download_; | 109 bool fail_initial_download_; |
105 }; | 110 }; |
106 | 111 |
107 } // namespace browser_sync | 112 } // namespace browser_sync |
108 | 113 |
109 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 114 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |