1 # Copyright 2014 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.
5 import("//testing/test.gni")
6 import("//third_party/protobuf/proto_library.gni")
29 "scoped_dbus_error.cc",
30 "scoped_dbus_error.h",
39 defines = [ "DBUS_IMPLEMENTATION" ]
42 "//third_party/protobuf:protobuf_lite",
48 public_configs = [ "//build/config/linux:dbus" ]
51 proto_library("test_proto") {
57 # This target contains mocks that can be used to write unit tests without
58 # issuing actual D-Bus calls.
59 source_set("test_support") {
64 "mock_exported_object.cc",
65 "mock_exported_object.h",
66 "mock_object_manager.cc",
67 "mock_object_manager.h",
68 "mock_object_proxy.cc",
69 "mock_object_proxy.h",
79 configs += [ "//build/config/linux:dbus" ]
82 test("dbus_unittests") {
85 "dbus_statistics_unittest.cc",
86 "end_to_end_async_unittest.cc",
87 "end_to_end_sync_unittest.cc",
88 "message_unittest.cc",
90 "object_manager_unittest.cc",
91 "object_proxy_unittest.cc",
92 "property_unittest.cc",
93 "run_all_unittests.cc",
94 "signal_sender_verification_unittest.cc",
95 "string_util_unittest.cc",
99 "values_util_unittest.cc",
106 "//base/test:test_support",
109 "//third_party/protobuf:protobuf_lite",
112 configs += [ "//build/config/linux:dbus" ]
115 executable("dbus_test_server") {
126 "//base/test:test_support",
127 "//build/config/sanitizers:deps",
130 configs += [ "//build/config/linux:dbus" ]