chromium/components/media_device_salt/BUILD.gn

# 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.

static_library("media_device_salt") {
  sources = [
    "media_device_id_salt.cc",
    "media_device_id_salt.h",
    "media_device_salt_database.cc",
    "media_device_salt_database.h",
    "media_device_salt_service.cc",
    "media_device_salt_service.h",
  ]

  deps = [
    "//components/keyed_service/content",
    "//components/pref_registry:pref_registry",
    "//components/prefs:prefs",
    "//components/user_prefs:user_prefs",
    "//content/public/browser",
    "//sql",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "media_device_salt_database_unittest.cc",
    "media_device_salt_service_unittest.cc",
  ]

  deps = [
    "//components/keyed_service/content",
    "//components/media_device_salt",
    "//components/prefs:test_support",
    "//components/sync_preferences:test_support",
    "//components/user_prefs",
    "//content/test:test_support",
    "//sql:sql",
    "//testing/gtest/",
  ]
}