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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
11 "ipc_channel_factory.cc",
12 "ipc_channel_factory.h",
13 "ipc_channel_common.cc",
14 "ipc_channel_handle.h",
15 "ipc_channel_nacl.cc",
17 "ipc_channel_posix.cc",
18 "ipc_channel_posix.h",
19 "ipc_channel_proxy.cc",
20 "ipc_channel_proxy.h",
21 "ipc_channel_reader.cc",
22 "ipc_channel_reader.h",
27 "ipc_forwarding_message_filter.cc",
28 "ipc_forwarding_message_filter.h",
34 "ipc_message_attachment.cc",
35 "ipc_message_attachment.h",
36 "ipc_message_attachment_set.cc",
37 "ipc_message_attachment_set.h",
38 "ipc_message_macros.h",
39 "ipc_message_start.h",
40 "ipc_message_utils.cc",
41 "ipc_message_utils.h",
43 "ipc_platform_file.cc",
44 "ipc_platform_file.h",
45 "ipc_platform_file_attachment_posix.cc",
46 "ipc_platform_file_attachment_posix.h",
50 "ipc_sync_channel.cc",
52 "ipc_sync_message.cc",
54 "ipc_sync_message_filter.cc",
55 "ipc_sync_message_filter.h",
58 "message_filter_router.cc",
59 "message_filter_router.h",
60 "param_traits_log_macros.h",
61 "param_traits_macros.h",
62 "param_traits_read_macros.h",
63 "param_traits_write_macros.h",
64 "struct_constructor_macros.h",
65 "struct_destructor_macros.h",
66 "unix_domain_socket_util.cc",
67 "unix_domain_socket_util.h",
73 "ipc_channel_posix.cc",
74 "unix_domain_socket_util.cc",
78 "ipc_channel_nacl.cc",
83 if (is_win || is_ios) {
84 sources -= [ "unix_domain_socket_util.cc" ]
87 defines = [ "IPC_IMPLEMENTATION" ]
92 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
93 "//base/third_party/dynamic_annotations",
97 # TODO(GYP): crbug.com/360936. Get this to build and run on Android.
101 "ipc_channel_posix_unittest.cc",
102 "ipc_channel_unittest.cc",
103 "ipc_fuzzing_tests.cc",
104 "ipc_message_attachment_set_posix_unittest.cc",
105 "ipc_message_unittest.cc",
106 "ipc_message_utils_unittest.cc",
107 "ipc_send_fds_test.cc",
108 "ipc_sync_channel_unittest.cc",
109 "ipc_sync_message_unittest.cc",
110 "ipc_sync_message_unittest.h",
111 "sync_socket_unittest.cc",
112 "unix_domain_socket_util_unittest.cc",
115 if (is_win || is_ios) {
116 sources -= [ "unix_domain_socket_util_unittest.cc" ]
119 # TODO(brettw) hook up Android testing.
120 #if (is_android && gtest_target_type == "shared_library") {
121 # deps += "/testing/android/native_test.gyp:native_testNative_code"
124 # TODO(brettw) hook up tcmalloc to this target.
125 #if (is_posix && !is_mac && !is_android) {
126 # if (use_allocator!="none") {
127 # deps += "/base/allocator"
136 "//base/test:run_all_unittests",
137 "//base/test:test_support",
142 test("ipc_perftests") {
147 # TODO(brettw) hook up Android testing.
148 #if (is_android && gtest_target_type == "shared_library") {
149 # deps += "/testing/android/native_test.gyp:native_testNative_code"
152 # TODO(brettw) hook up tcmalloc to this target.
153 #if (is_posix && !is_mac && !is_android) {
154 # if (use_allocator!="none") {
155 # deps += "//base/allocator"
163 "//base/test:test_support",
164 "//base/test:test_support_perf",
170 static_library("test_support") {
173 "ipc_multiprocess_test.cc",
174 "ipc_multiprocess_test.h",
175 "ipc_perftest_support.cc",
176 "ipc_perftest_support.h",
177 "ipc_security_test_util.cc",
178 "ipc_security_test_util.h",
181 "ipc_test_channel_listener.cc",
182 "ipc_test_channel_listener.h",
189 "//base/test:test_support",