OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "sync/internal_api/public/sync_manager.h" | 10 #include "sync/internal_api/public/sync_manager.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Note: we treat whatever message loop this is called from as the sync | 49 // Note: we treat whatever message loop this is called from as the sync |
50 // loop for purposes of callbacks. | 50 // loop for purposes of callbacks. |
51 virtual bool Init( | 51 virtual bool Init( |
52 const FilePath& database_location, | 52 const FilePath& database_location, |
53 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 53 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
54 const std::string& sync_server_and_path, | 54 const std::string& sync_server_and_path, |
55 int sync_server_port, | 55 int sync_server_port, |
56 bool use_ssl, | 56 bool use_ssl, |
57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
58 scoped_ptr<HttpPostProviderFactory> post_factory, | 58 scoped_ptr<HttpPostProviderFactory> post_factory, |
59 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, | |
60 const std::vector<syncer::ModelSafeWorker*>& workers, | 59 const std::vector<syncer::ModelSafeWorker*>& workers, |
61 syncer::ExtensionsActivityMonitor* | 60 syncer::ExtensionsActivityMonitor* |
62 extensions_activity_monitor, | 61 extensions_activity_monitor, |
63 ChangeDelegate* change_delegate, | 62 ChangeDelegate* change_delegate, |
64 const SyncCredentials& credentials, | 63 const SyncCredentials& credentials, |
65 scoped_ptr<syncer::SyncNotifier> sync_notifier, | 64 scoped_ptr<syncer::SyncNotifier> sync_notifier, |
66 const std::string& restored_key_for_bootstrapping, | 65 const std::string& restored_key_for_bootstrapping, |
67 TestingMode testing_mode, | 66 TestingMode testing_mode, |
68 syncer::Encryptor* encryptor, | 67 syncer::Encryptor* encryptor, |
69 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, | 68 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 119 |
121 // For StopSyncingForShutdown's callback. | 120 // For StopSyncingForShutdown's callback. |
122 MessageLoop* sync_loop_; | 121 MessageLoop* sync_loop_; |
123 | 122 |
124 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 123 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
125 }; | 124 }; |
126 | 125 |
127 } // namespace syncer | 126 } // namespace syncer |
128 | 127 |
129 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 128 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |