chromium/chrome/browser/ash/policy/reporting/metrics_reporting/audio/BUILD.gn

# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

static_library("audio") {
  sources = [
    "audio_events_observer.cc",
    "audio_events_observer.h",
  ]

  deps = [
    "//chromeos/ash/services/cros_healthd/public/cpp",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//components/reporting/proto:metric_data_proto",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "audio_events_observer_unittest.cc" ]

  deps = [
    "//base/test:test_support",
    "//chrome/browser/ash/policy/reporting/metrics_reporting/audio",
    "//chromeos/ash/components/mojo_service_manager:test_support",
    "//chromeos/ash/services/cros_healthd/public/cpp:fakes",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//components/reporting/util:test_callbacks_support",
    "//testing/gtest",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [ "audio_events_observer_browsertest.cc" ]

  deps = [
    "//chrome/browser",
    "//chrome/browser/ash/login/test:test_support",
    "//chrome/browser/ash/policy/affiliation:test_support",
    "//chrome/browser/ash/policy/core:test_support",
    "//chrome/browser/ash/settings",
    "//chrome/browser/ash/settings:test_support",
    "//chromeos/ash/components/settings",
    "//chromeos/ash/services/cros_healthd/public/cpp:fakes",
    "//chromeos/dbus/missive:test_support",
    "//components/reporting/proto:metric_data_proto",
    "//components/reporting/proto:record_constants",
    "//components/reporting/proto:record_proto",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}