| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/browser_sync/profile_sync_test_util.h" | 5 #include "components/browser_sync/profile_sync_test_util.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/bookmarks/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
| 11 #include "components/history/core/browser/history_model_worker.h" | 11 #include "components/history/core/browser/history_model_worker.h" |
| 12 #include "components/history/core/browser/history_service.h" | 12 #include "components/history/core/browser/history_service.h" |
| 13 #include "components/pref_registry/pref_registry_syncable.h" | 13 #include "components/pref_registry/pref_registry_syncable.h" |
| 14 #include "components/signin/core/browser/signin_manager_base.h" | 14 #include "components/signin/core/browser/signin_manager_base.h" |
| 15 #include "components/sync/base/sync_prefs.h" | 15 #include "components/sync/base/sync_prefs.h" |
| 16 #include "components/sync/driver/glue/browser_thread_model_worker.h" | |
| 17 #include "components/sync/driver/glue/ui_model_worker.h" | |
| 18 #include "components/sync/driver/signin_manager_wrapper.h" | 16 #include "components/sync/driver/signin_manager_wrapper.h" |
| 17 #include "components/sync/engine/browser_thread_model_worker.h" |
| 19 #include "components/sync/engine/passive_model_worker.h" | 18 #include "components/sync/engine/passive_model_worker.h" |
| 19 #include "components/sync/engine/ui_model_worker.h" |
| 20 #include "net/url_request/url_request_test_util.h" | 20 #include "net/url_request/url_request_test_util.h" |
| 21 | 21 |
| 22 namespace browser_sync { | 22 namespace browser_sync { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 class BundleSyncClient : public syncer::FakeSyncClient { | 26 class BundleSyncClient : public syncer::FakeSyncClient { |
| 27 public: | 27 public: |
| 28 BundleSyncClient(syncer::SyncApiComponentFactory* factory, | 28 BundleSyncClient(syncer::SyncApiComponentFactory* factory, |
| 29 PrefService* pref_service, | 29 PrefService* pref_service, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 init_params.base_directory = base::FilePath(FILE_PATH_LITERAL("dummyPath")); | 259 init_params.base_directory = base::FilePath(FILE_PATH_LITERAL("dummyPath")); |
| 260 init_params.url_request_context = url_request_context(); | 260 init_params.url_request_context = url_request_context(); |
| 261 init_params.debug_identifier = "dummyDebugName"; | 261 init_params.debug_identifier = "dummyDebugName"; |
| 262 init_params.channel = version_info::Channel::UNKNOWN; | 262 init_params.channel = version_info::Channel::UNKNOWN; |
| 263 init_params.blocking_pool = worker_pool_owner_.pool().get(); | 263 init_params.blocking_pool = worker_pool_owner_.pool().get(); |
| 264 | 264 |
| 265 return init_params; | 265 return init_params; |
| 266 } | 266 } |
| 267 | 267 |
| 268 } // namespace browser_sync | 268 } // namespace browser_sync |
| OLD | NEW |