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 "chrome/browser/search_engines/template_url_service_test_util.h" | 5 #include "chrome/browser/search_engines/template_url_service_test_util.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/history/history_service_factory.h" | 10 #include "chrome/browser/history/history_service_factory.h" |
11 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" | 11 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" |
12 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
13 #include "components/search_engines/default_search_pref_test_util.h" | 13 #include "components/search_engines/default_search_pref_test_util.h" |
14 #include "components/search_engines/keyword_table.h" | 14 #include "components/search_engines/keyword_table.h" |
15 #include "components/search_engines/keyword_web_data_service.h" | 15 #include "components/search_engines/keyword_web_data_service.h" |
16 #include "components/search_engines/template_url_service.h" | 16 #include "components/search_engines/template_url_service.h" |
17 #include "components/search_engines/testing_search_terms_data.h" | 17 #include "components/search_engines/testing_search_terms_data.h" |
18 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 18 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
19 #include "components/webdata/common/web_database_service.h" | 19 #include "components/webdata/common/web_database_service.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 DefaultSearchPrefTestUtil::SetManagedPref( | 153 DefaultSearchPrefTestUtil::SetManagedPref( |
154 profile()->GetTestingPrefService(), | 154 profile()->GetTestingPrefService(), |
155 enabled, name, keyword, search_url, suggest_url, icon_url, encodings, | 155 enabled, name, keyword, search_url, suggest_url, icon_url, encodings, |
156 alternate_url, search_terms_replacement_key); | 156 alternate_url, search_terms_replacement_key); |
157 } | 157 } |
158 | 158 |
159 void TemplateURLServiceTestUtil::RemoveManagedDefaultSearchPreferences() { | 159 void TemplateURLServiceTestUtil::RemoveManagedDefaultSearchPreferences() { |
160 DefaultSearchPrefTestUtil::RemoveManagedPref( | 160 DefaultSearchPrefTestUtil::RemoveManagedPref( |
161 profile()->GetTestingPrefService()); | 161 profile()->GetTestingPrefService()); |
162 } | 162 } |
OLD | NEW |