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_common.cc",
12 "ipc_channel_handle.h",
13 "ipc_channel_nacl.cc",
15 "ipc_channel_posix.cc",
16 "ipc_channel_posix.h",
17 "ipc_channel_proxy.cc",
18 "ipc_channel_proxy.h",
19 "ipc_channel_reader.cc",
20 "ipc_channel_reader.h",
25 "ipc_forwarding_message_filter.cc",
26 "ipc_forwarding_message_filter.h",
32 "ipc_message_macros.h",
33 "ipc_message_start.h",
34 "ipc_message_utils.cc",
35 "ipc_message_utils.h",
37 "ipc_platform_file.cc",
38 "ipc_platform_file.h",
42 "ipc_sync_channel.cc",
44 "ipc_sync_message.cc",
46 "ipc_sync_message_filter.cc",
47 "ipc_sync_message_filter.h",
50 "message_filter_router.cc",
51 "message_filter_router.h",
52 "param_traits_log_macros.h",
53 "param_traits_macros.h",
54 "param_traits_read_macros.h",
55 "param_traits_write_macros.h",
56 "struct_constructor_macros.h",
57 "struct_destructor_macros.h",
58 "unix_domain_socket_util.cc",
59 "unix_domain_socket_util.h",
64 "ipc_channel_nacl.cc",
69 if (is_win || is_ios) {
71 "unix_domain_socket_util.cc",
75 defines = [ "IPC_IMPLEMENTATION" ]
79 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
80 "//base/third_party/dynamic_annotations",
84 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android.
88 "file_descriptor_set_posix_unittest.cc",
89 "ipc_channel_posix_unittest.cc",
90 "ipc_channel_unittest.cc",
91 "ipc_fuzzing_tests.cc",
92 "ipc_message_unittest.cc",
93 "ipc_message_utils_unittest.cc",
94 "ipc_send_fds_test.cc",
95 "ipc_sync_channel_unittest.cc",
96 "ipc_sync_message_unittest.cc",
97 "ipc_sync_message_unittest.h",
100 "sync_socket_unittest.cc",
101 "unix_domain_socket_util_unittest.cc",
104 if (is_win || is_ios) {
105 sources -= [ "unix_domain_socket_util_unittest.cc" ]
108 # TODO(brettw) hook up Android testing.
109 #if (is_android && gtest_target_type == "shared_library") {
110 # deps += "/testing/android/native_test.gyp:native_testNative_code"
113 # TODO(brettw) hook up tcmalloc to this target.
114 #if (is_posix && !is_mac && !is_android) {
115 # if (use_allocator!="none") {
116 # deps += "/base/allocator"
125 "//base/test:run_all_unittests",
126 "//base/test:test_support",
131 test("ipc_perftests") {
138 # TODO(brettw) hook up Android testing.
139 #if (is_android && gtest_target_type == "shared_library") {
140 # deps += "/testing/android/native_test.gyp:native_testNative_code"
143 # TODO(brettw) hook up tcmalloc to this target.
144 #if (is_posix && !is_mac && !is_android) {
145 # if (use_allocator!="none") {
146 # deps += "//base/allocator"
155 "//base/test:test_support",
156 "//base/test:test_support_perf",
162 static_library("test_support") {
164 "ipc_multiprocess_test.cc",
165 "ipc_multiprocess_test.h",