OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 | 121 |
122 if (is_win || is_nacl_nonsfi) { | 122 if (is_win || is_nacl_nonsfi) { |
123 sources -= [ "unix_domain_socket_util.cc" ] | 123 sources -= [ "unix_domain_socket_util.cc" ] |
124 } | 124 } |
125 | 125 |
126 defines = [ "IPC_IMPLEMENTATION" ] | 126 defines = [ "IPC_IMPLEMENTATION" ] |
127 | 127 |
128 public_deps = [ | 128 public_deps = [ |
129 ":param_traits", | 129 ":param_traits", |
| 130 "//mojo/public/cpp/bindings", |
| 131 "//mojo/public/cpp/system", |
130 ] | 132 ] |
| 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/c/system:for_component", |
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" ] |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 # deps += "/testing/android/native_test.gyp:native_testNative_code" | 198 # deps += "/testing/android/native_test.gyp:native_testNative_code" |
195 #} | 199 #} |
196 | 200 |
197 deps = [ | 201 deps = [ |
198 ":ipc", | 202 ":ipc", |
199 ":test_support", | 203 ":test_support", |
200 "//base", | 204 "//base", |
201 "//base:i18n", | 205 "//base:i18n", |
202 "//base/test:test_support", | 206 "//base/test:test_support", |
203 "//crypto", | 207 "//crypto", |
| 208 "//mojo/edk/system", |
204 "//testing/gtest", | 209 "//testing/gtest", |
205 ] | 210 ] |
206 | 211 |
207 if (is_mac) { | 212 if (is_mac) { |
208 deps += [ "//sandbox/mac:seatbelt" ] | 213 deps += [ "//sandbox/mac:seatbelt" ] |
209 } | 214 } |
210 } | 215 } |
211 | 216 |
212 test("ipc_perftests") { | 217 test("ipc_perftests") { |
213 sources = [ | 218 sources = [ |
214 "ipc_perftests.cc", | 219 "ipc_perftests.cc", |
215 ] | 220 ] |
216 | 221 |
217 # TODO(brettw) hook up Android testing. | 222 # TODO(brettw) hook up Android testing. |
218 #if (is_android && gtest_target_type == "shared_library") { | 223 #if (is_android && gtest_target_type == "shared_library") { |
219 # deps += "/testing/android/native_test.gyp:native_testNative_code" | 224 # deps += "/testing/android/native_test.gyp:native_testNative_code" |
220 #} | 225 #} |
221 | 226 |
222 deps = [ | 227 deps = [ |
223 ":ipc", | 228 ":ipc", |
224 ":test_support", | 229 ":test_support", |
225 "//base", | 230 "//base", |
226 "//base:i18n", | 231 "//base:i18n", |
227 "//base/test:test_support", | 232 "//base/test:test_support", |
228 "//base/test:test_support_perf", | 233 "//base/test:test_support_perf", |
| 234 "//mojo/edk/system", |
229 "//testing/gtest", | 235 "//testing/gtest", |
230 ] | 236 ] |
231 } | 237 } |
232 | 238 |
233 source_set("test_support") { | 239 source_set("test_support") { |
234 testonly = true | 240 testonly = true |
235 sources = [ | 241 sources = [ |
236 "ipc_multiprocess_test.cc", | 242 "ipc_multiprocess_test.cc", |
237 "ipc_multiprocess_test.h", | 243 "ipc_multiprocess_test.h", |
238 "ipc_perftest_support.cc", | 244 "ipc_perftest_support.cc", |
239 "ipc_perftest_support.h", | 245 "ipc_perftest_support.h", |
240 "ipc_security_test_util.cc", | 246 "ipc_security_test_util.cc", |
241 "ipc_security_test_util.h", | 247 "ipc_security_test_util.h", |
242 "ipc_test_base.cc", | 248 "ipc_test_base.cc", |
243 "ipc_test_base.h", | 249 "ipc_test_base.h", |
244 "ipc_test_channel_listener.cc", | 250 "ipc_test_channel_listener.cc", |
245 "ipc_test_channel_listener.h", | 251 "ipc_test_channel_listener.h", |
246 "ipc_test_sink.cc", | 252 "ipc_test_sink.cc", |
247 "ipc_test_sink.h", | 253 "ipc_test_sink.h", |
248 "test_util_mac.cc", | 254 "test_util_mac.cc", |
249 "test_util_mac.h", | 255 "test_util_mac.h", |
250 ] | 256 ] |
251 public_deps = [ | 257 public_deps = [ |
252 ":ipc", | 258 ":ipc", |
253 ] | 259 ] |
254 deps = [ | 260 deps = [ |
255 "//base", | 261 "//base", |
256 "//base/test:test_support", | 262 "//base/test:test_support", |
| 263 "//mojo/edk/system", |
257 "//testing/gtest", | 264 "//testing/gtest", |
258 ] | 265 ] |
259 } | 266 } |
260 } | 267 } |
OLD | NEW |