| # 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. |
| |
| # Public interface target - contains the public types and abstract service API. |
| source_set("public") { |
| sources = [ |
| "contextual_search_context_controller.h", |
| "contextual_search_metrics_recorder.h", |
| "contextual_search_service.h", |
| "contextual_search_types.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/keyed_service/core", |
| "//components/lens", |
| "//components/lens/proto/server:proto", |
| "//components/search_engines", |
| "//components/signin/public/identity_manager", |
| "//components/variations", |
| "//components/version_info:channel", |
| "//services/network/public/cpp", |
| "//url", |
| ] |
| } |
| |
| # Public implementation target - contains the service implementation. |
| source_set("impl") { |
| sources = [ |
| "contextual_search_metrics_recorder.cc", |
| "contextual_search_service.cc", |
| ] |
| |
| deps = [ |
| ":public", |
| "//components/contextual_search/internal", |
| "//components/lens", |
| "//components/lens/proto/server:proto", |
| "//components/search_engines", |
| "//components/signin/public/identity_manager", |
| "//components/variations", |
| "//components/version_info:channel", |
| "//services/network/public/cpp", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "contextual_search_metrics_recorder_unittest.cc", |
| "contextual_search_service_unittest.cc", |
| ] |
| deps = [ |
| ":impl", |
| ":public", |
| "//base/test:test_support", |
| "//components/lens", |
| "//components/search_engines:test_support", |
| "//components/signin/public/identity_manager:test_support", |
| "//components/variations", |
| "//services/network:test_support", |
| "//services/network/public/cpp", |
| "//testing/gtest", |
| ] |
| } |