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.
7 "file_descriptor_set_posix.cc",
8 "file_descriptor_set_posix.h",
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_macros.h",
35 "ipc_message_start.h",
36 "ipc_message_utils.cc",
37 "ipc_message_utils.h",
39 "ipc_platform_file.cc",
40 "ipc_platform_file.h",
44 "ipc_sync_channel.cc",
46 "ipc_sync_message.cc",
48 "ipc_sync_message_filter.cc",
49 "ipc_sync_message_filter.h",
52 "message_filter_router.cc",
53 "message_filter_router.h",
54 "param_traits_log_macros.h",
55 "param_traits_macros.h",
56 "param_traits_read_macros.h",
57 "param_traits_write_macros.h",
58 "struct_constructor_macros.h",
59 "struct_destructor_macros.h",
60 "unix_domain_socket_util.cc",
61 "unix_domain_socket_util.h",
66 "ipc_channel_nacl.cc",
71 if (is_win || is_ios) {
72 sources -= [ "unix_domain_socket_util.cc" ]
75 defines = [ "IPC_IMPLEMENTATION" ]
80 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
81 "//base/third_party/dynamic_annotations",
85 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android.
89 "file_descriptor_set_posix_unittest.cc",
90 "ipc_channel_posix_unittest.cc",
91 "ipc_channel_unittest.cc",
92 "ipc_fuzzing_tests.cc",
93 "ipc_message_unittest.cc",
94 "ipc_message_utils_unittest.cc",
95 "ipc_send_fds_test.cc",
96 "ipc_sync_channel_unittest.cc",
97 "ipc_sync_message_unittest.cc",
98 "ipc_sync_message_unittest.h",
99 "sync_socket_unittest.cc",
100 "unix_domain_socket_util_unittest.cc",
103 if (is_win || is_ios) {
104 sources -= [ "unix_domain_socket_util_unittest.cc" ]
107 # TODO(brettw) hook up Android testing.
108 #if (is_android && gtest_target_type == "shared_library") {
109 # deps += "/testing/android/native_test.gyp:native_testNative_code"
112 # TODO(brettw) hook up tcmalloc to this target.
113 #if (is_posix && !is_mac && !is_android) {
114 # if (use_allocator!="none") {
115 # deps += "/base/allocator"
124 "//base/test:run_all_unittests",
125 "//base/test:test_support",
130 test("ipc_perftests") {
135 # TODO(brettw) hook up Android testing.
136 #if (is_android && gtest_target_type == "shared_library") {
137 # deps += "/testing/android/native_test.gyp:native_testNative_code"
140 # TODO(brettw) hook up tcmalloc to this target.
141 #if (is_posix && !is_mac && !is_android) {
142 # if (use_allocator!="none") {
143 # deps += "//base/allocator"
152 "//base/test:test_support",
153 "//base/test:test_support_perf",
159 static_library("test_support") {
162 "ipc_multiprocess_test.cc",
163 "ipc_multiprocess_test.h",
164 "ipc_perftest_support.cc",
165 "ipc_perftest_support.h",
170 "ipc_test_channel_listener.h",
171 "ipc_test_channel_listener.cc",