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