OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 component("dbus") { | 7 component("dbus") { |
8 sources = [ | 8 sources = [ |
9 "bus.cc", | 9 "bus.cc", |
10 "bus.h", | 10 "bus.h", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 ] | 48 ] |
49 } | 49 } |
50 | 50 |
51 proto_library("test_proto") { | 51 proto_library("test_proto") { |
52 sources = [ "test_proto.proto" ] | 52 sources = [ "test_proto.proto" ] |
53 } | 53 } |
54 | 54 |
55 # This target contains mocks that can be used to write unit tests without | 55 # This target contains mocks that can be used to write unit tests without |
56 # issuing actual D-Bus calls. | 56 # issuing actual D-Bus calls. |
57 source_set("test_support") { | 57 source_set("test_support") { |
| 58 testonly = true |
58 sources = [ | 59 sources = [ |
59 "mock_bus.cc", | 60 "mock_bus.cc", |
60 "mock_bus.h", | 61 "mock_bus.h", |
61 "mock_exported_object.cc", | 62 "mock_exported_object.cc", |
62 "mock_exported_object.h", | 63 "mock_exported_object.h", |
63 "mock_object_manager.cc", | 64 "mock_object_manager.cc", |
64 "mock_object_manager.h", | 65 "mock_object_manager.h", |
65 "mock_object_proxy.cc", | 66 "mock_object_proxy.cc", |
66 "mock_object_proxy.h", | 67 "mock_object_proxy.h", |
67 ] | 68 ] |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 "//testing/gtest", | 105 "//testing/gtest", |
105 "//third_party/protobuf:protobuf_lite", | 106 "//third_party/protobuf:protobuf_lite", |
106 ] | 107 ] |
107 | 108 |
108 configs += [ | 109 configs += [ |
109 "//build/config/linux:dbus", | 110 "//build/config/linux:dbus", |
110 ] | 111 ] |
111 } | 112 } |
112 | 113 |
113 executable("dbus_test_server") { | 114 executable("dbus_test_server") { |
| 115 testonly = true |
114 sources = [ | 116 sources = [ |
115 "test_server.cc", | 117 "test_server.cc", |
116 "test_service.cc", | 118 "test_service.cc", |
117 "test_service.h", | 119 "test_service.h", |
118 ] | 120 ] |
119 | 121 |
120 deps = [ | 122 deps = [ |
121 ":dbus", | 123 ":dbus", |
122 "//base", | 124 "//base", |
123 "//base/test:test_support", | 125 "//base/test:test_support", |
124 ] | 126 ] |
125 | 127 |
126 configs += [ | 128 configs += [ |
127 "//build/config/linux:dbus", | 129 "//build/config/linux:dbus", |
128 ] | 130 ] |
129 } | 131 } |
OLD | NEW |