| 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 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" | 5 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "components/bookmarks/browser/bookmark_model.h" | 18 #include "components/bookmarks/browser/bookmark_model.h" |
| 19 #include "components/bookmarks/common/bookmark_constants.h" | 19 #include "components/bookmarks/common/bookmark_constants.h" |
| 20 #include "components/history/core/browser/history_constants.h" | 20 #include "components/history/core/browser/history_constants.h" |
| 21 #include "components/history/core/browser/history_database_params.h" | 21 #include "components/history/core/browser/history_database_params.h" |
| 22 #include "components/history/core/browser/history_service.h" | 22 #include "components/history/core/browser/history_service.h" |
| 23 #include "components/history/core/browser/top_sites.h" | 23 #include "components/history/core/browser/top_sites.h" |
| 24 #include "components/history/core/browser/visit_delegate.h" | 24 #include "components/history/core/browser/visit_delegate.h" |
| 25 #include "components/history/ios/browser/history_database_helper.h" | 25 #include "components/history/ios/browser/history_database_helper.h" |
| 26 #include "components/keyed_service/core/service_access_type.h" | 26 #include "components/keyed_service/core/service_access_type.h" |
| 27 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 27 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 pref_service_ = std::move(prefs); | 416 pref_service_ = std::move(prefs); |
| 417 } | 417 } |
| 418 | 418 |
| 419 std::unique_ptr<TestChromeBrowserState> | 419 std::unique_ptr<TestChromeBrowserState> |
| 420 TestChromeBrowserState::Builder::Build() { | 420 TestChromeBrowserState::Builder::Build() { |
| 421 DCHECK(!build_called_); | 421 DCHECK(!build_called_); |
| 422 return base::WrapUnique(new TestChromeBrowserState( | 422 return base::WrapUnique(new TestChromeBrowserState( |
| 423 state_path_, std::move(pref_service_), testing_factories_, | 423 state_path_, std::move(pref_service_), testing_factories_, |
| 424 refcounted_testing_factories_)); | 424 refcounted_testing_factories_)); |
| 425 } | 425 } |
| OLD | NEW |