[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 1 | # Copyright (c) 2013 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. |
| 4 | |
| 5 | import("//build/config/crypto.gni") |
| 6 | import("//build/config/features.gni") |
| 7 | import("//build/config/ui.gni") |
rmcilroy | 5837d33 | 2014-12-17 14:30:58 | [diff] [blame] | 8 | import("//build/module_args/v8.gni") |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 9 | import("//url/config.gni") |
qsr | fb5251d1 | 2015-01-21 15:57:22 | [diff] [blame] | 10 | import("//testing/test.gni") |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 11 | import("//third_party/icu/config.gni") |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 12 | import("//third_party/protobuf/proto_library.gni") |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 13 | |
[email protected] | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 14 | # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. |
| 15 | # Currently, that file can't be imported multiple times. Make this always |
| 16 | # imported when http://crbug.com/393704 is fixed. |
| 17 | if (!is_android) { |
| 18 | import("//tools/grit/grit_rule.gni") |
| 19 | } |
| 20 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 21 | if (is_android) { |
| 22 | import("//build/config/android/config.gni") |
[email protected] | ef0eb44 | 2014-05-15 09:32:18 | [diff] [blame] | 23 | import("//build/config/android/rules.gni") |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 24 | } else if (is_mac) { |
| 25 | import("//build/config/mac/mac_sdk.gni") |
| 26 | } |
| 27 | |
| 28 | # The list of net files is kept in net.gypi. Read it. |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 29 | gypi_values = exec_script("//build/gypi_to_gn.py", |
| 30 | [ rebase_path("net.gypi") ], |
| 31 | "scope", |
| 32 | [ "net.gypi" ]) |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 33 | |
| 34 | # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs |
| 35 | # configuration (krb5.conf and so on). |
| 36 | use_kerberos = !is_chromeos && !is_android && !is_ios |
| 37 | |
| 38 | # The way the cache uses mmap() is inefficient on some Android devices. If |
| 39 | # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 40 | # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 41 | # android devices, but we cannot be so sure about the variety of ARM devices. |
| 42 | # So enable it for x86 only for now. |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 43 | posix_avoid_mmap = is_android && current_cpu != "x86" |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 44 | |
| 45 | # WebSockets and socket stream code are used everywhere except iOS. |
| 46 | enable_websockets = !is_ios |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 47 | use_v8_in_net = !is_ios |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 48 | enable_built_in_dns = !is_ios |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 49 | disable_ftp_support = is_ios |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 50 | |
[email protected] | 384dab9 | 2014-06-04 20:26:08 | [diff] [blame] | 51 | declare_args() { |
| 52 | # Disables support for file URLs. File URL support requires use of icu. |
| 53 | disable_file_support = false |
| 54 | } |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 55 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 56 | config("net_config") { |
| 57 | defines = [] |
| 58 | if (posix_avoid_mmap) { |
| 59 | defines += [ "POSIX_AVOID_MMAP" ] |
| 60 | } |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 61 | if (disable_file_support) { |
| 62 | defines += [ "DISABLE_FILE_SUPPORT" ] |
| 63 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | component("net") { |
| 67 | sources = |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 68 | gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 69 | |
| 70 | cflags = [] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 71 | defines = [ |
| 72 | # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to |
| 73 | # 0) which implies that we run pkg_config on kerberos and link to that |
| 74 | # rather than setting this define which will dynamically open it. That |
| 75 | # doesn't seem to be set in the regular builds, so we're skipping this |
| 76 | # capability here. |
| 77 | "DLOPEN_KERBEROS", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 78 | "NET_IMPLEMENTATION", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 79 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 80 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 81 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 82 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 83 | public_configs = [ ":net_config" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 84 | include_dirs = [] |
| 85 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 86 | public_deps = [ |
brettw | 2e7db0a | 2015-04-24 22:59:17 | [diff] [blame] | 87 | ":net_quic_proto", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 88 | "//crypto", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 89 | "//crypto:platform", |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 90 | "//url", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 91 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 92 | deps = [ |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 93 | ":net_resources", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 94 | "//base", |
[email protected] | ad66db1 | 2014-07-10 12:43:47 | [diff] [blame] | 95 | "//base:prefs", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 96 | "//base/third_party/dynamic_annotations", |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 97 | "//net/base/registry_controlled_domains", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 98 | "//sdch", |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 99 | "//third_party/protobuf:protobuf_lite", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 100 | "//third_party/zlib", |
| 101 | "//url", |
| 102 | ] |
| 103 | |
| 104 | if (use_kerberos) { |
| 105 | defines += [ "USE_KERBEROS" ] |
| 106 | if (is_android) { |
| 107 | include_dirs += [ "/usr/include/kerberosV" ] |
| 108 | } |
| 109 | } else { |
| 110 | sources -= [ |
| 111 | "http/http_auth_gssapi_posix.cc", |
| 112 | "http/http_auth_gssapi_posix.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 113 | "http/http_auth_handler_negotiate.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 114 | "http/http_auth_handler_negotiate.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 115 | ] |
| 116 | } |
| 117 | |
| 118 | if (is_posix) { |
| 119 | if (posix_avoid_mmap) { |
| 120 | sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] |
| 121 | } else { |
| 122 | sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] |
| 123 | } |
| 124 | } |
| 125 | |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 126 | if (disable_file_support) { |
| 127 | sources -= [ |
| 128 | "base/directory_lister.cc", |
| 129 | "base/directory_lister.h", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 130 | "url_request/file_protocol_handler.cc", |
| 131 | "url_request/file_protocol_handler.h", |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 132 | "url_request/url_request_file_dir_job.cc", |
| 133 | "url_request/url_request_file_dir_job.h", |
| 134 | "url_request/url_request_file_job.cc", |
| 135 | "url_request/url_request_file_job.h", |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 136 | ] |
| 137 | } |
| 138 | |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 139 | if (disable_ftp_support) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 140 | sources -= [ |
| 141 | "ftp/ftp_auth_cache.cc", |
| 142 | "ftp/ftp_auth_cache.h", |
| 143 | "ftp/ftp_ctrl_response_buffer.cc", |
| 144 | "ftp/ftp_ctrl_response_buffer.h", |
| 145 | "ftp/ftp_directory_listing_parser.cc", |
| 146 | "ftp/ftp_directory_listing_parser.h", |
| 147 | "ftp/ftp_directory_listing_parser_ls.cc", |
| 148 | "ftp/ftp_directory_listing_parser_ls.h", |
| 149 | "ftp/ftp_directory_listing_parser_netware.cc", |
| 150 | "ftp/ftp_directory_listing_parser_netware.h", |
| 151 | "ftp/ftp_directory_listing_parser_os2.cc", |
| 152 | "ftp/ftp_directory_listing_parser_os2.h", |
| 153 | "ftp/ftp_directory_listing_parser_vms.cc", |
| 154 | "ftp/ftp_directory_listing_parser_vms.h", |
| 155 | "ftp/ftp_directory_listing_parser_windows.cc", |
| 156 | "ftp/ftp_directory_listing_parser_windows.h", |
| 157 | "ftp/ftp_network_layer.cc", |
| 158 | "ftp/ftp_network_layer.h", |
| 159 | "ftp/ftp_network_session.cc", |
| 160 | "ftp/ftp_network_session.h", |
| 161 | "ftp/ftp_network_transaction.cc", |
| 162 | "ftp/ftp_network_transaction.h", |
| 163 | "ftp/ftp_request_info.h", |
| 164 | "ftp/ftp_response_info.cc", |
| 165 | "ftp/ftp_response_info.h", |
| 166 | "ftp/ftp_server_type_histograms.cc", |
| 167 | "ftp/ftp_server_type_histograms.h", |
| 168 | "ftp/ftp_transaction.h", |
| 169 | "ftp/ftp_transaction_factory.h", |
| 170 | "ftp/ftp_util.cc", |
| 171 | "ftp/ftp_util.h", |
| 172 | "url_request/ftp_protocol_handler.cc", |
| 173 | "url_request/ftp_protocol_handler.h", |
| 174 | "url_request/url_request_ftp_job.cc", |
| 175 | "url_request/url_request_ftp_job.h", |
| 176 | ] |
| 177 | } |
| 178 | |
| 179 | if (enable_built_in_dns) { |
| 180 | defines += [ "ENABLE_BUILT_IN_DNS" ] |
| 181 | } else { |
| 182 | sources -= [ |
| 183 | "dns/address_sorter_posix.cc", |
| 184 | "dns/address_sorter_posix.h", |
| 185 | "dns/dns_client.cc", |
| 186 | ] |
| 187 | } |
| 188 | |
| 189 | if (use_openssl) { |
| 190 | sources -= [ |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 191 | "base/nss_memio.c", |
| 192 | "base/nss_memio.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 193 | "cert/ct_log_verifier_nss.cc", |
| 194 | "cert/ct_objects_extractor_nss.cc", |
| 195 | "cert/jwk_serializer_nss.cc", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 196 | "cert/scoped_nss_types.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 197 | "cert/x509_util_nss.cc", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 198 | "quic/crypto/aead_base_decrypter_nss.cc", |
| 199 | "quic/crypto/aead_base_encrypter_nss.cc", |
| 200 | "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", |
| 201 | "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", |
| 202 | "quic/crypto/chacha20_poly1305_decrypter_nss.cc", |
| 203 | "quic/crypto/chacha20_poly1305_encrypter_nss.cc", |
| 204 | "quic/crypto/channel_id_nss.cc", |
| 205 | "quic/crypto/p256_key_exchange_nss.cc", |
| 206 | "socket/nss_ssl_util.cc", |
| 207 | "socket/nss_ssl_util.h", |
| 208 | "socket/ssl_client_socket_nss.cc", |
| 209 | "socket/ssl_client_socket_nss.h", |
| 210 | "socket/ssl_server_socket_nss.cc", |
| 211 | "socket/ssl_server_socket_nss.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 212 | ] |
[email protected] | 71d94dfce9 | 2014-04-30 16:47:24 | [diff] [blame] | 213 | if (is_ios) { |
| 214 | # Always removed for !ios below. |
| 215 | sources -= [ |
| 216 | "cert/cert_verify_proc_nss.cc", |
| 217 | "cert/cert_verify_proc_nss.h", |
[email protected] | 71d94dfce9 | 2014-04-30 16:47:24 | [diff] [blame] | 218 | ] |
| 219 | } |
davidben | d558741 | 2014-10-30 21:44:16 | [diff] [blame] | 220 | if (is_win) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 221 | sources -= [ "cert/sha256_legacy_support_nss_win.cc" ] |
davidben | d558741 | 2014-10-30 21:44:16 | [diff] [blame] | 222 | } |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 223 | if (!use_nss_certs && !is_ios) { |
| 224 | sources -= [ "cert/x509_util_nss.h" ] |
| 225 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 226 | } else { |
| 227 | sources -= [ |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 228 | "cert/ct_log_verifier_openssl.cc", |
| 229 | "cert/ct_objects_extractor_openssl.cc", |
| 230 | "cert/jwk_serializer_openssl.cc", |
| 231 | "cert/x509_util_openssl.cc", |
| 232 | "cert/x509_util_openssl.h", |
| 233 | "quic/crypto/aead_base_decrypter_openssl.cc", |
| 234 | "quic/crypto/aead_base_encrypter_openssl.cc", |
| 235 | "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", |
| 236 | "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", |
| 237 | "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", |
| 238 | "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", |
| 239 | "quic/crypto/channel_id_openssl.cc", |
| 240 | "quic/crypto/p256_key_exchange_openssl.cc", |
| 241 | "quic/crypto/scoped_evp_aead_ctx.cc", |
| 242 | "quic/crypto/scoped_evp_aead_ctx.h", |
| 243 | "socket/ssl_client_socket_openssl.cc", |
| 244 | "socket/ssl_client_socket_openssl.h", |
| 245 | "socket/ssl_server_socket_openssl.cc", |
[email protected] | c8a80e9 | 2014-05-17 16:02:08 | [diff] [blame] | 246 | "socket/ssl_server_socket_openssl.h", |
[email protected] | 97a854f | 2014-07-29 07:51:36 | [diff] [blame] | 247 | "ssl/openssl_platform_key.h", |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 248 | "ssl/openssl_platform_key_nss.cc", |
[email protected] | 97a854f | 2014-07-29 07:51:36 | [diff] [blame] | 249 | "ssl/openssl_ssl_util.cc", |
| 250 | "ssl/openssl_ssl_util.h", |
davidben | dafe4e5 | 2015-04-08 22:53:52 | [diff] [blame] | 251 | "ssl/ssl_client_session_cache_openssl.cc", |
| 252 | "ssl/ssl_client_session_cache_openssl.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 253 | ] |
[email protected] | 97a854f | 2014-07-29 07:51:36 | [diff] [blame] | 254 | if (is_mac) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 255 | sources -= [ "ssl/openssl_platform_key_mac.cc" ] |
[email protected] | 97a854f | 2014-07-29 07:51:36 | [diff] [blame] | 256 | } |
| 257 | if (is_win) { |
| 258 | sources -= [ |
John Abd-El-Malek | 494329e | 2014-11-05 19:06:30 | [diff] [blame] | 259 | "cert/sha256_legacy_support_openssl_win.cc", |
[email protected] | 97a854f | 2014-07-29 07:51:36 | [diff] [blame] | 260 | "ssl/openssl_platform_key_win.cc", |
| 261 | ] |
| 262 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 263 | } |
| 264 | |
| 265 | if (!use_openssl_certs) { |
| 266 | sources -= [ |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 267 | "base/crypto_module_openssl.cc", |
isherman | 7e5de44 | 2014-09-25 23:00:18 | [diff] [blame] | 268 | "base/keygen_handler_openssl.cc", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 269 | "base/openssl_private_key_store.h", |
| 270 | "base/openssl_private_key_store_memory.cc", |
| 271 | "cert/cert_database_openssl.cc", |
| 272 | "cert/cert_verify_proc_openssl.cc", |
| 273 | "cert/cert_verify_proc_openssl.h", |
| 274 | "cert/test_root_certs_openssl.cc", |
| 275 | "cert/x509_certificate_openssl.cc", |
| 276 | "ssl/openssl_client_key_store.cc", |
| 277 | "ssl/openssl_client_key_store.h", |
| 278 | ] |
| 279 | if (is_android) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 280 | sources -= [ "base/openssl_private_key_store_android.cc" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 281 | } |
[email protected] | 1ea0175 | 2014-05-23 19:01:46 | [diff] [blame] | 282 | } else if (is_android) { |
| 283 | # Android doesn't use these even when using OpenSSL. |
| 284 | sources -= [ |
| 285 | "base/openssl_private_key_store_memory.cc", |
| 286 | "cert/cert_database_openssl.cc", |
| 287 | "cert/cert_verify_proc_openssl.cc", |
| 288 | "cert/test_root_certs_openssl.cc", |
| 289 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 290 | } |
| 291 | |
mukai | 77f8210a | 2014-10-07 16:35:14 | [diff] [blame] | 292 | if (use_glib && !is_chromeos) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 293 | configs += [ "//build/config/linux:gconf" ] |
| 294 | deps += [ "//build/config/linux:gio" ] |
| 295 | } |
| 296 | |
| 297 | if (is_linux) { |
| 298 | configs += [ "//build/config/linux:libresolv" ] |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 299 | } |
| 300 | |
| 301 | if (!use_nss_certs) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 302 | sources -= [ |
| 303 | "base/crypto_module_nss.cc", |
| 304 | "base/keygen_handler_nss.cc", |
| 305 | "cert/cert_database_nss.cc", |
| 306 | "cert/nss_cert_database.cc", |
| 307 | "cert/nss_cert_database.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 308 | "cert/x509_certificate_nss.cc", |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 309 | "ssl/client_cert_store_nss.cc", |
| 310 | "ssl/client_cert_store_nss.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 311 | "third_party/mozilla_security_manager/nsKeygenHandler.cpp", |
| 312 | "third_party/mozilla_security_manager/nsKeygenHandler.h", |
| 313 | "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", |
| 314 | "third_party/mozilla_security_manager/nsNSSCertificateDB.h", |
| 315 | "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", |
| 316 | "third_party/mozilla_security_manager/nsPKCS12Blob.h", |
| 317 | ] |
[email protected] | e8ab691 | 2014-04-21 20:54:51 | [diff] [blame] | 318 | if (!is_ios) { |
| 319 | # These files are part of the partial implementation of NSS on iOS so |
| 320 | # keep them in that case (even though use_nss_certs is not set). |
| 321 | sources -= [ |
| 322 | "cert/cert_verify_proc_nss.cc", |
| 323 | "cert/cert_verify_proc_nss.h", |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 324 | "cert/test_root_certs_nss.cc", |
| 325 | "cert/x509_util_nss_certs.cc", |
| 326 | "cert_net/nss_ocsp.cc", |
| 327 | "cert_net/nss_ocsp.h", |
[email protected] | e8ab691 | 2014-04-21 20:54:51 | [diff] [blame] | 328 | ] |
| 329 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 330 | if (is_chromeos) { |
| 331 | # These were already removed on non-ChromeOS. |
| 332 | sources -= [ |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 333 | "cert/nss_cert_database_chromeos.cc", |
| 334 | "cert/nss_cert_database_chromeos.h", |
| 335 | "cert/nss_profile_filter_chromeos.cc", |
| 336 | "cert/nss_profile_filter_chromeos.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 337 | "ssl/client_cert_store_chromeos.cc", |
| 338 | "ssl/client_cert_store_chromeos.h", |
| 339 | ] |
| 340 | } |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 341 | if (use_openssl) { |
| 342 | sources -= [ "ssl/openssl_platform_key_nss.cc" ] |
| 343 | } |
| 344 | } else if (use_openssl) { |
| 345 | # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
| 346 | # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file |
| 347 | # in directly. |
| 348 | sources += [ "third_party/nss/ssl/cmpcert.c" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 349 | } |
| 350 | |
| 351 | if (!enable_websockets) { |
| 352 | sources -= [ |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 353 | "websockets/websocket_basic_handshake_stream.cc", |
| 354 | "websockets/websocket_basic_handshake_stream.h", |
| 355 | "websockets/websocket_basic_stream.cc", |
| 356 | "websockets/websocket_basic_stream.h", |
| 357 | "websockets/websocket_channel.cc", |
| 358 | "websockets/websocket_channel.h", |
| 359 | "websockets/websocket_deflate_predictor.h", |
| 360 | "websockets/websocket_deflate_predictor_impl.cc", |
| 361 | "websockets/websocket_deflate_predictor_impl.h", |
| 362 | "websockets/websocket_deflate_stream.cc", |
| 363 | "websockets/websocket_deflate_stream.h", |
| 364 | "websockets/websocket_deflater.cc", |
| 365 | "websockets/websocket_deflater.h", |
| 366 | "websockets/websocket_errors.cc", |
| 367 | "websockets/websocket_errors.h", |
| 368 | "websockets/websocket_extension.cc", |
| 369 | "websockets/websocket_extension.h", |
| 370 | "websockets/websocket_extension_parser.cc", |
| 371 | "websockets/websocket_extension_parser.h", |
| 372 | "websockets/websocket_frame.cc", |
| 373 | "websockets/websocket_frame.h", |
| 374 | "websockets/websocket_frame_parser.cc", |
| 375 | "websockets/websocket_frame_parser.h", |
ricea | 11bdcd0 | 2014-11-20 09:57:07 | [diff] [blame] | 376 | "websockets/websocket_handshake_challenge.cc", |
| 377 | "websockets/websocket_handshake_challenge.h", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 378 | "websockets/websocket_handshake_constants.cc", |
| 379 | "websockets/websocket_handshake_constants.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 380 | "websockets/websocket_handshake_request_info.cc", |
| 381 | "websockets/websocket_handshake_request_info.h", |
| 382 | "websockets/websocket_handshake_response_info.cc", |
| 383 | "websockets/websocket_handshake_response_info.h", |
| 384 | "websockets/websocket_handshake_stream_base.h", |
| 385 | "websockets/websocket_handshake_stream_create_helper.cc", |
| 386 | "websockets/websocket_handshake_stream_create_helper.h", |
| 387 | "websockets/websocket_inflater.cc", |
| 388 | "websockets/websocket_inflater.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 389 | "websockets/websocket_mux.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 390 | "websockets/websocket_stream.cc", |
| 391 | "websockets/websocket_stream.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 392 | ] |
| 393 | } |
| 394 | |
| 395 | if (!enable_mdns) { |
| 396 | sources -= [ |
| 397 | "dns/mdns_cache.cc", |
| 398 | "dns/mdns_cache.h", |
| 399 | "dns/mdns_client.cc", |
| 400 | "dns/mdns_client.h", |
| 401 | "dns/mdns_client_impl.cc", |
| 402 | "dns/mdns_client_impl.h", |
| 403 | "dns/record_parsed.cc", |
| 404 | "dns/record_parsed.h", |
| 405 | "dns/record_rdata.cc", |
| 406 | "dns/record_rdata.h", |
| 407 | ] |
| 408 | } |
| 409 | |
| 410 | if (is_win) { |
| 411 | sources -= [ |
| 412 | "http/http_auth_handler_ntlm_portable.cc", |
[email protected] | 2ef2b0e | 2014-07-09 21:12:34 | [diff] [blame] | 413 | "socket/socket_libevent.cc", |
| 414 | "socket/socket_libevent.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 415 | "socket/tcp_socket_libevent.cc", |
| 416 | "socket/tcp_socket_libevent.h", |
| 417 | "udp/udp_socket_libevent.cc", |
| 418 | "udp/udp_socket_libevent.h", |
| 419 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 420 | } else { # !is_win |
| 421 | sources -= [ |
| 422 | "base/winsock_init.cc", |
| 423 | "base/winsock_init.h", |
| 424 | "base/winsock_util.cc", |
| 425 | "base/winsock_util.h", |
| 426 | "proxy/proxy_resolver_winhttp.cc", |
| 427 | "proxy/proxy_resolver_winhttp.h", |
| 428 | ] |
| 429 | } |
| 430 | |
| 431 | if (is_mac) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 432 | libs = [ |
[email protected] | ab9ce6e | 2014-04-17 20:33:19 | [diff] [blame] | 433 | "Foundation.framework", |
| 434 | "Security.framework", |
| 435 | "SystemConfiguration.framework", |
| 436 | "resolv", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 437 | ] |
| 438 | } |
| 439 | |
| 440 | if (is_ios) { |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 441 | # Add back some sources that were otherwise filtered out. iOS needs some Mac |
| 442 | # files. |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 443 | set_sources_assignment_filter([]) |
| 444 | sources += [ |
guoweis | 7eb7ab5 | 2014-11-14 17:42:56 | [diff] [blame] | 445 | "base/net_util_mac.cc", |
| 446 | "base/net_util_mac.h", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 447 | "base/network_change_notifier_mac.cc", |
| 448 | "base/network_config_watcher_mac.cc", |
| 449 | "base/platform_mime_util_mac.mm", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 450 | "proxy/proxy_resolver_mac.cc", |
| 451 | "proxy/proxy_server_mac.cc", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 452 | ] |
| 453 | set_sources_assignment_filter(sources_assignment_filter) |
| 454 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 455 | sources -= [ "disk_cache/blockfile/file_posix.cc" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 456 | libs = [ |
[email protected] | ab9ce6e | 2014-04-17 20:33:19 | [diff] [blame] | 457 | "CFNetwork.framework", |
| 458 | "MobileCoreServices.framework", |
| 459 | "Security.framework", |
| 460 | "SystemConfiguration.framework", |
| 461 | "resolv", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 462 | ] |
| 463 | } |
| 464 | |
erikchen | 006a7cf | 2014-12-03 22:27:11 | [diff] [blame] | 465 | if (is_ios || is_mac) { |
| 466 | sources += gypi_values.net_base_mac_ios_sources |
| 467 | } |
| 468 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 469 | if (is_android) { |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 470 | # Add some Linux sources that were excluded by the filter, but which |
| 471 | # are needed. |
| 472 | set_sources_assignment_filter([]) |
| 473 | sources += [ |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 474 | "base/address_tracker_linux.cc", |
| 475 | "base/address_tracker_linux.h", |
guoweis | 7eb7ab5 | 2014-11-14 17:42:56 | [diff] [blame] | 476 | "base/net_util_linux.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 477 | "base/net_util_linux.h", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 478 | "base/platform_mime_util_linux.cc", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 479 | ] |
| 480 | set_sources_assignment_filter(sources_assignment_filter) |
torne | fe8398d | 2015-04-07 18:47:26 | [diff] [blame] | 481 | deps += [ ":net_jni_headers" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 482 | } |
[email protected] | ad66db1 | 2014-07-10 12:43:47 | [diff] [blame] | 483 | |
[email protected] | 85191ed | 2014-05-15 00:41:49 | [diff] [blame] | 484 | if (use_icu_alternatives_on_android) { |
[email protected] | 85191ed | 2014-05-15 00:41:49 | [diff] [blame] | 485 | sources += [ |
| 486 | "base/net_string_util_icu_alternatives_android.cc", |
| 487 | "base/net_string_util_icu_alternatives_android.h", |
| 488 | ] |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 489 | } else { |
| 490 | deps += [ |
| 491 | "//base:i18n", |
| 492 | "//third_party/icu", |
| 493 | ] |
| 494 | sources += [ |
| 495 | "base/filename_util_icu.cc", |
| 496 | "base/net_string_util_icu.cc", |
| 497 | "base/net_util_icu.cc", |
| 498 | ] |
[email protected] | 85191ed | 2014-05-15 00:41:49 | [diff] [blame] | 499 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 500 | } |
| 501 | |
| 502 | grit("net_resources") { |
| 503 | source = "base/net_resources.grd" |
[email protected] | 7ae5290 | 2014-08-18 22:36:01 | [diff] [blame] | 504 | use_qualified_include = true |
[email protected] | b89c5384 | 2014-07-23 16:32:32 | [diff] [blame] | 505 | outputs = [ |
| 506 | "grit/net_resources.h", |
| 507 | "net_resources.pak", |
| 508 | "net_resources.rc", |
| 509 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 510 | } |
| 511 | |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 512 | proto_library("net_quic_proto") { |
brettw | 2e7db0a | 2015-04-24 22:59:17 | [diff] [blame] | 513 | visibility = [ "//net" ] # Part of the net component. |
| 514 | |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 515 | sources = [ |
| 516 | "quic/proto/cached_network_parameters.proto", |
| 517 | "quic/proto/source_address_token.proto", |
| 518 | ] |
| 519 | cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:" |
| 520 | cc_include = "net/base/net_export.h" |
| 521 | |
| 522 | defines = [ "NET_IMPLEMENTATION" ] |
| 523 | |
| 524 | extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
| 525 | } |
| 526 | |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 527 | static_library("extras") { |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 528 | sources = gypi_values.net_extras_sources |
| 529 | configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 530 | deps = [ |
| 531 | ":net", |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 532 | "//base", |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 533 | "//sql:sql", |
| 534 | ] |
| 535 | } |
| 536 | |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 537 | static_library("http_server") { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 538 | sources = [ |
| 539 | "server/http_connection.cc", |
| 540 | "server/http_connection.h", |
| 541 | "server/http_server.cc", |
| 542 | "server/http_server.h", |
| 543 | "server/http_server_request_info.cc", |
| 544 | "server/http_server_request_info.h", |
| 545 | "server/http_server_response_info.cc", |
| 546 | "server/http_server_response_info.h", |
| 547 | "server/web_socket.cc", |
| 548 | "server/web_socket.h", |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 549 | "server/web_socket_encoder.cc", |
| 550 | "server/web_socket_encoder.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 551 | ] |
jam | bc6cc8e | 2014-11-14 17:56:29 | [diff] [blame] | 552 | configs += [ |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 553 | "//build/config/compiler:no_size_t_to_int_warning", |
jam | bc6cc8e | 2014-11-14 17:56:29 | [diff] [blame] | 554 | "//build/config/compiler:wexit_time_destructors", |
jam | bc6cc8e | 2014-11-14 17:56:29 | [diff] [blame] | 555 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 556 | deps = [ |
| 557 | ":net", |
| 558 | "//base", |
| 559 | ] |
| 560 | } |
| 561 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 562 | executable("dump_cache") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 563 | testonly = true |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 564 | sources = [ |
| 565 | "tools/dump_cache/cache_dumper.cc", |
| 566 | "tools/dump_cache/cache_dumper.h", |
| 567 | "tools/dump_cache/dump_cache.cc", |
| 568 | "tools/dump_cache/dump_files.cc", |
| 569 | "tools/dump_cache/dump_files.h", |
| 570 | "tools/dump_cache/simple_cache_dumper.cc", |
| 571 | "tools/dump_cache/simple_cache_dumper.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 572 | "tools/dump_cache/url_to_filename_encoder.cc", |
| 573 | "tools/dump_cache/url_to_filename_encoder.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 574 | "tools/dump_cache/url_utilities.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 575 | "tools/dump_cache/url_utilities.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 576 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 577 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 578 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 579 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 580 | |
| 581 | deps = [ |
| 582 | "//base", |
| 583 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 584 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 585 | ] |
| 586 | } |
| 587 | |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 588 | source_set("test_support") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 589 | testonly = true |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 590 | sources = [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 591 | "base/load_timing_info_test_util.cc", |
| 592 | "base/load_timing_info_test_util.h", |
| 593 | "base/mock_file_stream.cc", |
| 594 | "base/mock_file_stream.h", |
| 595 | "base/test_completion_callback.cc", |
| 596 | "base/test_completion_callback.h", |
| 597 | "base/test_data_directory.cc", |
| 598 | "base/test_data_directory.h", |
| 599 | "cert/mock_cert_verifier.cc", |
| 600 | "cert/mock_cert_verifier.h", |
| 601 | "cookies/cookie_monster_store_test.cc", |
| 602 | "cookies/cookie_monster_store_test.h", |
| 603 | "cookies/cookie_store_test_callbacks.cc", |
| 604 | "cookies/cookie_store_test_callbacks.h", |
| 605 | "cookies/cookie_store_test_helpers.cc", |
| 606 | "cookies/cookie_store_test_helpers.h", |
| 607 | "disk_cache/disk_cache_test_base.cc", |
| 608 | "disk_cache/disk_cache_test_base.h", |
| 609 | "disk_cache/disk_cache_test_util.cc", |
| 610 | "disk_cache/disk_cache_test_util.h", |
| 611 | "dns/dns_test_util.cc", |
| 612 | "dns/dns_test_util.h", |
| 613 | "dns/mock_host_resolver.cc", |
| 614 | "dns/mock_host_resolver.h", |
| 615 | "dns/mock_mdns_socket_factory.cc", |
| 616 | "dns/mock_mdns_socket_factory.h", |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 617 | "http/http_transaction_test_util.cc", |
| 618 | "http/http_transaction_test_util.h", |
vishal.b | 62985ca9 | 2015-04-17 08:45:51 | [diff] [blame] | 619 | "log/test_net_log.cc", |
| 620 | "log/test_net_log.h", |
mmenke | 43758e6 | 2015-05-04 21:09:46 | [diff] [blame] | 621 | "log/test_net_log_entry.cc", |
| 622 | "log/test_net_log_entry.h", |
mmenke | 0034c54 | 2015-05-05 22:34:59 | [diff] [blame] | 623 | "log/test_net_log_util.cc", |
mmenke | 43758e6 | 2015-05-04 21:09:46 | [diff] [blame] | 624 | "log/test_net_log_util.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 625 | "proxy/mock_proxy_resolver.cc", |
| 626 | "proxy/mock_proxy_resolver.h", |
| 627 | "proxy/mock_proxy_script_fetcher.cc", |
| 628 | "proxy/mock_proxy_script_fetcher.h", |
| 629 | "proxy/proxy_config_service_common_unittest.cc", |
| 630 | "proxy/proxy_config_service_common_unittest.h", |
| 631 | "socket/socket_test_util.cc", |
| 632 | "socket/socket_test_util.h", |
| 633 | "test/cert_test_util.cc", |
| 634 | "test/cert_test_util.h", |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 635 | "test/cert_test_util_nss.cc", |
nharper | 2e171cf | 2015-06-01 20:29:23 | [diff] [blame^] | 636 | "test/channel_id_test_util.cc", |
| 637 | "test/channel_id_test_util.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 638 | "test/ct_test_util.cc", |
| 639 | "test/ct_test_util.h", |
| 640 | "test/embedded_test_server/embedded_test_server.cc", |
| 641 | "test/embedded_test_server/embedded_test_server.h", |
| 642 | "test/embedded_test_server/http_connection.cc", |
| 643 | "test/embedded_test_server/http_connection.h", |
| 644 | "test/embedded_test_server/http_request.cc", |
| 645 | "test/embedded_test_server/http_request.h", |
| 646 | "test/embedded_test_server/http_response.cc", |
| 647 | "test/embedded_test_server/http_response.h", |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 648 | "test/event_waiter.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 649 | "test/net_test_suite.cc", |
| 650 | "test/net_test_suite.h", |
| 651 | "test/python_utils.cc", |
| 652 | "test/python_utils.h", |
| 653 | "test/spawned_test_server/base_test_server.cc", |
| 654 | "test/spawned_test_server/base_test_server.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 655 | "test/spawned_test_server/local_test_server.cc", |
| 656 | "test/spawned_test_server/local_test_server.h", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 657 | "test/spawned_test_server/local_test_server_posix.cc", |
| 658 | "test/spawned_test_server/local_test_server_win.cc", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 659 | "test/spawned_test_server/remote_test_server.cc", |
| 660 | "test/spawned_test_server/remote_test_server.h", |
| 661 | "test/spawned_test_server/spawned_test_server.h", |
| 662 | "test/spawned_test_server/spawner_communicator.cc", |
| 663 | "test/spawned_test_server/spawner_communicator.h", |
Brett Wilson | 32ce17a | 2014-11-10 17:45:30 | [diff] [blame] | 664 | "test/url_request/url_request_failed_job.cc", |
| 665 | "test/url_request/url_request_failed_job.h", |
mef | 3e826cf | 2014-12-13 18:40:40 | [diff] [blame] | 666 | "test/url_request/url_request_mock_data_job.cc", |
| 667 | "test/url_request/url_request_mock_data_job.h", |
jam | 8e45cd7 | 2015-01-20 16:33:44 | [diff] [blame] | 668 | "test/url_request/url_request_slow_download_job.cc", |
| 669 | "test/url_request/url_request_slow_download_job.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 670 | "url_request/test_url_fetcher_factory.cc", |
| 671 | "url_request/test_url_fetcher_factory.h", |
| 672 | "url_request/url_request_test_util.cc", |
| 673 | "url_request/url_request_test_util.h", |
| 674 | ] |
| 675 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 676 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 677 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 678 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 679 | public_deps = [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 680 | "//base", |
| 681 | "//base/test:test_support", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 682 | "//crypto", |
[email protected] | 59ff2d4 | 2014-04-22 22:25:23 | [diff] [blame] | 683 | "//net", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 684 | "//net/tools/tld_cleanup", |
| 685 | "//testing/gmock", |
| 686 | "//testing/gtest", |
| 687 | "//url", |
| 688 | ] |
| 689 | |
jam | b533b7e | 2015-03-04 17:12:05 | [diff] [blame] | 690 | if (!is_ios) { |
| 691 | public_deps += [ "//third_party/protobuf:py_proto" ] |
| 692 | } |
| 693 | |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 694 | if (!use_openssl && (use_nss_certs || is_ios)) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 695 | public_deps += [ "//crypto:platform" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 696 | } |
| 697 | |
| 698 | if (!is_android) { |
| 699 | sources -= [ |
| 700 | "test/spawned_test_server/remote_test_server.cc", |
| 701 | "test/spawned_test_server/remote_test_server.h", |
| 702 | "test/spawned_test_server/spawner_communicator.cc", |
| 703 | "test/spawned_test_server/spawner_communicator.h", |
| 704 | ] |
| 705 | } |
| 706 | |
| 707 | if (use_v8_in_net) { |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 708 | public_deps += [ ":net_with_v8" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 709 | } |
| 710 | |
| 711 | if (!enable_mdns) { |
| 712 | sources -= [ |
| 713 | "dns/mock_mdns_socket_factory.cc", |
| 714 | "dns/mock_mdns_socket_factory.h", |
| 715 | ] |
| 716 | } |
| 717 | |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 718 | if (!use_nss_certs) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 719 | sources -= [ "test/cert_test_util_nss.cc" ] |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 720 | } |
xunjieli | a688820 | 2015-04-14 21:34:25 | [diff] [blame] | 721 | |
| 722 | if (!disable_file_support) { |
| 723 | sources += [ |
| 724 | "test/url_request/url_request_mock_http_job.cc", |
| 725 | "test/url_request/url_request_mock_http_job.h", |
| 726 | "url_request/test_url_request_interceptor.cc", |
| 727 | "url_request/test_url_request_interceptor.h", |
| 728 | ] |
| 729 | } |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 730 | } |
| 731 | |
[email protected] | ceeaac79 | 2014-06-25 05:14:43 | [diff] [blame] | 732 | source_set("balsa") { |
| 733 | sources = [ |
| 734 | "tools/balsa/balsa_enums.h", |
| 735 | "tools/balsa/balsa_frame.cc", |
| 736 | "tools/balsa/balsa_frame.h", |
| 737 | "tools/balsa/balsa_headers.cc", |
| 738 | "tools/balsa/balsa_headers.h", |
| 739 | "tools/balsa/balsa_headers_token_utils.cc", |
| 740 | "tools/balsa/balsa_headers_token_utils.h", |
| 741 | "tools/balsa/balsa_visitor_interface.h", |
| 742 | "tools/balsa/http_message_constants.cc", |
| 743 | "tools/balsa/http_message_constants.h", |
| 744 | "tools/balsa/noop_balsa_visitor.h", |
| 745 | "tools/balsa/simple_buffer.cc", |
| 746 | "tools/balsa/simple_buffer.h", |
| 747 | "tools/balsa/split.cc", |
| 748 | "tools/balsa/split.h", |
| 749 | "tools/balsa/string_piece_utils.h", |
rtenneti | e0ee6eb | 2015-05-01 00:55:09 | [diff] [blame] | 750 | "tools/quic/spdy_balsa_utils.cc", |
| 751 | "tools/quic/spdy_balsa_utils.h", |
[email protected] | ceeaac79 | 2014-06-25 05:14:43 | [diff] [blame] | 752 | ] |
| 753 | deps = [ |
| 754 | ":net", |
| 755 | "//base", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 756 | "//url", |
[email protected] | ceeaac79 | 2014-06-25 05:14:43 | [diff] [blame] | 757 | ] |
| 758 | } |
| 759 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 760 | if (use_v8_in_net) { |
| 761 | component("net_with_v8") { |
| 762 | sources = [ |
| 763 | "proxy/proxy_resolver_v8.cc", |
| 764 | "proxy/proxy_resolver_v8.h", |
| 765 | "proxy/proxy_resolver_v8_tracing.cc", |
| 766 | "proxy/proxy_resolver_v8_tracing.h", |
| 767 | "proxy/proxy_service_v8.cc", |
| 768 | "proxy/proxy_service_v8.h", |
| 769 | ] |
| 770 | |
| 771 | defines = [ "NET_IMPLEMENTATION" ] |
| 772 | configs += [ |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 773 | "//build/config/compiler:no_size_t_to_int_warning", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 774 | "//build/config/compiler:wexit_time_destructors", |
| 775 | ] |
| 776 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 777 | public_deps = [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 778 | ":net", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 779 | ] |
| 780 | deps = [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 781 | "//base", |
| 782 | "//gin", |
| 783 | "//url", |
| 784 | "//v8", |
| 785 | ] |
| 786 | } |
| 787 | } |
| 788 | |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 789 | if (use_v8_in_net && !is_android) { |
| 790 | source_set("net_browser_services") { |
| 791 | sources = [ |
| 792 | "dns/mojo_host_resolver_impl.cc", |
| 793 | "dns/mojo_host_resolver_impl.h", |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 794 | "proxy/in_process_mojo_proxy_resolver_factory.cc", |
| 795 | "proxy/in_process_mojo_proxy_resolver_factory.h", |
sammc | 1d5df4d | 2015-05-05 05:06:17 | [diff] [blame] | 796 | "proxy/mojo_proxy_resolver_factory.h", |
eroman | dcacef2 | 2015-06-01 19:36:35 | [diff] [blame] | 797 | "proxy/proxy_resolver_factory_mojo.cc", |
| 798 | "proxy/proxy_resolver_factory_mojo.h", |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 799 | "proxy/proxy_service_mojo.cc", |
| 800 | "proxy/proxy_service_mojo.h", |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 801 | ] |
| 802 | |
| 803 | public_deps = [ |
| 804 | ":mojo_type_converters", |
| 805 | ":net", |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 806 | "//base", |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 807 | "//mojo/common", |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 808 | "//net/interfaces", |
| 809 | "//third_party/mojo/src/mojo/public/cpp/bindings", |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 810 | |
| 811 | # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need |
| 812 | # this dependency since in_process_mojo_proxy_resolver_factory creates |
| 813 | # the utility process side Mojo services in the browser process. |
| 814 | # Ultimately, this will go away when we only support out-of-process. |
| 815 | ":net_utility_services", |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 816 | ] |
| 817 | } |
| 818 | |
| 819 | source_set("mojo_type_converters") { |
| 820 | sources = [ |
amistry | 7ec5811 | 2015-02-26 06:03:00 | [diff] [blame] | 821 | "dns/mojo_host_type_converters.cc", |
| 822 | "dns/mojo_host_type_converters.h", |
| 823 | "proxy/mojo_proxy_type_converters.cc", |
| 824 | "proxy/mojo_proxy_type_converters.h", |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 825 | ] |
| 826 | |
| 827 | public_deps = [ |
| 828 | ":net", |
| 829 | "//net/interfaces", |
| 830 | "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 831 | ] |
| 832 | } |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 833 | |
| 834 | source_set("net_utility_services") { |
| 835 | sources = [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 836 | "dns/host_resolver_mojo.cc", |
| 837 | "dns/host_resolver_mojo.h", |
sammc | c804b53 | 2015-03-12 10:02:34 | [diff] [blame] | 838 | "proxy/load_state_change_coalescer.cc", |
| 839 | "proxy/load_state_change_coalescer.h", |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 840 | "proxy/mojo_proxy_resolver_factory_impl.cc", |
| 841 | "proxy/mojo_proxy_resolver_factory_impl.h", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 842 | "proxy/mojo_proxy_resolver_impl.cc", |
| 843 | "proxy/mojo_proxy_resolver_impl.h", |
sammc | 359a8b74 | 2015-05-15 12:20:59 | [diff] [blame] | 844 | "proxy/proxy_resolver_error_observer_mojo.cc", |
| 845 | "proxy/proxy_resolver_error_observer_mojo.h", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 846 | ] |
| 847 | |
rockot | 9509ec8 | 2015-04-14 02:50:56 | [diff] [blame] | 848 | deps = [ |
| 849 | ":net_with_v8", |
| 850 | ] |
| 851 | |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 852 | public_deps = [ |
| 853 | ":mojo_type_converters", |
| 854 | ":net", |
| 855 | "//mojo/common", |
| 856 | "//net/interfaces", |
| 857 | "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 858 | ] |
| 859 | } |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 860 | } |
| 861 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 862 | if (!is_ios && !is_android) { |
| 863 | executable("crash_cache") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 864 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 865 | sources = [ |
| 866 | "tools/crash_cache/crash_cache.cc", |
| 867 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 868 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 869 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 870 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 871 | deps = [ |
| 872 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 873 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 874 | "//base", |
| 875 | ] |
| 876 | } |
| 877 | |
| 878 | executable("crl_set_dump") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 879 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 880 | sources = [ |
| 881 | "tools/crl_set_dump/crl_set_dump.cc", |
| 882 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 883 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 884 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 885 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 886 | deps = [ |
| 887 | ":net", |
| 888 | "//base", |
| 889 | ] |
| 890 | } |
| 891 | |
| 892 | executable("dns_fuzz_stub") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 893 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 894 | sources = [ |
| 895 | "tools/dns_fuzz_stub/dns_fuzz_stub.cc", |
| 896 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 897 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 898 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 899 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 900 | deps = [ |
| 901 | ":net", |
| 902 | "//base", |
| 903 | ] |
| 904 | } |
| 905 | |
| 906 | executable("gdig") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 907 | testonly = true |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 908 | sources = [ |
| 909 | "tools/gdig/file_net_log.cc", |
| 910 | "tools/gdig/gdig.cc", |
| 911 | ] |
| 912 | deps = [ |
| 913 | ":net", |
| 914 | "//base", |
| 915 | ] |
| 916 | } |
| 917 | |
| 918 | executable("get_server_time") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 919 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 920 | sources = [ |
| 921 | "tools/get_server_time/get_server_time.cc", |
| 922 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 923 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 924 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 925 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 926 | deps = [ |
| 927 | ":net", |
| 928 | "//base", |
| 929 | "//base:i18n", |
| 930 | "//url", |
| 931 | ] |
| 932 | } |
| 933 | |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 934 | executable("hpack_example_generator") { |
| 935 | testonly = true |
| 936 | sources = [ |
| 937 | "spdy/fuzzing/hpack_example_generator.cc", |
| 938 | ] |
| 939 | |
| 940 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 941 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 942 | deps = [ |
| 943 | "//base", |
| 944 | ":net", |
| 945 | ] |
| 946 | } |
| 947 | |
| 948 | executable("hpack_fuzz_mutator") { |
| 949 | testonly = true |
| 950 | sources = [ |
| 951 | "spdy/fuzzing/hpack_fuzz_mutator.cc", |
| 952 | ] |
| 953 | |
| 954 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 955 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 956 | deps = [ |
| 957 | "//base", |
| 958 | ":net", |
| 959 | ] |
| 960 | } |
| 961 | |
| 962 | executable("hpack_fuzz_wrapper") { |
| 963 | testonly = true |
| 964 | sources = [ |
| 965 | "spdy/fuzzing/hpack_fuzz_wrapper.cc", |
| 966 | ] |
| 967 | |
| 968 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 969 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 970 | deps = [ |
| 971 | "//base", |
| 972 | ":net", |
| 973 | ] |
| 974 | } |
| 975 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 976 | if (use_v8_in_net) { |
| 977 | executable("net_watcher") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 978 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 979 | sources = [ |
| 980 | "tools/net_watcher/net_watcher.cc", |
| 981 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 982 | deps = [ |
| 983 | ":net", |
| 984 | ":net_with_v8", |
| 985 | "//base", |
| 986 | ] |
| 987 | |
mukai | 77f8210a | 2014-10-07 16:35:14 | [diff] [blame] | 988 | if (is_desktop_linux) { |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 989 | configs += [ |
| 990 | "//build/config/linux:gconf", |
| 991 | "//build/config/linux:glib", |
| 992 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 993 | deps += [ "//build/config/linux:gio" ] |
| 994 | } |
| 995 | } |
| 996 | } |
| 997 | |
| 998 | executable("run_testserver") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 999 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1000 | sources = [ |
| 1001 | "tools/testserver/run_testserver.cc", |
| 1002 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1003 | deps = [ |
| 1004 | ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
| 1005 | # in the GYP build, and can be removed when the bug is fixed. |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 1006 | |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 1007 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1008 | "//base", |
| 1009 | "//base/test:test_support", |
| 1010 | "//testing/gtest", |
| 1011 | ] |
| 1012 | } |
| 1013 | |
| 1014 | executable("stress_cache") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 1015 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1016 | sources = [ |
rvargas | e23fcf65 | 2015-03-04 19:59:22 | [diff] [blame] | 1017 | "tools/stress_cache/stress_cache.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1018 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 1019 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 1020 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1021 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1022 | deps = [ |
| 1023 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 1024 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1025 | "//base", |
| 1026 | ] |
| 1027 | } |
| 1028 | |
| 1029 | executable("tld_cleanup") { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1030 | sources = [ |
| 1031 | "tools/tld_cleanup/tld_cleanup.cc", |
| 1032 | ] |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 1033 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 1034 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1035 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1036 | deps = [ |
| 1037 | "//base", |
| 1038 | "//base:i18n", |
| 1039 | "//net/tools/tld_cleanup", |
| 1040 | ] |
| 1041 | } |
| 1042 | } |
| 1043 | |
rch | 6983a3f | 2015-03-30 03:47:28 | [diff] [blame] | 1044 | if (is_linux) { |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1045 | static_library("epoll_server") { |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1046 | sources = [ |
| 1047 | "tools/epoll_server/epoll_server.cc", |
| 1048 | "tools/epoll_server/epoll_server.h", |
| 1049 | ] |
| 1050 | deps = [ |
| 1051 | ":net", |
| 1052 | "//base", |
| 1053 | ] |
| 1054 | } |
| 1055 | |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1056 | static_library("flip_in_mem_edsm_server_base") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 1057 | testonly = true |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1058 | sources = [ |
| 1059 | "tools/dump_cache/url_to_filename_encoder.cc", |
| 1060 | "tools/dump_cache/url_to_filename_encoder.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1061 | "tools/dump_cache/url_utilities.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1062 | "tools/dump_cache/url_utilities.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1063 | "tools/flip_server/acceptor_thread.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1064 | "tools/flip_server/acceptor_thread.h", |
| 1065 | "tools/flip_server/constants.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1066 | "tools/flip_server/create_listener.cc", |
| 1067 | "tools/flip_server/create_listener.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1068 | "tools/flip_server/flip_config.cc", |
| 1069 | "tools/flip_server/flip_config.h", |
| 1070 | "tools/flip_server/http_interface.cc", |
| 1071 | "tools/flip_server/http_interface.h", |
| 1072 | "tools/flip_server/loadtime_measurement.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1073 | "tools/flip_server/mem_cache.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1074 | "tools/flip_server/mem_cache.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1075 | "tools/flip_server/output_ordering.cc", |
| 1076 | "tools/flip_server/output_ordering.h", |
| 1077 | "tools/flip_server/ring_buffer.cc", |
| 1078 | "tools/flip_server/ring_buffer.h", |
| 1079 | "tools/flip_server/sm_connection.cc", |
| 1080 | "tools/flip_server/sm_connection.h", |
| 1081 | "tools/flip_server/sm_interface.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1082 | "tools/flip_server/spdy_interface.cc", |
| 1083 | "tools/flip_server/spdy_interface.h", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1084 | "tools/flip_server/spdy_ssl.cc", |
| 1085 | "tools/flip_server/spdy_ssl.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1086 | "tools/flip_server/spdy_util.cc", |
| 1087 | "tools/flip_server/spdy_util.h", |
| 1088 | "tools/flip_server/streamer_interface.cc", |
| 1089 | "tools/flip_server/streamer_interface.h", |
| 1090 | ] |
| 1091 | deps = [ |
| 1092 | ":balsa", |
| 1093 | ":epoll_server", |
| 1094 | ":net", |
| 1095 | "//base", |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1096 | "//third_party/boringssl", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1097 | ] |
| 1098 | } |
| 1099 | |
| 1100 | executable("flip_in_mem_edsm_server_unittests") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 1101 | testonly = true |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1102 | sources = [ |
| 1103 | "tools/flip_server/flip_test_utils.cc", |
| 1104 | "tools/flip_server/flip_test_utils.h", |
| 1105 | "tools/flip_server/http_interface_test.cc", |
| 1106 | "tools/flip_server/mem_cache_test.cc", |
| 1107 | "tools/flip_server/run_all_tests.cc", |
| 1108 | "tools/flip_server/spdy_interface_test.cc", |
| 1109 | ] |
| 1110 | deps = [ |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 1111 | ":balsa", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1112 | ":flip_in_mem_edsm_server_base", |
| 1113 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 1114 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1115 | "//testing/gtest", |
| 1116 | "//testing/gmock", |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1117 | "//third_party/boringssl", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1118 | ] |
| 1119 | } |
| 1120 | |
| 1121 | executable("flip_in_mem_edsm_server") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 1122 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1123 | sources = [ |
| 1124 | "tools/flip_server/flip_in_mem_edsm_server.cc", |
| 1125 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1126 | deps = [ |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 1127 | ":balsa", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1128 | ":flip_in_mem_edsm_server_base", |
| 1129 | ":net", |
| 1130 | "//base", |
| 1131 | ] |
| 1132 | } |
| 1133 | |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1134 | source_set("epoll_quic_tools") { |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1135 | sources = [ |
| 1136 | "tools/quic/quic_client.cc", |
| 1137 | "tools/quic/quic_client.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1138 | "tools/quic/quic_default_packet_writer.cc", |
| 1139 | "tools/quic/quic_default_packet_writer.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1140 | "tools/quic/quic_epoll_clock.cc", |
| 1141 | "tools/quic/quic_epoll_clock.h", |
| 1142 | "tools/quic/quic_epoll_connection_helper.cc", |
| 1143 | "tools/quic/quic_epoll_connection_helper.h", |
rtenneti | fb3fa6c | 2015-03-16 23:04:55 | [diff] [blame] | 1144 | "tools/quic/quic_packet_reader.cc", |
| 1145 | "tools/quic/quic_packet_reader.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1146 | "tools/quic/quic_packet_writer_wrapper.cc", |
| 1147 | "tools/quic/quic_packet_writer_wrapper.h", |
| 1148 | "tools/quic/quic_server.cc", |
| 1149 | "tools/quic/quic_server.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1150 | "tools/quic/quic_socket_utils.cc", |
| 1151 | "tools/quic/quic_socket_utils.h", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1152 | ] |
| 1153 | deps = [ |
| 1154 | ":balsa", |
| 1155 | ":epoll_server", |
| 1156 | ":net", |
| 1157 | "//base", |
| 1158 | "//base/third_party/dynamic_annotations", |
| 1159 | "//crypto", |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1160 | "//third_party/boringssl", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1161 | "//url", |
| 1162 | ] |
| 1163 | } |
| 1164 | |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1165 | executable("epoll_quic_client") { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1166 | sources = [ |
| 1167 | "tools/quic/quic_client_bin.cc", |
| 1168 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1169 | deps = [ |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 1170 | ":balsa", |
| 1171 | ":epoll_server", |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1172 | ":epoll_quic_tools", |
| 1173 | ":net", |
| 1174 | ":simple_quic_tools", |
| 1175 | "//base", |
| 1176 | "//third_party/boringssl", |
| 1177 | ] |
| 1178 | } |
| 1179 | |
| 1180 | executable("epoll_quic_server") { |
| 1181 | sources = [ |
| 1182 | "tools/quic/quic_server_bin.cc", |
| 1183 | ] |
| 1184 | deps = [ |
| 1185 | ":balsa", |
| 1186 | ":epoll_server", |
| 1187 | ":epoll_quic_tools", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1188 | ":net", |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 1189 | ":simple_quic_tools", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1190 | "//base", |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1191 | "//third_party/boringssl", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1192 | ] |
| 1193 | } |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1194 | } |
| 1195 | |
[email protected] | ef0eb44 | 2014-05-15 09:32:18 | [diff] [blame] | 1196 | if (is_android) { |
| 1197 | generate_jni("net_jni_headers") { |
| 1198 | sources = [ |
| 1199 | "android/java/src/org/chromium/net/AndroidCertVerifyResult.java", |
| 1200 | "android/java/src/org/chromium/net/AndroidKeyStore.java", |
| 1201 | "android/java/src/org/chromium/net/AndroidNetworkLibrary.java", |
| 1202 | "android/java/src/org/chromium/net/AndroidPrivateKey.java", |
| 1203 | "android/java/src/org/chromium/net/GURLUtils.java", |
| 1204 | "android/java/src/org/chromium/net/NetworkChangeNotifier.java", |
| 1205 | "android/java/src/org/chromium/net/ProxyChangeListener.java", |
| 1206 | "android/java/src/org/chromium/net/X509Util.java", |
| 1207 | ] |
| 1208 | jni_package = "net" |
| 1209 | } |
cjhopman | dad5f427 | 2014-09-05 01:00:55 | [diff] [blame] | 1210 | generate_jni("net_test_jni_headers") { |
| 1211 | sources = [ |
| 1212 | "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", |
| 1213 | ] |
| 1214 | jni_package = "net" |
| 1215 | } |
[email protected] | ef0eb44 | 2014-05-15 09:32:18 | [diff] [blame] | 1216 | } |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1217 | |
| 1218 | if (is_android || is_linux) { |
| 1219 | executable("disk_cache_memory_test") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 1220 | testonly = true |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1221 | sources = [ |
| 1222 | "tools/disk_cache_memory_test/disk_cache_memory_test.cc", |
| 1223 | ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1224 | deps = [ |
| 1225 | ":net", |
| 1226 | "//base", |
| 1227 | ] |
| 1228 | } |
| 1229 | } |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1230 | |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 1231 | source_set("simple_quic_tools") { |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1232 | sources = [ |
rch | ed113b2 | 2015-03-26 04:54:05 | [diff] [blame] | 1233 | "tools/quic/quic_client_session.cc", |
| 1234 | "tools/quic/quic_client_session.h", |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 1235 | "tools/quic/quic_dispatcher.cc", |
| 1236 | "tools/quic/quic_dispatcher.h", |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 1237 | "tools/quic/quic_in_memory_cache.cc", |
| 1238 | "tools/quic/quic_in_memory_cache.h", |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 1239 | "tools/quic/quic_per_connection_packet_writer.cc", |
| 1240 | "tools/quic/quic_per_connection_packet_writer.h", |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 1241 | "tools/quic/quic_server_session.cc", |
| 1242 | "tools/quic/quic_server_session.h", |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1243 | "tools/quic/quic_simple_client.cc", |
| 1244 | "tools/quic/quic_simple_client.h", |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1245 | "tools/quic/quic_simple_per_connection_packet_writer.cc", |
| 1246 | "tools/quic/quic_simple_per_connection_packet_writer.h", |
| 1247 | "tools/quic/quic_simple_server.cc", |
| 1248 | "tools/quic/quic_simple_server.h", |
| 1249 | "tools/quic/quic_simple_server_packet_writer.cc", |
| 1250 | "tools/quic/quic_simple_server_packet_writer.h", |
rch | ed113b2 | 2015-03-26 04:54:05 | [diff] [blame] | 1251 | "tools/quic/quic_spdy_client_stream.cc", |
| 1252 | "tools/quic/quic_spdy_client_stream.h", |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 1253 | "tools/quic/quic_spdy_server_stream.cc", |
| 1254 | "tools/quic/quic_spdy_server_stream.h", |
| 1255 | "tools/quic/quic_time_wait_list_manager.cc", |
| 1256 | "tools/quic/quic_time_wait_list_manager.h", |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 1257 | "tools/quic/synchronous_host_resolver.cc", |
| 1258 | "tools/quic/synchronous_host_resolver.h", |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1259 | ] |
| 1260 | deps = [ |
| 1261 | ":net", |
| 1262 | "//base", |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 1263 | "//base/third_party/dynamic_annotations", |
| 1264 | "//url", |
| 1265 | ] |
| 1266 | } |
| 1267 | |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1268 | executable("quic_client") { |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 1269 | sources = [ |
| 1270 | "tools/quic/quic_simple_client_bin.cc", |
| 1271 | ] |
| 1272 | deps = [ |
| 1273 | ":net", |
| 1274 | ":simple_quic_tools", |
| 1275 | "//base", |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1276 | "//url", |
| 1277 | ] |
| 1278 | } |
| 1279 | |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1280 | executable("quic_server") { |
| 1281 | sources = [ |
| 1282 | "tools/quic/quic_simple_server_bin.cc", |
| 1283 | ] |
| 1284 | deps = [ |
| 1285 | ":net", |
| 1286 | ":simple_quic_tools", |
| 1287 | "//base", |
| 1288 | "//third_party/boringssl", |
brettw | 2e7db0a | 2015-04-24 22:59:17 | [diff] [blame] | 1289 | "//third_party/protobuf:protobuf_lite", |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1290 | ] |
| 1291 | } |
| 1292 | |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1293 | # TODO(GYP) make this compile on Android, we need some native test deps done. |
dpranke | cf8465db7 | 2014-11-10 23:51:22 | [diff] [blame] | 1294 | # TODO(GYP) Also doesn't work on Mac, need to figure out why not. |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 1295 | if (!is_android && !is_mac) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1296 | test("net_unittests") { |
| 1297 | sources = gypi_values.net_test_sources |
erikchen | 006a7cf | 2014-12-03 22:27:11 | [diff] [blame] | 1298 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 1299 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1300 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1301 | defines = [] |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1302 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1303 | deps = [ |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 1304 | ":balsa", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1305 | ":extras", |
| 1306 | ":http_server", |
| 1307 | ":net", |
rch | a6d42cd | 2015-03-22 05:13:58 | [diff] [blame] | 1308 | ":simple_quic_tools", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1309 | ":test_support", |
| 1310 | "//base", |
| 1311 | "//base:i18n", |
| 1312 | "//base:prefs_test_support", |
| 1313 | "//base/allocator", |
| 1314 | "//base/third_party/dynamic_annotations", |
| 1315 | "//crypto", |
| 1316 | "//crypto:platform", |
| 1317 | "//crypto:test_support", |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 1318 | "//gin", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1319 | "//net/base/registry_controlled_domains", |
brettw | bc44c0a9 | 2015-02-20 22:30:39 | [diff] [blame] | 1320 | "//sql", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1321 | "//testing/gmock", |
| 1322 | "//testing/gtest", |
| 1323 | "//third_party/zlib", |
| 1324 | "//url", |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1325 | ] |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1326 | |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 1327 | if (is_desktop_linux) { |
| 1328 | deps += [ ":epoll_quic_tools" ] |
| 1329 | } |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1330 | if (is_linux) { |
| 1331 | sources += gypi_values.net_linux_test_sources |
| 1332 | deps += [ |
| 1333 | ":balsa", |
| 1334 | ":epoll_server", |
| 1335 | ":flip_in_mem_edsm_server_base", |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1336 | ":epoll_quic_tools", |
[email protected] | b2f44d1 | 2014-06-10 17:48:03 | [diff] [blame] | 1337 | ] |
| 1338 | } |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1339 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1340 | if (is_mac || is_ios) { |
| 1341 | sources += gypi_values.net_base_test_mac_ios_sources |
| 1342 | } |
| 1343 | |
brettw | c859f18f | 2014-09-18 23:34:50 | [diff] [blame] | 1344 | if (is_chromeos) { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1345 | sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] |
| 1346 | } |
| 1347 | |
| 1348 | if (is_android) { |
brettw | c859f18f | 2014-09-18 23:34:50 | [diff] [blame] | 1349 | sources -= [ |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1350 | # See bug http://crbug.com/344533. |
| 1351 | "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1352 | |
| 1353 | # No res_ninit() et al on Android, so this doesn't make a lot of |
| 1354 | # sense. |
| 1355 | "dns/dns_config_service_posix_unittest.cc", |
| 1356 | ] |
cjhopman | d4910ab | 2015-05-12 22:23:49 | [diff] [blame] | 1357 | deps += [ ":net_test_jni_headers" ] |
brettw | c859f18f | 2014-09-18 23:34:50 | [diff] [blame] | 1358 | } |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1359 | |
rmcilroy | 5837d33 | 2014-12-17 14:30:58 | [diff] [blame] | 1360 | if (v8_use_external_startup_data) { |
| 1361 | deps += [ "//gin" ] |
| 1362 | } |
| 1363 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1364 | if (!use_nss_certs) { |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 1365 | sources -= [ |
| 1366 | "cert/nss_cert_database_unittest.cc", |
| 1367 | "ssl/client_cert_store_nss_unittest.cc", |
| 1368 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1369 | if (is_chromeos) { # Already removed for all non-ChromeOS builds. |
davidben | 2bcbc6b | 2015-04-22 02:36:41 | [diff] [blame] | 1370 | sources -= [ |
| 1371 | "cert/nss_cert_database_chromeos_unittest.cc", |
| 1372 | "cert/nss_profile_filter_chromeos_unittest.cc", |
| 1373 | "ssl/client_cert_store_chromeos_unittest.cc", |
| 1374 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1375 | } |
| 1376 | } |
| 1377 | |
| 1378 | if (use_openssl) { |
| 1379 | # When building for OpenSSL, we need to exclude NSS specific tests |
| 1380 | # or functionality not supported by OpenSSL yet. |
| 1381 | # TODO(bulach): Add equivalent tests when the underlying |
| 1382 | # functionality is ported to OpenSSL. |
| 1383 | sources -= [ |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1384 | "cert/x509_util_nss_unittest.cc", |
| 1385 | "quic/test_tools/crypto_test_utils_nss.cc", |
| 1386 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1387 | } else { |
| 1388 | sources -= [ |
| 1389 | "cert/x509_util_openssl_unittest.cc", |
| 1390 | "quic/test_tools/crypto_test_utils_openssl.cc", |
| 1391 | "socket/ssl_client_socket_openssl_unittest.cc", |
davidben | dafe4e5 | 2015-04-08 22:53:52 | [diff] [blame] | 1392 | "ssl/ssl_client_session_cache_openssl_unittest.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1393 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1394 | } |
| 1395 | |
| 1396 | if (use_kerberos) { |
| 1397 | defines += [ "USE_KERBEROS" ] |
| 1398 | } else { |
| 1399 | sources -= [ |
| 1400 | "http/http_auth_gssapi_posix_unittest.cc", |
| 1401 | "http/http_auth_handler_negotiate_unittest.cc", |
| 1402 | "http/mock_gssapi_library_posix.cc", |
| 1403 | "http/mock_gssapi_library_posix.h", |
| 1404 | ] |
| 1405 | } |
| 1406 | |
| 1407 | if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { |
| 1408 | # Only include this test when on Posix and using NSS for |
| 1409 | # cert verification or on iOS (which also uses NSS for certs). |
eroman | ed744f3 | 2015-04-09 06:35:49 | [diff] [blame] | 1410 | sources -= [ "cert_net/nss_ocsp_unittest.cc" ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1411 | } |
| 1412 | |
| 1413 | if (!use_openssl_certs) { |
| 1414 | sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
| 1415 | } |
| 1416 | |
| 1417 | if (!enable_websockets) { |
| 1418 | sources -= [ |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 1419 | "server/http_connection_unittest.cc", |
| 1420 | "server/http_server_response_info_unittest.cc", |
| 1421 | "server/http_server_unittest.cc", |
| 1422 | "server/web_socket_encoder_unittest.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1423 | "websockets/websocket_basic_stream_test.cc", |
| 1424 | "websockets/websocket_channel_test.cc", |
| 1425 | "websockets/websocket_deflate_predictor_impl_test.cc", |
| 1426 | "websockets/websocket_deflate_stream_test.cc", |
| 1427 | "websockets/websocket_deflater_test.cc", |
ricea | 433bdab | 2015-01-26 07:25:37 | [diff] [blame] | 1428 | "websockets/websocket_end_to_end_test.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1429 | "websockets/websocket_errors_test.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1430 | "websockets/websocket_extension_parser_test.cc", |
| 1431 | "websockets/websocket_frame_parser_test.cc", |
| 1432 | "websockets/websocket_frame_test.cc", |
| 1433 | "websockets/websocket_handshake_challenge_test.cc", |
| 1434 | "websockets/websocket_handshake_stream_create_helper_test.cc", |
| 1435 | "websockets/websocket_inflater_test.cc", |
| 1436 | "websockets/websocket_stream_test.cc", |
| 1437 | "websockets/websocket_test_util.cc", |
| 1438 | "websockets/websocket_test_util.h", |
| 1439 | ] |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 1440 | deps -= [ ":http_server" ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1441 | } |
| 1442 | |
| 1443 | if (disable_file_support) { |
| 1444 | sources -= [ |
| 1445 | "base/directory_lister_unittest.cc", |
| 1446 | "url_request/url_request_file_job_unittest.cc", |
| 1447 | ] |
| 1448 | } |
| 1449 | |
| 1450 | if (disable_ftp_support) { |
| 1451 | sources -= [ |
| 1452 | "ftp/ftp_auth_cache_unittest.cc", |
| 1453 | "ftp/ftp_ctrl_response_buffer_unittest.cc", |
| 1454 | "ftp/ftp_directory_listing_parser_ls_unittest.cc", |
| 1455 | "ftp/ftp_directory_listing_parser_netware_unittest.cc", |
| 1456 | "ftp/ftp_directory_listing_parser_os2_unittest.cc", |
| 1457 | "ftp/ftp_directory_listing_parser_unittest.cc", |
| 1458 | "ftp/ftp_directory_listing_parser_unittest.h", |
| 1459 | "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 1460 | "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 1461 | "ftp/ftp_network_transaction_unittest.cc", |
| 1462 | "ftp/ftp_util_unittest.cc", |
| 1463 | "url_request/url_request_ftp_job_unittest.cc", |
| 1464 | ] |
| 1465 | } |
| 1466 | |
| 1467 | if (!enable_built_in_dns) { |
| 1468 | sources -= [ |
| 1469 | "dns/address_sorter_posix_unittest.cc", |
| 1470 | "dns/address_sorter_unittest.cc", |
| 1471 | ] |
| 1472 | } |
| 1473 | |
| 1474 | # Always need use_v8_in_net to be 1 to run on Android, so just remove |
| 1475 | # net_unittest's dependency on v8 when using icu alternatives instead of |
| 1476 | # setting use_v8_in_net to 0. |
| 1477 | if (use_v8_in_net && !use_icu_alternatives_on_android) { |
| 1478 | deps += [ ":net_with_v8" ] |
| 1479 | } else { |
| 1480 | sources -= [ |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1481 | "proxy/proxy_resolver_v8_tracing_unittest.cc", |
satorux | 933fc7a | 2015-02-13 07:09:10 | [diff] [blame] | 1482 | "proxy/proxy_resolver_v8_unittest.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1483 | ] |
| 1484 | } |
| 1485 | |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1486 | if (use_v8_in_net && !is_android) { |
| 1487 | deps += [ |
| 1488 | ":net_browser_services", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1489 | ":net_utility_services", |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1490 | "//mojo/environment:chromium", |
| 1491 | "//third_party/mojo/src/mojo/edk/system", |
| 1492 | ] |
| 1493 | } else { |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1494 | sources -= [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 1495 | "dns/host_resolver_mojo_unittest.cc", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1496 | "dns/mojo_host_resolver_impl_unittest.cc", |
sammc | c804b53 | 2015-03-12 10:02:34 | [diff] [blame] | 1497 | "proxy/load_state_change_coalescer_unittest.cc", |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 1498 | "proxy/mojo_proxy_resolver_factory_impl_unittest.cc", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1499 | "proxy/mojo_proxy_resolver_impl_unittest.cc", |
sammc | 359a8b74 | 2015-05-15 12:20:59 | [diff] [blame] | 1500 | "proxy/proxy_resolver_error_observer_mojo_unittest.cc", |
eroman | dcacef2 | 2015-06-01 19:36:35 | [diff] [blame] | 1501 | "proxy/proxy_resolver_factory_mojo_unittest.cc", |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 1502 | "proxy/proxy_service_mojo_unittest.cc", |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1503 | ] |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1504 | } |
| 1505 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1506 | if (!enable_mdns) { |
| 1507 | sources -= [ |
| 1508 | "dns/mdns_cache_unittest.cc", |
| 1509 | "dns/mdns_client_unittest.cc", |
| 1510 | "dns/record_parsed_unittest.cc", |
| 1511 | "dns/record_rdata_unittest.cc", |
| 1512 | ] |
| 1513 | } |
| 1514 | |
| 1515 | if (is_ios) { |
| 1516 | # TODO(GYP) |
| 1517 | # 'actions': [ |
| 1518 | # { |
| 1519 | # 'action_name': 'copy_test_data', |
| 1520 | # 'variables': { |
| 1521 | # 'test_data_files': [ |
| 1522 | # 'data/ssl/certificates/', |
| 1523 | # 'data/test.html', |
| 1524 | # 'data/url_request_unittest/', |
| 1525 | # ], |
| 1526 | # 'test_data_prefix': 'net', |
| 1527 | # }, |
| 1528 | # 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 1529 | # }, |
| 1530 | # ], |
| 1531 | sources -= [ |
| 1532 | # TODO(droger): The following tests are disabled because the |
| 1533 | # implementation is missing or incomplete. |
| 1534 | # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 1535 | "base/keygen_handler_unittest.cc", |
| 1536 | "disk_cache/backend_unittest.cc", |
| 1537 | "disk_cache/blockfile/block_files_unittest.cc", |
| 1538 | |
| 1539 | # Need to read input data files. |
| 1540 | "filter/gzip_filter_unittest.cc", |
| 1541 | "socket/ssl_server_socket_unittest.cc", |
| 1542 | "spdy/fuzzing/hpack_fuzz_util_test.cc", |
| 1543 | |
| 1544 | # Need TestServer. |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 1545 | "cert_net/cert_net_fetcher_impl_unittest.cc", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 1546 | "proxy/proxy_script_fetcher_impl_unittest.cc", |
| 1547 | "socket/ssl_client_socket_unittest.cc", |
| 1548 | "url_request/url_fetcher_impl_unittest.cc", |
| 1549 | "url_request/url_request_context_builder_unittest.cc", |
| 1550 | |
| 1551 | # Needs GetAppOutput(). |
| 1552 | "test/python_utils_unittest.cc", |
| 1553 | |
| 1554 | # The following tests are disabled because they don't apply to |
| 1555 | # iOS. |
| 1556 | # OS is not "linux" or "freebsd" or "openbsd". |
| 1557 | "socket/unix_domain_client_socket_posix_unittest.cc", |
| 1558 | "socket/unix_domain_listen_socket_posix_unittest.cc", |
| 1559 | "socket/unix_domain_server_socket_posix_unittest.cc", |
| 1560 | |
| 1561 | # See bug http://crbug.com/344533. |
| 1562 | "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1563 | ] |
| 1564 | } |
| 1565 | |
| 1566 | if (is_android) { |
| 1567 | sources -= [ "dns/dns_config_service_posix_unittest.cc" ] |
| 1568 | |
| 1569 | # TODO(GYP) |
| 1570 | # # TODO(mmenke): This depends on test_support_base, which depends on |
| 1571 | # # icu. Figure out a way to remove that dependency. |
| 1572 | # 'dependencies': [ |
| 1573 | # '../testing/android/native_test.gyp:native_test_native_code', |
| 1574 | # ] |
| 1575 | |
| 1576 | set_sources_assignment_filter([]) |
| 1577 | sources += [ "base/address_tracker_linux_unittest.cc" ] |
| 1578 | set_sources_assignment_filter(sources_assignment_filter) |
| 1579 | } |
| 1580 | |
| 1581 | if (use_icu_alternatives_on_android) { |
| 1582 | sources -= [ |
| 1583 | "base/filename_util_unittest.cc", |
| 1584 | "base/net_util_icu_unittest.cc", |
| 1585 | ] |
| 1586 | deps -= [ "//base:i18n" ] |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1587 | } |
| 1588 | } |
dougk | e0f2b8f | 2015-03-16 22:40:33 | [diff] [blame] | 1589 | } # !is_android && !is_win && !is_mac |
[email protected] | 8a3f824 | 2014-06-05 18:05:12 | [diff] [blame] | 1590 | |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 1591 | executable("net_perftests") { |
| 1592 | testonly = true |
| 1593 | sources = [ |
ricea | 10eb9f5e | 2015-05-19 18:51:57 | [diff] [blame] | 1594 | "base/mime_sniffer_perftest.cc", |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 1595 | "cookies/cookie_monster_perftest.cc", |
| 1596 | "disk_cache/blockfile/disk_cache_perftest.cc", |
rohitrao | 1860223c | 2015-05-16 01:07:14 | [diff] [blame] | 1597 | "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc", |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 1598 | "proxy/proxy_resolver_perftest.cc", |
| 1599 | "udp/udp_socket_perftest.cc", |
| 1600 | ] |
| 1601 | |
| 1602 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1603 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1604 | deps = [ |
| 1605 | "//base", |
| 1606 | "//base:i18n", |
| 1607 | "//base/test:test_support_perf", |
| 1608 | "//testing/gtest", |
| 1609 | "//url", |
rohitrao | 1860223c | 2015-05-16 01:07:14 | [diff] [blame] | 1610 | ":extras", |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 1611 | ":net", |
| 1612 | ":test_support", |
| 1613 | ] |
| 1614 | |
| 1615 | if (enable_websockets) { |
| 1616 | sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1617 | } |
| 1618 | |
| 1619 | if (use_v8_in_net) { |
| 1620 | deps += [ ":net_with_v8" ] |
| 1621 | } else { |
| 1622 | sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1623 | } |
| 1624 | |
| 1625 | if (is_win && icu_use_data_file) { |
| 1626 | # This is needed to trigger the dll copy step on windows. |
| 1627 | # TODO(mark): Specifying this here shouldn't be necessary. |
| 1628 | deps += [ "//third_party/icu:icudata" ] |
| 1629 | } |
| 1630 | } |