chromium/chromeos/ash/components/dbus/cec_service/BUILD.gn

# Copyright 2021 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, "Non-Chrome-OS builds must not depend on //chromeos")

component("cec_service") {
  output_name = "ash_cec_service"
  defines = [ "IS_ASH_DBUS_CEC_SERVICE_IMPL" ]
  deps = [
    "//base",
    "//chromeos/dbus/common",
    "//dbus",
  ]
  sources = [
    "cec_service_client.cc",
    "cec_service_client.h",
    "fake_cec_service_client.cc",
    "fake_cec_service_client.h",
  ]
}

source_set("unit_tests") {
  testonly = true
  deps = [
    "//base",
    "//base/test:test_support",
    "//chromeos/dbus/common",
    "//dbus",
    "//dbus:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
  public_deps = [ ":cec_service" ]
  sources = [ "cec_service_client_unittest.cc" ]
}