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("//third_party/protobuf/proto_library.gni")
28 "scoped_dbus_error.cc",
29 "scoped_dbus_error.h",
38 defines = [ "DBUS_IMPLEMENTATION" ]
42 "//third_party/protobuf:protobuf_lite",
45 public_configs = [ "//build/config/linux:dbus" ]
48 proto_library("test_proto") {
54 # This target contains mocks that can be used to write unit tests without
55 # issuing actual D-Bus calls.
56 source_set("test_support") {
61 "mock_exported_object.cc",
62 "mock_exported_object.h",
63 "mock_object_manager.cc",
64 "mock_object_manager.h",
65 "mock_object_proxy.cc",
66 "mock_object_proxy.h",
74 configs += [ "//build/config/linux:dbus" ]
77 test("dbus_unittests") {
80 "dbus_statistics_unittest.cc",
81 "end_to_end_async_unittest.cc",
82 "end_to_end_sync_unittest.cc",
83 "message_unittest.cc",
85 "object_manager_unittest.cc",
86 "object_proxy_unittest.cc",
87 "property_unittest.cc",
88 "run_all_unittests.cc",
89 "signal_sender_verification_unittest.cc",
90 "string_util_unittest.cc",
94 "values_util_unittest.cc",
101 "//base/test:test_support",
104 "//third_party/protobuf:protobuf_lite",
107 configs += [ "//build/config/linux:dbus" ]
110 executable("dbus_test_server") {
121 "//base/test:test_support",
124 configs += [ "//build/config/linux:dbus" ]