chromium/components/reduce_accept_language/browser/BUILD.gn

# Copyright 2022 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("browser") {
  sources = [
    "reduce_accept_language_service.cc",
    "reduce_accept_language_service.h",
  ]
  deps = [
    "//base",
    "//components/content_settings/core/browser",
    "//components/content_settings/core/common",
    "//components/language/core/browser",
    "//components/prefs",
    "//content/public/browser",
  ]
}

source_set("in_memory") {
  sources = [
    "in_memory_reduce_accept_language_service.cc",
    "in_memory_reduce_accept_language_service.h",
  ]
  deps = [
    "//base",
    "//content/public/browser",
    "//url",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "reduce_accept_language_service_test_util.cc",
    "reduce_accept_language_service_test_util.h",
  ]
  deps = [
    ":browser",
    "//base/test:test_support",
    "//components/content_settings/core/browser",
    "//components/content_settings/core/common",
    "//components/prefs",
    "//testing/gmock",
    "//testing/gtest",
    "//url:url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "in_memory_reduce_accept_language_service_unittest.cc" ]

  deps = [
    ":in_memory",
    "//base/test:test_support",
    "//testing/gtest",
    "//url:url",
  ]
}