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 18 matching lines...) Expand all Loading... |
29 sync_driver::SyncFrontend* frontend, | 29 sync_driver::SyncFrontend* frontend, |
30 scoped_ptr<base::Thread> sync_thread, | 30 scoped_ptr<base::Thread> sync_thread, |
31 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 31 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
32 const GURL& service_url, | 32 const GURL& service_url, |
33 const syncer::SyncCredentials& credentials, | 33 const syncer::SyncCredentials& credentials, |
34 bool delete_sync_data_folder, | 34 bool delete_sync_data_folder, |
35 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 35 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
36 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, | 36 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, |
37 syncer::ReportUnrecoverableErrorFunction | 37 syncer::ReportUnrecoverableErrorFunction |
38 report_unrecoverable_error_function, | 38 report_unrecoverable_error_function, |
39 syncer::NetworkResources* network_resources) OVERRIDE; | 39 syncer::NetworkResources* network_resources) override; |
40 | 40 |
41 virtual void UpdateCredentials( | 41 virtual void UpdateCredentials( |
42 const syncer::SyncCredentials& credentials) OVERRIDE; | 42 const syncer::SyncCredentials& credentials) override; |
43 | 43 |
44 virtual void StartSyncingWithServer() OVERRIDE; | 44 virtual void StartSyncingWithServer() override; |
45 | 45 |
46 virtual void SetEncryptionPassphrase( | 46 virtual void SetEncryptionPassphrase( |
47 const std::string& passphrase, | 47 const std::string& passphrase, |
48 bool is_explicit) OVERRIDE; | 48 bool is_explicit) override; |
49 | 49 |
50 virtual bool SetDecryptionPassphrase( | 50 virtual bool SetDecryptionPassphrase( |
51 const std::string& passphrase) OVERRIDE; | 51 const std::string& passphrase) override; |
52 | 52 |
53 virtual void StopSyncingForShutdown() OVERRIDE; | 53 virtual void StopSyncingForShutdown() override; |
54 | 54 |
55 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) | 55 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) |
56 OVERRIDE; | 56 override; |
57 | 57 |
58 virtual void UnregisterInvalidationIds() OVERRIDE; | 58 virtual void UnregisterInvalidationIds() override; |
59 | 59 |
60 virtual void ConfigureDataTypes( | 60 virtual void ConfigureDataTypes( |
61 syncer::ConfigureReason reason, | 61 syncer::ConfigureReason reason, |
62 const DataTypeConfigStateMap& config_state_map, | 62 const DataTypeConfigStateMap& config_state_map, |
63 const base::Callback<void(syncer::ModelTypeSet, | 63 const base::Callback<void(syncer::ModelTypeSet, |
64 syncer::ModelTypeSet)>& ready_task, | 64 syncer::ModelTypeSet)>& ready_task, |
65 const base::Callback<void()>& retry_callback) OVERRIDE; | 65 const base::Callback<void()>& retry_callback) override; |
66 | 66 |
67 virtual void EnableEncryptEverything() OVERRIDE; | 67 virtual void EnableEncryptEverything() override; |
68 | 68 |
69 virtual void ActivateDataType( | 69 virtual void ActivateDataType( |
70 syncer::ModelType type, syncer::ModelSafeGroup group, | 70 syncer::ModelType type, syncer::ModelSafeGroup group, |
71 sync_driver::ChangeProcessor* change_processor) OVERRIDE; | 71 sync_driver::ChangeProcessor* change_processor) override; |
72 virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE; | 72 virtual void DeactivateDataType(syncer::ModelType type) override; |
73 | 73 |
74 virtual syncer::UserShare* GetUserShare() const OVERRIDE; | 74 virtual syncer::UserShare* GetUserShare() const override; |
75 | 75 |
76 virtual scoped_ptr<syncer::SyncContextProxy> GetSyncContextProxy() OVERRIDE; | 76 virtual scoped_ptr<syncer::SyncContextProxy> GetSyncContextProxy() override; |
77 | 77 |
78 virtual Status GetDetailedStatus() OVERRIDE; | 78 virtual Status GetDetailedStatus() override; |
79 | 79 |
80 virtual syncer::sessions::SyncSessionSnapshot | 80 virtual syncer::sessions::SyncSessionSnapshot |
81 GetLastSessionSnapshot() const OVERRIDE; | 81 GetLastSessionSnapshot() const override; |
82 | 82 |
83 virtual bool HasUnsyncedItems() const OVERRIDE; | 83 virtual bool HasUnsyncedItems() const override; |
84 | 84 |
85 virtual bool IsNigoriEnabled() const OVERRIDE; | 85 virtual bool IsNigoriEnabled() const override; |
86 | 86 |
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 void FlushDirectory() const OVERRIDE; | 97 virtual void FlushDirectory() const override; |
98 | 98 |
99 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; | 99 virtual void RequestBufferedProtocolEventsAndEnableForwarding() override; |
100 virtual void DisableProtocolEventForwarding() OVERRIDE; | 100 virtual void DisableProtocolEventForwarding() override; |
101 | 101 |
102 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 102 virtual void EnableDirectoryTypeDebugInfoForwarding() override; |
103 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; | 103 virtual void DisableDirectoryTypeDebugInfoForwarding() override; |
104 | 104 |
105 virtual void GetAllNodesForTypes( | 105 virtual void GetAllNodesForTypes( |
106 syncer::ModelTypeSet types, | 106 syncer::ModelTypeSet types, |
107 base::Callback<void(const std::vector<syncer::ModelType>& type, | 107 base::Callback<void(const std::vector<syncer::ModelType>& type, |
108 ScopedVector<base::ListValue>) > callback) OVERRIDE; | 108 ScopedVector<base::ListValue>) > callback) override; |
109 | 109 |
110 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; | 110 virtual base::MessageLoop* GetSyncLoopForTesting() override; |
111 | 111 |
112 void set_fail_initial_download(bool should_fail); | 112 void set_fail_initial_download(bool should_fail); |
113 | 113 |
114 private: | 114 private: |
115 bool fail_initial_download_; | 115 bool fail_initial_download_; |
116 }; | 116 }; |
117 | 117 |
118 } // namespace browser_sync | 118 } // namespace browser_sync |
119 | 119 |
120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ | 120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ |
OLD | NEW |