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_handle.h",
14 "ipc_channel_nacl.cc",
16 "ipc_channel_posix.cc",
17 "ipc_channel_posix.h",
18 "ipc_channel_proxy.cc",
19 "ipc_channel_proxy.h",
20 "ipc_channel_reader.cc",
21 "ipc_channel_reader.h",
26 "ipc_forwarding_message_filter.cc",
27 "ipc_forwarding_message_filter.h",
33 "ipc_message_macros.h",
34 "ipc_message_start.h",
35 "ipc_message_utils.cc",
36 "ipc_message_utils.h",
38 "ipc_platform_file.cc",
39 "ipc_platform_file.h",
43 "ipc_sync_channel.cc",
45 "ipc_sync_message.cc",
47 "ipc_sync_message_filter.cc",
48 "ipc_sync_message_filter.h",
49 "param_traits_log_macros.h",
50 "param_traits_macros.h",
51 "param_traits_read_macros.h",
52 "param_traits_write_macros.h",
53 "struct_constructor_macros.h",
54 "struct_destructor_macros.h",
55 "unix_domain_socket_util.cc",
56 "unix_domain_socket_util.h",
61 "ipc_channel_nacl.cc",
66 if (is_win || is_ios) {
68 "ipc_channel_factory.cc",
69 "unix_domain_socket_util.cc",
73 defines = [ "IPC_IMPLEMENTATION" ]
77 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect.
78 "//base/third_party/dynamic_annotations",
84 "file_descriptor_set_posix_unittest.cc",
85 "ipc_channel_posix_unittest.cc",
86 "ipc_channel_unittest.cc",
87 "ipc_fuzzing_tests.cc",
88 "ipc_message_unittest.cc",
89 "ipc_message_utils_unittest.cc",
90 "ipc_send_fds_test.cc",
91 "ipc_sync_channel_unittest.cc",
92 "ipc_sync_message_unittest.cc",
93 "ipc_sync_message_unittest.h",
96 "sync_socket_unittest.cc",
97 "unix_domain_socket_util_unittest.cc",
100 if (is_win || is_ios) {
101 sources -= [ "unix_domain_socket_util_unittest.cc" ]
104 # TODO(brettw) hook up Android testing.
105 #if (is_android && gtest_target_type == "shared_library") {
106 # deps += "/testing/android/native_test.gyp:native_testNative_code"
109 # TODO(brettw) hook up tcmalloc to this target.
110 #if (is_posix && !is_mac && !is_android) {
111 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
112 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) {
113 # deps += "/base/allocator"
122 "//base/test:run_all_unittests",
123 "//base/test:test_support_base",
128 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 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
143 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc)) {
144 # deps += "//base/allocator"
153 "//base/test:test_support_base",
154 "//base/test:test_support_perf",
159 static_library("test_support_ipc") {
161 "ipc_multiprocess_test.cc",
162 "ipc_multiprocess_test.h",