| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 component("ipc") { | 7 component("ipc") { |
| 8 sources = [ | 8 sources = [ |
| 9 "attachment_broker.cc", | 9 "attachment_broker.cc", |
| 10 "attachment_broker.h", | 10 "attachment_broker.h", |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 sources -= [ "unix_domain_socket_util.cc" ] | 105 sources -= [ "unix_domain_socket_util.cc" ] |
| 106 } | 106 } |
| 107 | 107 |
| 108 defines = [ "IPC_IMPLEMENTATION" ] | 108 defines = [ "IPC_IMPLEMENTATION" ] |
| 109 | 109 |
| 110 deps = [ | 110 deps = [ |
| 111 "//base", | 111 "//base", |
| 112 | 112 |
| 113 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. | 113 # TODO(viettrungluu): Needed for base/lazy_instance.h, which is suspect. |
| 114 "//base/third_party/dynamic_annotations", | 114 "//base/third_party/dynamic_annotations", |
| 115 "//crypto:crypto", | |
| 116 ] | 115 ] |
| 116 |
| 117 if (is_win) { |
| 118 # On windows HandleAttachmentWin needs to generate random IDs. |
| 119 deps += [ "//crypto" ] |
| 120 } |
| 117 } | 121 } |
| 118 | 122 |
| 119 # TODO(GYP): crbug.com/360936. Get this to build and run on Android. | 123 # TODO(GYP): crbug.com/360936. Get this to build and run on Android. |
| 120 if (!is_android) { | 124 if (!is_android) { |
| 121 group("ipc_tests_run") { | 125 group("ipc_tests_run") { |
| 122 testonly = true | 126 testonly = true |
| 123 deps = [ | 127 deps = [ |
| 124 ":ipc_tests", | 128 ":ipc_tests", |
| 125 ] | 129 ] |
| 126 } | 130 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 # } | 165 # } |
| 162 #} | 166 #} |
| 163 | 167 |
| 164 deps = [ | 168 deps = [ |
| 165 ":ipc", | 169 ":ipc", |
| 166 ":test_support", | 170 ":test_support", |
| 167 "//base", | 171 "//base", |
| 168 "//base:i18n", | 172 "//base:i18n", |
| 169 "//base/test:run_all_unittests", | 173 "//base/test:run_all_unittests", |
| 170 "//base/test:test_support", | 174 "//base/test:test_support", |
| 175 "//crypto", |
| 171 "//testing/gtest", | 176 "//testing/gtest", |
| 172 ] | 177 ] |
| 173 } | 178 } |
| 174 | 179 |
| 175 test("ipc_perftests") { | 180 test("ipc_perftests") { |
| 176 sources = [ | 181 sources = [ |
| 177 "ipc_perftests.cc", | 182 "ipc_perftests.cc", |
| 178 ] | 183 ] |
| 179 | 184 |
| 180 # TODO(brettw) hook up Android testing. | 185 # TODO(brettw) hook up Android testing. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 "ipc_test_sink.cc", | 221 "ipc_test_sink.cc", |
| 217 "ipc_test_sink.h", | 222 "ipc_test_sink.h", |
| 218 ] | 223 ] |
| 219 deps = [ | 224 deps = [ |
| 220 ":ipc", | 225 ":ipc", |
| 221 "//base", | 226 "//base", |
| 222 "//base/test:test_support", | 227 "//base/test:test_support", |
| 223 "//testing/gtest", | 228 "//testing/gtest", |
| 224 ] | 229 ] |
| 225 } | 230 } |
| OLD | NEW |