summaryrefslogtreecommitdiff
path: root/chromium/chromeos/dbus/hermes/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chromeos/dbus/hermes/BUILD.gn')
-rw-r--r--chromium/chromeos/dbus/hermes/BUILD.gn72
1 files changed, 72 insertions, 0 deletions
diff --git a/chromium/chromeos/dbus/hermes/BUILD.gn b/chromium/chromeos/dbus/hermes/BUILD.gn
new file mode 100644
index 00000000000..3bfaaf3bc97
--- /dev/null
+++ b/chromium/chromeos/dbus/hermes/BUILD.gn
@@ -0,0 +1,72 @@
+# Copyright 2020 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.
+
+assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
+
+component("hermes") {
+ public_deps = [ ":hermes_clients" ]
+ deps = [ ":hermes_fakes" ]
+}
+
+source_set("hermes_clients") {
+ defines = [ "IS_HERMES_CLIENT_IMPL" ]
+ deps = [
+ "//base",
+ "//chromeos/dbus:common",
+ "//components/device_event_log",
+ "//dbus",
+ ]
+
+ sources = [
+ "hermes_clients.cc",
+ "hermes_clients.h",
+ "hermes_manager_client.cc",
+ "hermes_manager_client.h",
+ "hermes_profile_client.cc",
+ "hermes_profile_client.h",
+ "hermes_response_status.cc",
+ "hermes_response_status.h",
+ ]
+}
+
+source_set("hermes_fakes") {
+ deps = [
+ ":hermes_clients",
+ "//base",
+ "//chromeos/dbus/constants",
+ "//chromeos/dbus/shill",
+ "//dbus",
+ ]
+
+ sources = [
+ "fake_hermes_manager_client.cc",
+ "fake_hermes_manager_client.h",
+ "fake_hermes_profile_client.cc",
+ "fake_hermes_profile_client.h",
+ ]
+
+ allow_circular_includes_from = [ ":hermes_clients" ]
+}
+
+source_set("test_support") {
+ testonly = true
+ public_deps = [ ":hermes" ]
+ deps = [
+ "//base",
+ "//base/test:test_support",
+ "//chromeos/dbus:common",
+ "//dbus:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ sources = [
+ "hermes_client_test_base.cc",
+ "hermes_client_test_base.h",
+ "hermes_manager_client_unittest.cc",
+ "hermes_profile_client_unittest.cc",
+ "hermes_test_utils.cc",
+ "hermes_test_utils.h",
+ ]
+}