# Copyright 2023 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. component("manta") { sources = [ "anchovy/anchovy_proto_helper.cc", "anchovy/anchovy_proto_helper.h", "anchovy/anchovy_provider.cc", "anchovy/anchovy_provider.h", "anchovy/anchovy_requests.cc", "anchovy/anchovy_requests.h", "base_provider.cc", "base_provider.h", "features.cc", "features.h", "manta_service.cc", "manta_service.h", "manta_service_callbacks.cc", "manta_service_callbacks.h", "manta_status.h", "provider_params.h", ] defines = [ "IS_MANTA_IMPL" ] deps = [ "proto", "//base", "//components/account_id", "//components/endpoint_fetcher", "//components/keyed_service/core", "//components/signin/public/identity_manager", "//net", ] if (is_chromeos) { sources += [ "mahi_provider.cc", "mahi_provider.h", "orca_provider.cc", "orca_provider.h", "scanner_provider.cc", "scanner_provider.h", "snapper_provider.cc", "snapper_provider.h", "walrus_provider.cc", "walrus_provider.h", ] deps += [ "//chromeos/components/magic_boost/public/cpp", "//chromeos/constants", ] } } source_set("unit_tests") { testonly = true sources = [ "base_provider_test_helper.cc", "base_provider_test_helper.h", ] if (is_chromeos) { sources += [ "orca_provider_unittest.cc", "scanner_provider_unittest.cc", "snapper_provider_unittest.cc", "walrus_provider_unittest.cc", ] } deps = [ ":manta", "proto", "//base", "//base/test:test_support", "//components/endpoint_fetcher", "//components/signin/public/identity_manager:test_support", "//net/traffic_annotation:test_support", "//services/network:test_support", "//testing/gtest", ] }