| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 void GetAllNodesForTypes( | 102 void GetAllNodesForTypes( |
| 103 syncer::ModelTypeSet types, | 103 syncer::ModelTypeSet types, |
| 104 base::Callback<void(const std::vector<syncer::ModelType>& type, | 104 base::Callback<void(const std::vector<syncer::ModelType>& type, |
| 105 ScopedVector<base::ListValue>)> callback) override; | 105 ScopedVector<base::ListValue>)> callback) override; |
| 106 | 106 |
| 107 base::MessageLoop* GetSyncLoopForTesting() override; | 107 base::MessageLoop* GetSyncLoopForTesting() override; |
| 108 | 108 |
| 109 void RefreshTypesForTest(syncer::ModelTypeSet types) override; | 109 void RefreshTypesForTest(syncer::ModelTypeSet types) override; |
| 110 | 110 |
| 111 void ClearServerData( |
| 112 const syncer::SyncManager::ClearServerDataCallback& callback) override; |
| 113 |
| 111 void set_fail_initial_download(bool should_fail); | 114 void set_fail_initial_download(bool should_fail); |
| 112 | 115 |
| 113 private: | 116 private: |
| 114 bool fail_initial_download_; | 117 bool fail_initial_download_; |
| 115 }; | 118 }; |
| 116 | 119 |
| 117 } // namespace browser_sync | 120 } // namespace browser_sync |
| 118 | 121 |
| 119 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 122 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |