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 component("ipc") { | 5 component("ipc") { |
6 external = true | |
7 sources = [ | 6 sources = [ |
8 "file_descriptor_set_posix.cc", | 7 "file_descriptor_set_posix.cc", |
9 "file_descriptor_set_posix.h", | 8 "file_descriptor_set_posix.h", |
10 "ipc_channel.cc", | 9 "ipc_channel.cc", |
11 "ipc_channel.h", | 10 "ipc_channel.h", |
12 "ipc_channel_factory.cc", | 11 "ipc_channel_factory.cc", |
13 "ipc_channel_factory.h", | 12 "ipc_channel_factory.h", |
14 "ipc_channel_handle.h", | 13 "ipc_channel_handle.h", |
15 "ipc_channel_nacl.cc", | 14 "ipc_channel_nacl.cc", |
16 "ipc_channel_nacl.h", | 15 "ipc_channel_nacl.h", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 defines = [ "IPC_IMPLEMENTATION" ] | 72 defines = [ "IPC_IMPLEMENTATION" ] |
74 | 73 |
75 deps = [ | 74 deps = [ |
76 "//base", | 75 "//base", |
77 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. | 76 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. |
78 "//base/third_party/dynamic_annotations", | 77 "//base/third_party/dynamic_annotations", |
79 ] | 78 ] |
80 } | 79 } |
81 | 80 |
82 test("ipc_tests") { | 81 test("ipc_tests") { |
83 external = true | |
84 sources = [ | 82 sources = [ |
85 "file_descriptor_set_posix_unittest.cc", | 83 "file_descriptor_set_posix_unittest.cc", |
86 "ipc_channel_posix_unittest.cc", | 84 "ipc_channel_posix_unittest.cc", |
87 "ipc_channel_unittest.cc", | 85 "ipc_channel_unittest.cc", |
88 "ipc_fuzzing_tests.cc", | 86 "ipc_fuzzing_tests.cc", |
89 "ipc_message_unittest.cc", | 87 "ipc_message_unittest.cc", |
90 "ipc_message_utils_unittest.cc", | 88 "ipc_message_utils_unittest.cc", |
91 "ipc_send_fds_test.cc", | 89 "ipc_send_fds_test.cc", |
92 "ipc_sync_channel_unittest.cc", | 90 "ipc_sync_channel_unittest.cc", |
93 "ipc_sync_message_unittest.cc", | 91 "ipc_sync_message_unittest.cc", |
(...skipping 22 matching lines...) Expand all Loading... |
116 ":test_support_ipc", | 114 ":test_support_ipc", |
117 "//base", | 115 "//base", |
118 "//base:base_i18n", | 116 "//base:base_i18n", |
119 "//base/test:run_all_unittests", | 117 "//base/test:run_all_unittests", |
120 "//base/test:test_support_base", | 118 "//base/test:test_support_base", |
121 "//testing/gtest", | 119 "//testing/gtest", |
122 ] | 120 ] |
123 } | 121 } |
124 | 122 |
125 test("ipc_perftests") { | 123 test("ipc_perftests") { |
126 external = true | |
127 sources = [ | 124 sources = [ |
128 "ipc_perftests.cc", | 125 "ipc_perftests.cc", |
129 "ipc_test_base.cc", | 126 "ipc_test_base.cc", |
130 "ipc_test_base.h", | 127 "ipc_test_base.h", |
131 ] | 128 ] |
132 | 129 |
133 #if (is_android && gtest_target_type == "shared_library") { | 130 #if (is_android && gtest_target_type == "shared_library") { |
134 # deps += "/testing/android/native_test.gyp:native_testNative_code" | 131 # deps += "/testing/android/native_test.gyp:native_testNative_code" |
135 #} | 132 #} |
136 #if (is_posix && !is_mac && !is_android) { | 133 #if (is_posix && !is_mac && !is_android) { |
137 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 134 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
138 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_al
locator=="see_use_tcmalloc" && linux_use_tcmalloc)) { | 135 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_al
locator=="see_use_tcmalloc" && linux_use_tcmalloc)) { |
139 # deps += "//base/allocator" | 136 # deps += "//base/allocator" |
140 # } | 137 # } |
141 #} | 138 #} |
142 | 139 |
143 deps = [ | 140 deps = [ |
144 ":ipc", | 141 ":ipc", |
145 ":test_support_ipc", | 142 ":test_support_ipc", |
146 "//base", | 143 "//base", |
147 "//base:base_i18n", | 144 "//base:base_i18n", |
148 "//base/test:test_support_base", | 145 "//base/test:test_support_base", |
149 "//base/test:test_support_perf", | 146 "//base/test:test_support_perf", |
150 "//testing/gtest", | 147 "//testing/gtest", |
151 ] | 148 ] |
152 } | 149 } |
153 | 150 |
154 static_library("test_support_ipc") { | 151 static_library("test_support_ipc") { |
155 external = true | |
156 sources = [ | 152 sources = [ |
157 "ipc_multiprocess_test.cc", | 153 "ipc_multiprocess_test.cc", |
158 "ipc_multiprocess_test.h", | 154 "ipc_multiprocess_test.h", |
159 "ipc_test_sink.cc", | 155 "ipc_test_sink.cc", |
160 "ipc_test_sink.h", | 156 "ipc_test_sink.h", |
161 ] | 157 ] |
162 deps = [ | 158 deps = [ |
163 ":ipc", | 159 ":ipc", |
164 "//base", | 160 "//base", |
165 "//testing/gtest", | 161 "//testing/gtest", |
166 ] | 162 ] |
167 } | 163 } |
168 | 164 |
OLD | NEW |