| 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 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; | 97 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE; |
| 98 | 98 |
| 99 virtual void FlushDirectory() const OVERRIDE; |
| 100 |
| 99 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; | 101 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; |
| 100 virtual void DisableProtocolEventForwarding() OVERRIDE; | 102 virtual void DisableProtocolEventForwarding() OVERRIDE; |
| 101 | 103 |
| 102 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 104 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; |
| 103 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 105 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; |
| 104 | 106 |
| 105 virtual void GetAllNodesForTypes( | 107 virtual void GetAllNodesForTypes( |
| 106 syncer::ModelTypeSet types, | 108 syncer::ModelTypeSet types, |
| 107 base::Callback<void(const std::vector<syncer::ModelType>& type, | 109 base::Callback<void(const std::vector<syncer::ModelType>& type, |
| 108 ScopedVector<base::ListValue>) > callback) OVERRIDE; | 110 ScopedVector<base::ListValue>) > callback) OVERRIDE; |
| 109 | 111 |
| 110 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; | 112 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; |
| 111 | 113 |
| 112 void set_fail_initial_download(bool should_fail); | 114 void set_fail_initial_download(bool should_fail); |
| 113 | 115 |
| 114 private: | 116 private: |
| 115 bool fail_initial_download_; | 117 bool fail_initial_download_; |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace browser_sync | 120 } // namespace browser_sync |
| 119 | 121 |
| 120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 122 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
| OLD | NEW |