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 #include "sync/internal_api/public/test/fake_sync_manager.h" | 5 #include "sync/internal_api/public/test/fake_sync_manager.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 run_loop.Run(); | 73 run_loop.Run(); |
74 } | 74 } |
75 | 75 |
76 void FakeSyncManager::Init( | 76 void FakeSyncManager::Init( |
77 const base::FilePath& database_location, | 77 const base::FilePath& database_location, |
78 const WeakHandle<JsEventHandler>& event_handler, | 78 const WeakHandle<JsEventHandler>& event_handler, |
79 const std::string& sync_server_and_path, | 79 const std::string& sync_server_and_path, |
80 int sync_server_port, | 80 int sync_server_port, |
81 bool use_ssl, | 81 bool use_ssl, |
82 scoped_ptr<HttpPostProviderFactory> post_factory, | 82 scoped_ptr<HttpPostProviderFactory> post_factory, |
83 const std::vector<ModelSafeWorker*>& workers, | 83 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
84 ExtensionsActivity* extensions_activity, | 84 ExtensionsActivity* extensions_activity, |
85 ChangeDelegate* change_delegate, | 85 ChangeDelegate* change_delegate, |
86 const SyncCredentials& credentials, | 86 const SyncCredentials& credentials, |
87 const std::string& invalidator_client_id, | 87 const std::string& invalidator_client_id, |
88 const std::string& restored_key_for_bootstrapping, | 88 const std::string& restored_key_for_bootstrapping, |
89 const std::string& restored_keystore_key_for_bootstrapping, | 89 const std::string& restored_keystore_key_for_bootstrapping, |
90 InternalComponentsFactory* internal_components_factory, | 90 InternalComponentsFactory* internal_components_factory, |
91 Encryptor* encryptor, | 91 Encryptor* encryptor, |
92 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 92 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
93 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | 93 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { | 247 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { |
248 return last_refresh_request_types_; | 248 return last_refresh_request_types_; |
249 } | 249 } |
250 | 250 |
251 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { | 251 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { |
252 // Do nothing. | 252 // Do nothing. |
253 } | 253 } |
254 | 254 |
255 } // namespace syncer | 255 } // namespace syncer |
OLD | NEW |