| # 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/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" ] |
| deps = [ |
| ":search_engines", |
| "//chrome/browser/profiles:profile", |
| "//chrome/test:test_support", |
| "//components/omnibox/common", |
| "//components/sync_preferences:test_support", |
| "//content/test:test_support", |
| ] |
| } |
| |
| 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", |
| ] |
| } |
| } |