BUILD.gn 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 2019 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//third_party/protobuf/proto_library.gni")
  5. assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
  6. component("dlcservice") {
  7. defines = [ "IS_DLCSERVICE_CLIENT_IMPL" ]
  8. public_deps = [
  9. ":dlcservice_proto",
  10. "//chromeos/ash/components/dbus",
  11. "//chromeos/dbus/common",
  12. ]
  13. deps = [
  14. "//base",
  15. "//dbus",
  16. ]
  17. sources = [
  18. "dlcservice_client.cc",
  19. "dlcservice_client.h",
  20. "fake_dlcservice_client.cc",
  21. "fake_dlcservice_client.h",
  22. ]
  23. }
  24. source_set("unit_tests") {
  25. testonly = true
  26. public_deps = [ ":dlcservice" ]
  27. deps = [
  28. ":dlcservice_proto",
  29. "//base/test:test_support",
  30. "//dbus:test_support",
  31. "//testing/gmock",
  32. "//testing/gtest",
  33. ]
  34. sources = [ "dlcservice_client_unittest.cc" ]
  35. }
  36. proto_library("dlcservice_proto") {
  37. sources = [ "//third_party/cros_system_api/dbus/dlcservice/dlcservice.proto" ]
  38. proto_out_dir = "chromeos/dbus/dlcservice"
  39. }