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

Side by Side Diff: ipc/BUILD.gn

Issue 2033243003: Use Mojo pipes to signal sync IPC events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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("//build/config/nacl/config.gni") 5 import("//build/config/nacl/config.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") 7 import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
8 8
9 component("ipc") { 9 component("ipc") {
10 sources = [ 10 sources = [
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "mach_port_attachment_mac.cc", 87 "mach_port_attachment_mac.cc",
88 "mach_port_attachment_mac.h", 88 "mach_port_attachment_mac.h",
89 "mach_port_mac.cc", 89 "mach_port_mac.cc",
90 "mach_port_mac.h", 90 "mach_port_mac.h",
91 "message_filter.cc", 91 "message_filter.cc",
92 "message_filter.h", 92 "message_filter.h",
93 "message_filter_router.cc", 93 "message_filter_router.cc",
94 "message_filter_router.h", 94 "message_filter_router.h",
95 "message_router.cc", 95 "message_router.cc",
96 "message_router.h", 96 "message_router.h",
97 "mojo_event.cc",
98 "mojo_event.h",
97 "param_traits_log_macros.h", 99 "param_traits_log_macros.h",
98 "param_traits_macros.h", 100 "param_traits_macros.h",
99 "param_traits_read_macros.h", 101 "param_traits_read_macros.h",
100 "param_traits_write_macros.h", 102 "param_traits_write_macros.h",
101 "placeholder_brokerable_attachment.cc", 103 "placeholder_brokerable_attachment.cc",
102 "placeholder_brokerable_attachment.h", 104 "placeholder_brokerable_attachment.h",
103 "struct_constructor_macros.h", 105 "struct_constructor_macros.h",
104 "struct_destructor_macros.h", 106 "struct_destructor_macros.h",
105 "unix_domain_socket_util.cc", 107 "unix_domain_socket_util.cc",
106 "unix_domain_socket_util.h", 108 "unix_domain_socket_util.h",
(...skipping 13 matching lines...) Expand all
120 } 122 }
121 123
122 if (is_win || is_nacl_nonsfi) { 124 if (is_win || is_nacl_nonsfi) {
123 sources -= [ "unix_domain_socket_util.cc" ] 125 sources -= [ "unix_domain_socket_util.cc" ]
124 } 126 }
125 127
126 defines = [ "IPC_IMPLEMENTATION" ] 128 defines = [ "IPC_IMPLEMENTATION" ]
127 129
128 public_deps = [ 130 public_deps = [
129 ":param_traits", 131 ":param_traits",
132 "//mojo/public/cpp/system",
130 ] 133 ]
131 deps = [ 134 deps = [
132 "//base", 135 "//base",
133 136
134 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. 137 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
135 "//base/third_party/dynamic_annotations", 138 "//base/third_party/dynamic_annotations",
139 "//mojo/public/cpp/bindings",
136 ] 140 ]
137 141
138 if (is_win || is_mac) { 142 if (is_win || is_mac) {
139 # On Windows HandleAttachmentWin needs to generate random IDs. 143 # On Windows HandleAttachmentWin needs to generate random IDs.
140 # On Mac MachPortAttachmentMac needs to generate random IDs. 144 # On Mac MachPortAttachmentMac needs to generate random IDs.
141 deps += [ "//crypto" ] 145 deps += [ "//crypto" ]
142 } 146 }
143 147
144 if (enable_ipc_fuzzer) { 148 if (enable_ipc_fuzzer) {
145 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] 149 public_configs = [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
146 } 150 }
147 } 151 }
148 152
149 # This is provided as a separate target so other targets can provide param 153 # This is provided as a separate target so other targets can provide param
150 # traits implementations without necessarily linking to all of IPC. 154 # traits implementations without necessarily linking to all of IPC.
151 source_set("param_traits") { 155 source_set("param_traits") {
152 public = [ 156 public = [
153 "ipc_param_traits.h", 157 "ipc_param_traits.h",
154 ] 158 ]
155 } 159 }
156 160
157 if (!is_ios) { 161 if (!is_ios) {
162 source_set("run_all_unittests") {
163 testonly = true
164
165 sources = [
166 "run_all_unittests.cc",
167 ]
168
169 deps = [
170 "//base",
171 "//base/test:test_support",
172 "//mojo/edk/system",
173 ]
174 }
175
158 test("ipc_tests") { 176 test("ipc_tests") {
159 sources = [ 177 sources = [
160 "attachment_broker_mac_unittest.cc", 178 "attachment_broker_mac_unittest.cc",
161 "attachment_broker_privileged_mac_unittest.cc", 179 "attachment_broker_privileged_mac_unittest.cc",
162 "attachment_broker_privileged_win_unittest.cc", 180 "attachment_broker_privileged_win_unittest.cc",
163 "ipc_channel_posix_unittest.cc", 181 "ipc_channel_posix_unittest.cc",
164 "ipc_channel_proxy_unittest.cc", 182 "ipc_channel_proxy_unittest.cc",
165 "ipc_channel_reader_unittest.cc", 183 "ipc_channel_reader_unittest.cc",
166 "ipc_fuzzing_tests.cc", 184 "ipc_fuzzing_tests.cc",
167 "ipc_message_attachment_set_posix_unittest.cc", 185 "ipc_message_attachment_set_posix_unittest.cc",
168 "ipc_message_unittest.cc", 186 "ipc_message_unittest.cc",
169 "ipc_message_utils_unittest.cc", 187 "ipc_message_utils_unittest.cc",
170 "ipc_sync_channel_unittest.cc", 188 "ipc_sync_channel_unittest.cc",
171 "ipc_sync_message_unittest.cc", 189 "ipc_sync_message_unittest.cc",
172 "ipc_sync_message_unittest.h", 190 "ipc_sync_message_unittest.h",
173 "ipc_test_message_generator.cc", 191 "ipc_test_message_generator.cc",
174 "ipc_test_message_generator.h", 192 "ipc_test_message_generator.h",
175 "ipc_test_messages.h", 193 "ipc_test_messages.h",
176 "run_all_unittests.cc",
177 "sync_socket_unittest.cc", 194 "sync_socket_unittest.cc",
178 ] 195 ]
179 196
180 if (!is_win && !is_ios) { 197 if (!is_win && !is_ios) {
181 sources += [ "unix_domain_socket_util_unittest.cc" ] 198 sources += [ "unix_domain_socket_util_unittest.cc" ]
182 } 199 }
183 200
184 if (!is_android) { 201 if (!is_android) {
185 sources += [ "ipc_channel_unittest.cc" ] 202 sources += [ "ipc_channel_unittest.cc" ]
186 } 203 }
187 204
188 if (!is_ios) { 205 if (!is_ios) {
189 sources += [ "ipc_send_fds_test.cc" ] 206 sources += [ "ipc_send_fds_test.cc" ]
190 } 207 }
191 208
192 # TODO(brettw) hook up Android testing. 209 # TODO(brettw) hook up Android testing.
193 #if (is_android && gtest_target_type == "shared_library") { 210 #if (is_android && gtest_target_type == "shared_library") {
194 # deps += "/testing/android/native_test.gyp:native_testNative_code" 211 # deps += "/testing/android/native_test.gyp:native_testNative_code"
195 #} 212 #}
196 213
197 deps = [ 214 deps = [
198 ":ipc", 215 ":ipc",
216 ":run_all_unittests",
199 ":test_support", 217 ":test_support",
200 "//base", 218 "//base",
201 "//base:i18n", 219 "//base:i18n",
202 "//base/test:test_support", 220 "//base/test:test_support",
203 "//crypto", 221 "//crypto",
204 "//testing/gtest", 222 "//testing/gtest",
205 ] 223 ]
206 224
207 if (is_mac) { 225 if (is_mac) {
208 deps += [ "//sandbox/mac:seatbelt" ] 226 deps += [ "//sandbox/mac:seatbelt" ]
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 public_deps = [ 269 public_deps = [
252 ":ipc", 270 ":ipc",
253 ] 271 ]
254 deps = [ 272 deps = [
255 "//base", 273 "//base",
256 "//base/test:test_support", 274 "//base/test:test_support",
257 "//testing/gtest", 275 "//testing/gtest",
258 ] 276 ]
259 } 277 }
260 } 278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698