| 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 6 #define COMPONENTS_SYNC_DRIVER_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" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/sync/glue/sync_backend_host.h" | 12 #include "components/sync_driver/glue/sync_backend_host.h" |
| 13 #include "sync/internal_api/public/util/weak_handle.h" | 13 #include "sync/internal_api/public/util/weak_handle.h" |
| 14 | 14 |
| 15 namespace browser_sync { | 15 namespace browser_sync { |
| 16 | 16 |
| 17 // A mock of the SyncBackendHost. | 17 // A mock of the SyncBackendHost. |
| 18 // | 18 // |
| 19 // This class implements the bare minimum required for the ProfileSyncService to | 19 // This class implements the bare minimum required for the ProfileSyncService to |
| 20 // get through initialization. It often returns NULL pointers or nonesense | 20 // get through initialization. It often returns NULL pointers or nonesense |
| 21 // values; it is not intended to be used in tests that depend on SyncBackendHost | 21 // values; it is not intended to be used in tests that depend on SyncBackendHost |
| 22 // behavior. | 22 // behavior. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const syncer::SyncManager::ClearServerDataCallback& callback) override; | 121 const syncer::SyncManager::ClearServerDataCallback& callback) override; |
| 122 | 122 |
| 123 void set_fail_initial_download(bool should_fail); | 123 void set_fail_initial_download(bool should_fail); |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 bool fail_initial_download_; | 126 bool fail_initial_download_; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace browser_sync | 129 } // namespace browser_sync |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 131 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |