# Copyright 2019 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")
import("//third_party/protobuf/proto_library.gni")
assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //chromeos/ash")
component("dlcservice") {
defines = [ "IS_DLCSERVICE_CLIENT_IMPL" ]
public_deps = [
":dlcservice_proto",
"//chromeos/ash/components/dbus",
"//chromeos/dbus/common",
]
deps = [
"//base",
"//dbus",
]
sources = [
"dlcservice_client.cc",
"dlcservice_client.h",
"fake_dlcservice_client.cc",
"fake_dlcservice_client.h",
]
}
source_set("unit_tests") {
testonly = true
public_deps = [ ":dlcservice" ]
deps = [
":dlcservice_proto",
"//base/test:test_support",
"//dbus:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [ "dlcservice_client_unittest.cc" ]
}
proto_library("dlcservice_proto") {
sources = [ "//third_party/cros_system_api/dbus/dlcservice/dlcservice.proto" ]
proto_out_dir = "chromeos/ash/components/dbus/dlcservice"
}