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