1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
# Copyright 2025 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("search_engines") {
public = [
"edit_search_engine_controller.h",
"keyword_editor_controller.h",
"search_engine_tab_helper.h",
"template_url_table_model.h",
]
public_deps = [
"//base",
"//chrome/browser/ui/find_bar",
"//chrome/common:mojo_bindings",
"//components/favicon/core",
"//components/find_in_page",
"//components/search_engines",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//ui/base",
"//ui/gfx",
]
sources = [
"edit_search_engine_controller.cc",
"keyword_editor_controller.cc",
"search_engine_tab_helper.cc",
"template_url_table_model.cc",
]
deps = [
"//base:i18n",
"//chrome/app:generated_resources",
"//chrome/browser/autocomplete:aim_eligibility_service",
"//chrome/browser/favicon",
"//chrome/browser/profiles:profile",
"//chrome/browser/search_engines",
"//chrome/common",
"//components/omnibox/browser",
"//components/omnibox/common",
"//components/prefs",
"//components/search_engines",
"//components/url_formatter",
"//services/network/public/mojom",
"//third_party/icu:icui18n",
"//third_party/icu:icuuc_public",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"keyword_editor_controller_unittest.cc",
"template_url_table_model_unittest.cc",
]
deps = [
":search_engines",
"//chrome/browser/profiles:profile",
"//chrome/test:test_support",
"//components/omnibox/common",
"//components/sync_preferences:test_support",
"//content/test:test_support",
]
# TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
# enable the diagnostic by removing this line.
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}
if (!is_android) {
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "search_engine_tab_helper_browsertest.cc" ]
deps = [
":search_engines",
"//chrome/browser/profiles:profile",
"//chrome/browser/search_engines",
"//chrome/browser/ui/tabs:tab_enums",
"//chrome/browser/ui/tabs:tab_strip",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//content/test:test_support",
"//net:test_support",
]
# TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
# enable the diagnostic by removing this line.
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}
}
|