1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Copyright 2019 The Chromium Authors. All rights reserved.
- # Use of this source code is governed by a BSD-style license that can be
- # found in the LICENSE file.
- import("//third_party/protobuf/proto_library.gni")
- assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
- 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/dbus/dlcservice"
- }
|