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" ]
43 "//third_party/protobuf:protobuf_lite",
46 public_configs = [ "//build/config/linux:dbus" ]
49 proto_library("test_proto") {
55 # This target contains mocks that can be used to write unit tests without
56 # issuing actual D-Bus calls.
57 source_set("test_support") {
62 "mock_exported_object.cc",
63 "mock_exported_object.h",
64 "mock_object_manager.cc",
65 "mock_object_manager.h",
66 "mock_object_proxy.cc",
67 "mock_object_proxy.h",
77 configs += [ "//build/config/linux:dbus" ]
80 test("dbus_unittests") {
83 "dbus_statistics_unittest.cc",
84 "end_to_end_async_unittest.cc",
85 "end_to_end_sync_unittest.cc",
86 "message_unittest.cc",
88 "object_manager_unittest.cc",
89 "object_proxy_unittest.cc",
90 "property_unittest.cc",
91 "run_all_unittests.cc",
92 "signal_sender_verification_unittest.cc",
93 "string_util_unittest.cc",
97 "values_util_unittest.cc",
104 "//base/test:test_support",
107 "//third_party/protobuf:protobuf_lite",
110 configs += [ "//build/config/linux:dbus" ]
113 executable("dbus_test_server") {
124 "//base/test:test_support",
127 configs += [ "//build/config/linux:dbus" ]