Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1937)

Side by Side Diff: dbus/BUILD.gn

Issue 547793002: Add lots of testonly annotations to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698