# Copyright 2018 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. if (is_android) { import("//build/config/android/rules.gni") } static_library("browser") { sources = [ "contextual_search_context.cc", "contextual_search_context.h", "contextual_search_delegate.h", "contextual_search_delegate_impl.cc", "contextual_search_delegate_impl.h", "contextual_search_field_trial.cc", "contextual_search_field_trial.h", "public.cc", "public.h", "resolved_search_term.cc", "resolved_search_term.h", ] deps = [ "//base", "//components/language_detection/core", "//components/search_engines", "//components/touch_to_search:buildflags", "//components/touch_to_search/core/proto:client_discourse_context_proto", "//components/translate/core/language_detection", "//components/variations", "//components/variations/net", "//content/public/browser", "//net", "//services/network/public/cpp", "//services/network/public/mojom", "//third_party/blink/public/common", "//url", ] } if (is_android) { java_cpp_enum("quick_action_category_enum_javagen") { sources = [ "resolved_search_term.h" ] } } source_set("unit_tests") { testonly = true sources = [ "contextual_search_delegate_impl_unittest.cc", "contextual_search_field_trial_unittest.cc", ] deps = [ ":browser", "//base", "//base/test:test_support", "//components/language_detection/core", "//components/search_engines", "//components/search_engines:test_support", "//components/touch_to_search/core/proto:client_discourse_context_proto", "//components/variations:test_support", "//services/network:test_support", "//services/network/public/cpp", "//services/network/public/mojom:url_loader_base", "//testing/gmock", "//testing/gtest", ] }