Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.h

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Improve/add comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 // values; it is not intended to be used in tests that depend on SyncBackendHost 22 // values; it is not intended to be used in tests that depend on SyncBackendHost
23 // behavior. 23 // behavior.
24 class SyncBackendHostMock : public SyncBackendHost { 24 class SyncBackendHostMock : public SyncBackendHost {
25 public: 25 public:
26 SyncBackendHostMock(); 26 SyncBackendHostMock();
27 ~SyncBackendHostMock() override; 27 ~SyncBackendHostMock() override;
28 28
29 void Initialize( 29 void Initialize(
30 SyncFrontend* frontend, 30 SyncFrontend* frontend,
31 base::Thread* sync_thread, 31 base::Thread* sync_thread,
32 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
33 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
34 const WeakHandle<JsEventHandler>& event_handler, 32 const WeakHandle<JsEventHandler>& event_handler,
35 const GURL& service_url, 33 const GURL& service_url,
36 const std::string& sync_user_agent, 34 const std::string& sync_user_agent,
37 const SyncCredentials& credentials, 35 const SyncCredentials& credentials,
38 bool delete_sync_data_folder, 36 bool delete_sync_data_folder,
39 bool enable_local_sync_backend, 37 bool enable_local_sync_backend,
40 const base::FilePath& local_sync_backend_folder, 38 const base::FilePath& local_sync_backend_folder,
41 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 39 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
42 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 40 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
43 const base::Closure& report_unrecoverable_error_function, 41 const base::Closure& report_unrecoverable_error_function,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 112
115 void set_fail_initial_download(bool should_fail); 113 void set_fail_initial_download(bool should_fail);
116 114
117 private: 115 private:
118 bool fail_initial_download_; 116 bool fail_initial_download_;
119 }; 117 };
120 118
121 } // namespace syncer 119 } // namespace syncer
122 120
123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 121 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698