| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//url/config.gni") | 8 import("//url/config.gni") |
| 9 | 9 |
| 10 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. | 10 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. |
| 11 # Currently, that file can't be imported multiple times. Make this always | 11 # Currently, that file can't be imported multiple times. Make this always |
| 12 # imported when http://crbug.com/393704 is fixed. | 12 # imported when http://crbug.com/393704 is fixed. |
| 13 if (!is_android) { | 13 if (!is_android) { |
| 14 import("//tools/grit/grit_rule.gni") | 14 import("//tools/grit/grit_rule.gni") |
| 15 } | 15 } |
| 16 | 16 |
| 17 if (is_android) { | 17 if (is_android) { |
| 18 import("//build/config/android/config.gni") | 18 import("//build/config/android/config.gni") |
| 19 import("//build/config/android/rules.gni") | 19 import("//build/config/android/rules.gni") |
| 20 } else if (is_mac) { | 20 } else if (is_mac) { |
| 21 import("//build/config/mac/mac_sdk.gni") | 21 import("//build/config/mac/mac_sdk.gni") |
| 22 } | 22 } |
| 23 | 23 |
| 24 # The list of net files is kept in net.gypi. Read it. | 24 # The list of net files is kept in net.gypi. Read it. |
| 25 gypi_values = exec_script( | 25 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 26 "//build/gypi_to_gn.py", | 26 [ rebase_path("net.gypi") ], |
| 27 [ rebase_path("net.gypi") ], | 27 "scope", |
| 28 "scope", | 28 [ "net.gypi" ]) |
| 29 [ "net.gypi" ]) | |
| 30 | 29 |
| 31 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs | 30 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs |
| 32 # configuration (krb5.conf and so on). | 31 # configuration (krb5.conf and so on). |
| 33 use_kerberos = !is_chromeos && !is_android && !is_ios | 32 use_kerberos = !is_chromeos && !is_android && !is_ios |
| 34 | 33 |
| 35 # The way the cache uses mmap() is inefficient on some Android devices. If | 34 # The way the cache uses mmap() is inefficient on some Android devices. If |
| 36 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 35 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 37 # pretty confident that mmap-ing the index would not hurt any existing x86 | 36 # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 38 # android devices, but we cannot be so sure about the variety of ARM devices. | 37 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 39 # So enable it for x86 only for now. | 38 # So enable it for x86 only for now. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 63 # Disables Windows warning about size to int truncations. | 62 # Disables Windows warning about size to int truncations. |
| 64 # TODO(jschuh): crbug.com/167187 fix this and delete this config. | 63 # TODO(jschuh): crbug.com/167187 fix this and delete this config. |
| 65 config("net_win_size_truncation") { | 64 config("net_win_size_truncation") { |
| 66 if (is_win) { | 65 if (is_win) { |
| 67 cflags = [ "/wd4267" ] | 66 cflags = [ "/wd4267" ] |
| 68 } | 67 } |
| 69 } | 68 } |
| 70 | 69 |
| 71 component("net") { | 70 component("net") { |
| 72 sources = | 71 sources = |
| 73 gypi_values.net_nacl_common_sources + | 72 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources |
| 74 gypi_values.net_non_nacl_sources | |
| 75 | 73 |
| 76 cflags = [] | 74 cflags = [] |
| 77 defines = [ | 75 defines = [ |
| 78 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to | 76 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to |
| 79 # 0) which implies that we run pkg_config on kerberos and link to that | 77 # 0) which implies that we run pkg_config on kerberos and link to that |
| 80 # rather than setting this define which will dynamically open it. That | 78 # rather than setting this define which will dynamically open it. That |
| 81 # doesn't seem to be set in the regular builds, so we're skipping this | 79 # doesn't seem to be set in the regular builds, so we're skipping this |
| 82 # capability here. | 80 # capability here. |
| 83 "DLOPEN_KERBEROS", | 81 "DLOPEN_KERBEROS", |
| 84 "NET_IMPLEMENTATION" | 82 "NET_IMPLEMENTATION", |
| 85 ] | 83 ] |
| 86 configs += [ ":net_win_size_truncation" ] | 84 configs += [ ":net_win_size_truncation" ] |
| 87 public_configs = [ ":net_config" ] | 85 public_configs = [ ":net_config" ] |
| 88 include_dirs = [] | 86 include_dirs = [] |
| 89 | 87 |
| 90 public_deps = [ | 88 public_deps = [ |
| 91 "//crypto", | 89 "//crypto", |
| 92 "//crypto:platform" | 90 "//crypto:platform", |
| 93 ] | 91 ] |
| 94 deps = [ | 92 deps = [ |
| 95 ":net_resources", | 93 ":net_resources", |
| 96 "//base", | 94 "//base", |
| 97 "//base:i18n", | 95 "//base:i18n", |
| 98 "//base:prefs", | 96 "//base:prefs", |
| 99 "//base/third_party/dynamic_annotations", | 97 "//base/third_party/dynamic_annotations", |
| 100 "//net/base/registry_controlled_domains", | 98 "//net/base/registry_controlled_domains", |
| 101 "//sdch", | 99 "//sdch", |
| 102 "//third_party/icu", | 100 "//third_party/icu", |
| 103 "//third_party/zlib", | 101 "//third_party/zlib", |
| 104 "//url", | 102 "//url", |
| 105 ] | 103 ] |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 ] | 241 ] |
| 244 } | 242 } |
| 245 if (is_ios) { | 243 if (is_ios) { |
| 246 # Always removed for !ios below. | 244 # Always removed for !ios below. |
| 247 sources -= [ | 245 sources -= [ |
| 248 "cert/cert_verify_proc_nss.cc", | 246 "cert/cert_verify_proc_nss.cc", |
| 249 "cert/cert_verify_proc_nss.h", | 247 "cert/cert_verify_proc_nss.h", |
| 250 ] | 248 ] |
| 251 } | 249 } |
| 252 if (is_win) { | 250 if (is_win) { |
| 253 sources -= [ | 251 sources -= [ "cert/cert/sha256_legacy_support_nss_win.cc" ] |
| 254 "cert/cert/sha256_legacy_support_nss_win.cc", | |
| 255 ] | |
| 256 } | 252 } |
| 257 } else { | 253 } else { |
| 258 sources -= [ | 254 sources -= [ |
| 259 "base/crypto_module_openssl.cc", | 255 "base/crypto_module_openssl.cc", |
| 260 "cert/ct_log_verifier_openssl.cc", | 256 "cert/ct_log_verifier_openssl.cc", |
| 261 "cert/ct_objects_extractor_openssl.cc", | 257 "cert/ct_objects_extractor_openssl.cc", |
| 262 "cert/jwk_serializer_openssl.cc", | 258 "cert/jwk_serializer_openssl.cc", |
| 263 "cert/x509_util_openssl.cc", | 259 "cert/x509_util_openssl.cc", |
| 264 "cert/x509_util_openssl.h", | 260 "cert/x509_util_openssl.h", |
| 265 "quic/crypto/aead_base_decrypter_openssl.cc", | 261 "quic/crypto/aead_base_decrypter_openssl.cc", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 276 "socket/ssl_client_socket_openssl.h", | 272 "socket/ssl_client_socket_openssl.h", |
| 277 "socket/ssl_server_socket_openssl.cc", | 273 "socket/ssl_server_socket_openssl.cc", |
| 278 "socket/ssl_server_socket_openssl.h", | 274 "socket/ssl_server_socket_openssl.h", |
| 279 "socket/ssl_session_cache_openssl.cc", | 275 "socket/ssl_session_cache_openssl.cc", |
| 280 "socket/ssl_session_cache_openssl.h", | 276 "socket/ssl_session_cache_openssl.h", |
| 281 "ssl/openssl_platform_key.h", | 277 "ssl/openssl_platform_key.h", |
| 282 "ssl/openssl_ssl_util.cc", | 278 "ssl/openssl_ssl_util.cc", |
| 283 "ssl/openssl_ssl_util.h", | 279 "ssl/openssl_ssl_util.h", |
| 284 ] | 280 ] |
| 285 if (is_mac) { | 281 if (is_mac) { |
| 286 sources -= [ | 282 sources -= [ "ssl/openssl_platform_key_mac.cc" ] |
| 287 "ssl/openssl_platform_key_mac.cc", | |
| 288 ] | |
| 289 } | 283 } |
| 290 if (is_win) { | 284 if (is_win) { |
| 291 sources -= [ | 285 sources -= [ |
| 292 "cert/sha256_legacy_support_openssl_win.cc", | 286 "cert/sha256_legacy_support_openssl_win.cc", |
| 293 "ssl/openssl_platform_key_win.cc", | 287 "ssl/openssl_platform_key_win.cc", |
| 294 ] | 288 ] |
| 295 } | 289 } |
| 296 } | 290 } |
| 297 | 291 |
| 298 if (!use_openssl_certs) { | 292 if (!use_openssl_certs) { |
| 299 sources -= [ | 293 sources -= [ |
| 300 "base/keygen_handler_openssl.cc", | 294 "base/keygen_handler_openssl.cc", |
| 301 "base/openssl_private_key_store.h", | 295 "base/openssl_private_key_store.h", |
| 302 "base/openssl_private_key_store_memory.cc", | 296 "base/openssl_private_key_store_memory.cc", |
| 303 "cert/cert_database_openssl.cc", | 297 "cert/cert_database_openssl.cc", |
| 304 "cert/cert_verify_proc_openssl.cc", | 298 "cert/cert_verify_proc_openssl.cc", |
| 305 "cert/cert_verify_proc_openssl.h", | 299 "cert/cert_verify_proc_openssl.h", |
| 306 "cert/test_root_certs_openssl.cc", | 300 "cert/test_root_certs_openssl.cc", |
| 307 "cert/x509_certificate_openssl.cc", | 301 "cert/x509_certificate_openssl.cc", |
| 308 "ssl/openssl_client_key_store.cc", | 302 "ssl/openssl_client_key_store.cc", |
| 309 "ssl/openssl_client_key_store.h", | 303 "ssl/openssl_client_key_store.h", |
| 310 ] | 304 ] |
| 311 if (is_android) { | 305 if (is_android) { |
| 312 sources -= [ | 306 sources -= [ "base/openssl_private_key_store_android.cc" ] |
| 313 "base/openssl_private_key_store_android.cc", | |
| 314 ] | |
| 315 } | 307 } |
| 316 } else if (is_android) { | 308 } else if (is_android) { |
| 317 # Android doesn't use these even when using OpenSSL. | 309 # Android doesn't use these even when using OpenSSL. |
| 318 sources -= [ | 310 sources -= [ |
| 319 "base/openssl_private_key_store_memory.cc", | 311 "base/openssl_private_key_store_memory.cc", |
| 320 "cert/cert_database_openssl.cc", | 312 "cert/cert_database_openssl.cc", |
| 321 "cert/cert_verify_proc_openssl.cc", | 313 "cert/cert_verify_proc_openssl.cc", |
| 322 "cert/test_root_certs_openssl.cc", | 314 "cert/test_root_certs_openssl.cc", |
| 323 ] | 315 ] |
| 324 } | 316 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 494 |
| 503 if (is_android) { | 495 if (is_android) { |
| 504 # Add some Linux sources that were excluded by the filter, but which | 496 # Add some Linux sources that were excluded by the filter, but which |
| 505 # are needed. | 497 # are needed. |
| 506 set_sources_assignment_filter([]) | 498 set_sources_assignment_filter([]) |
| 507 sources += [ | 499 sources += [ |
| 508 "base/platform_mime_util_linux.cc", | 500 "base/platform_mime_util_linux.cc", |
| 509 "base/address_tracker_linux.cc", | 501 "base/address_tracker_linux.cc", |
| 510 "base/address_tracker_linux.h", | 502 "base/address_tracker_linux.h", |
| 511 "base/net_util_linux.cc", | 503 "base/net_util_linux.cc", |
| 512 "base/net_util_linux.h" | 504 "base/net_util_linux.h", |
| 513 ] | 505 ] |
| 514 set_sources_assignment_filter(sources_assignment_filter) | 506 set_sources_assignment_filter(sources_assignment_filter) |
| 515 | 507 |
| 516 if (!is_android_webview_build) { | 508 if (!is_android_webview_build) { |
| 517 deps += [ ":net_jni_headers" ] | 509 deps += [ ":net_jni_headers" ] |
| 518 } | 510 } |
| 519 } | 511 } |
| 520 | 512 |
| 521 if (use_icu_alternatives_on_android) { | 513 if (use_icu_alternatives_on_android) { |
| 522 deps -= [ | 514 deps -= [ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "server/http_server.h", | 554 "server/http_server.h", |
| 563 "server/http_server_request_info.cc", | 555 "server/http_server_request_info.cc", |
| 564 "server/http_server_request_info.h", | 556 "server/http_server_request_info.h", |
| 565 "server/http_server_response_info.cc", | 557 "server/http_server_response_info.cc", |
| 566 "server/http_server_response_info.h", | 558 "server/http_server_response_info.h", |
| 567 "server/web_socket.cc", | 559 "server/web_socket.cc", |
| 568 "server/web_socket.h", | 560 "server/web_socket.h", |
| 569 ] | 561 ] |
| 570 configs += [ | 562 configs += [ |
| 571 "//build/config/compiler:wexit_time_destructors", | 563 "//build/config/compiler:wexit_time_destructors", |
| 572 ":net_win_size_truncation" | 564 ":net_win_size_truncation", |
| 573 ] | 565 ] |
| 574 deps = [ | 566 deps = [ |
| 575 ":net", | 567 ":net", |
| 576 "//base", | 568 "//base", |
| 577 ] | 569 ] |
| 578 } | 570 } |
| 579 | 571 |
| 580 executable("dump_cache") { | 572 executable("dump_cache") { |
| 581 testonly = true | 573 testonly = true |
| 582 sources = [ | 574 sources = [ |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 "//base/test:test_support", | 686 "//base/test:test_support", |
| 695 "//crypto", | 687 "//crypto", |
| 696 "//net", | 688 "//net", |
| 697 "//net/tools/tld_cleanup", | 689 "//net/tools/tld_cleanup", |
| 698 "//testing/gmock", | 690 "//testing/gmock", |
| 699 "//testing/gtest", | 691 "//testing/gtest", |
| 700 "//url", | 692 "//url", |
| 701 ] | 693 ] |
| 702 | 694 |
| 703 if (!use_openssl && (use_nss_certs || is_ios)) { | 695 if (!use_openssl && (use_nss_certs || is_ios)) { |
| 704 public_deps += ["//crypto:platform" ] | 696 public_deps += [ "//crypto:platform" ] |
| 705 } | 697 } |
| 706 | 698 |
| 707 if (!is_android) { | 699 if (!is_android) { |
| 708 sources -= [ | 700 sources -= [ |
| 709 "test/spawned_test_server/remote_test_server.cc", | 701 "test/spawned_test_server/remote_test_server.cc", |
| 710 "test/spawned_test_server/remote_test_server.h", | 702 "test/spawned_test_server/remote_test_server.h", |
| 711 "test/spawned_test_server/spawner_communicator.cc", | 703 "test/spawned_test_server/spawner_communicator.cc", |
| 712 "test/spawned_test_server/spawner_communicator.h", | 704 "test/spawned_test_server/spawner_communicator.h", |
| 713 ] | 705 ] |
| 714 } | 706 } |
| 715 | 707 |
| 716 if (use_v8_in_net) { | 708 if (use_v8_in_net) { |
| 717 public_deps += [ ":net_with_v8" ] | 709 public_deps += [ ":net_with_v8" ] |
| 718 } | 710 } |
| 719 | 711 |
| 720 if (!enable_mdns) { | 712 if (!enable_mdns) { |
| 721 sources -= [ | 713 sources -= [ |
| 722 "dns/mock_mdns_socket_factory.cc", | 714 "dns/mock_mdns_socket_factory.cc", |
| 723 "dns/mock_mdns_socket_factory.h", | 715 "dns/mock_mdns_socket_factory.h", |
| 724 ] | 716 ] |
| 725 } | 717 } |
| 726 | 718 |
| 727 if (!use_nss_certs) { | 719 if (!use_nss_certs) { |
| 728 sources -= [ | 720 sources -= [ "test/cert_test_util_nss.cc" ] |
| 729 "test/cert_test_util_nss.cc", | |
| 730 ] | |
| 731 } | 721 } |
| 732 } | 722 } |
| 733 | 723 |
| 734 source_set("balsa") { | 724 source_set("balsa") { |
| 735 sources = [ | 725 sources = [ |
| 736 "tools/balsa/balsa_enums.h", | 726 "tools/balsa/balsa_enums.h", |
| 737 "tools/balsa/balsa_frame.cc", | 727 "tools/balsa/balsa_frame.cc", |
| 738 "tools/balsa/balsa_frame.h", | 728 "tools/balsa/balsa_frame.h", |
| 739 "tools/balsa/balsa_headers.cc", | 729 "tools/balsa/balsa_headers.cc", |
| 740 "tools/balsa/balsa_headers.h", | 730 "tools/balsa/balsa_headers.h", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 "//gin", | 774 "//gin", |
| 785 "//url", | 775 "//url", |
| 786 "//v8", | 776 "//v8", |
| 787 ] | 777 ] |
| 788 } | 778 } |
| 789 } | 779 } |
| 790 | 780 |
| 791 if (!is_ios && !is_android) { | 781 if (!is_ios && !is_android) { |
| 792 executable("crash_cache") { | 782 executable("crash_cache") { |
| 793 testonly = true | 783 testonly = true |
| 794 sources = [ "tools/crash_cache/crash_cache.cc" ] | 784 sources = [ |
| 785 "tools/crash_cache/crash_cache.cc", |
| 786 ] |
| 795 configs += [ ":net_win_size_truncation" ] | 787 configs += [ ":net_win_size_truncation" ] |
| 796 deps = [ | 788 deps = [ |
| 797 ":net", | 789 ":net", |
| 798 ":test_support", | 790 ":test_support", |
| 799 "//base", | 791 "//base", |
| 800 ] | 792 ] |
| 801 } | 793 } |
| 802 | 794 |
| 803 executable("crl_set_dump") { | 795 executable("crl_set_dump") { |
| 804 testonly = true | 796 testonly = true |
| 805 sources = [ "tools/crl_set_dump/crl_set_dump.cc" ] | 797 sources = [ |
| 798 "tools/crl_set_dump/crl_set_dump.cc", |
| 799 ] |
| 806 configs += [ ":net_win_size_truncation" ] | 800 configs += [ ":net_win_size_truncation" ] |
| 807 deps = [ | 801 deps = [ |
| 808 ":net", | 802 ":net", |
| 809 "//base", | 803 "//base", |
| 810 ] | 804 ] |
| 811 } | 805 } |
| 812 | 806 |
| 813 executable("dns_fuzz_stub") { | 807 executable("dns_fuzz_stub") { |
| 814 testonly = true | 808 testonly = true |
| 815 sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ] | 809 sources = [ |
| 810 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", |
| 811 ] |
| 816 configs += [ ":net_win_size_truncation" ] | 812 configs += [ ":net_win_size_truncation" ] |
| 817 deps = [ | 813 deps = [ |
| 818 ":net", | 814 ":net", |
| 819 "//base", | 815 "//base", |
| 820 ] | 816 ] |
| 821 } | 817 } |
| 822 | 818 |
| 823 executable("gdig") { | 819 executable("gdig") { |
| 824 testonly = true | 820 testonly = true |
| 825 sources = [ | 821 sources = [ |
| 826 "tools/gdig/file_net_log.cc", | 822 "tools/gdig/file_net_log.cc", |
| 827 "tools/gdig/gdig.cc", | 823 "tools/gdig/gdig.cc", |
| 828 ] | 824 ] |
| 829 deps = [ | 825 deps = [ |
| 830 ":net", | 826 ":net", |
| 831 "//base", | 827 "//base", |
| 832 ] | 828 ] |
| 833 } | 829 } |
| 834 | 830 |
| 835 executable("get_server_time") { | 831 executable("get_server_time") { |
| 836 testonly = true | 832 testonly = true |
| 837 sources = [ "tools/get_server_time/get_server_time.cc" ] | 833 sources = [ |
| 834 "tools/get_server_time/get_server_time.cc", |
| 835 ] |
| 838 configs += [ ":net_win_size_truncation" ] | 836 configs += [ ":net_win_size_truncation" ] |
| 839 deps = [ | 837 deps = [ |
| 840 ":net", | 838 ":net", |
| 841 "//base", | 839 "//base", |
| 842 "//base:i18n", | 840 "//base:i18n", |
| 843 "//url", | 841 "//url", |
| 844 ] | 842 ] |
| 845 } | 843 } |
| 846 | 844 |
| 847 if (use_v8_in_net) { | 845 if (use_v8_in_net) { |
| 848 executable("net_watcher") { | 846 executable("net_watcher") { |
| 849 testonly = true | 847 testonly = true |
| 850 sources = [ "tools/net_watcher/net_watcher.cc" ] | 848 sources = [ |
| 849 "tools/net_watcher/net_watcher.cc", |
| 850 ] |
| 851 deps = [ | 851 deps = [ |
| 852 ":net", | 852 ":net", |
| 853 ":net_with_v8", | 853 ":net_with_v8", |
| 854 "//base", | 854 "//base", |
| 855 ] | 855 ] |
| 856 | 856 |
| 857 if (is_desktop_linux) { | 857 if (is_desktop_linux) { |
| 858 configs += [ | 858 configs += [ |
| 859 "//build/config/linux:gconf", | 859 "//build/config/linux:gconf", |
| 860 "//build/config/linux:glib", | 860 "//build/config/linux:glib", |
| 861 ] | 861 ] |
| 862 deps += [ "//build/config/linux:gio" ] | 862 deps += [ "//build/config/linux:gio" ] |
| 863 } | 863 } |
| 864 } | 864 } |
| 865 } | 865 } |
| 866 | 866 |
| 867 executable("run_testserver") { | 867 executable("run_testserver") { |
| 868 testonly = true | 868 testonly = true |
| 869 sources = [ "tools/testserver/run_testserver.cc" ] | 869 sources = [ |
| 870 "tools/testserver/run_testserver.cc", |
| 871 ] |
| 870 deps = [ | 872 deps = [ |
| 871 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not | 873 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
| 872 # in the GYP build, and can be removed when the bug is fixed. | 874 # in the GYP build, and can be removed when the bug is fixed. |
| 873 ":test_support", | 875 ":test_support", |
| 874 "//base", | 876 "//base", |
| 875 "//base/test:test_support", | 877 "//base/test:test_support", |
| 876 "//testing/gtest", | 878 "//testing/gtest", |
| 877 ] | 879 ] |
| 878 } | 880 } |
| 879 | 881 |
| 880 executable("stress_cache") { | 882 executable("stress_cache") { |
| 881 testonly = true | 883 testonly = true |
| 882 sources = [ "disk_cache/blockfile/stress_cache.cc" ] | 884 sources = [ |
| 885 "disk_cache/blockfile/stress_cache.cc", |
| 886 ] |
| 883 configs += [ ":net_win_size_truncation" ] | 887 configs += [ ":net_win_size_truncation" ] |
| 884 deps = [ | 888 deps = [ |
| 885 ":net", | 889 ":net", |
| 886 ":test_support", | 890 ":test_support", |
| 887 "//base", | 891 "//base", |
| 888 ] | 892 ] |
| 889 } | 893 } |
| 890 | 894 |
| 891 executable("tld_cleanup") { | 895 executable("tld_cleanup") { |
| 892 sources = [ "tools/tld_cleanup/tld_cleanup.cc" ] | 896 sources = [ |
| 897 "tools/tld_cleanup/tld_cleanup.cc", |
| 898 ] |
| 893 configs += [ ":net_win_size_truncation" ] | 899 configs += [ ":net_win_size_truncation" ] |
| 894 deps = [ | 900 deps = [ |
| 895 "//base", | 901 "//base", |
| 896 "//base:i18n", | 902 "//base:i18n", |
| 897 "//net/tools/tld_cleanup", | 903 "//net/tools/tld_cleanup", |
| 898 ] | 904 ] |
| 899 } | 905 } |
| 900 } | 906 } |
| 901 | 907 |
| 902 if (is_linux) { | 908 if (is_linux) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 ":net", | 976 ":net", |
| 971 ":test_support", | 977 ":test_support", |
| 972 "//testing/gtest", | 978 "//testing/gtest", |
| 973 "//testing/gmock", | 979 "//testing/gmock", |
| 974 "//third_party/boringssl", | 980 "//third_party/boringssl", |
| 975 ] | 981 ] |
| 976 } | 982 } |
| 977 | 983 |
| 978 executable("flip_in_mem_edsm_server") { | 984 executable("flip_in_mem_edsm_server") { |
| 979 testonly = true | 985 testonly = true |
| 980 sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ] | 986 sources = [ |
| 987 "tools/flip_server/flip_in_mem_edsm_server.cc", |
| 988 ] |
| 981 deps = [ | 989 deps = [ |
| 982 ":flip_in_mem_edsm_server_base", | 990 ":flip_in_mem_edsm_server_base", |
| 983 ":net", | 991 ":net", |
| 984 "//base", | 992 "//base", |
| 985 ] | 993 ] |
| 986 } | 994 } |
| 987 | 995 |
| 988 source_set("quic_base") { | 996 source_set("quic_base") { |
| 989 sources = [ | 997 sources = [ |
| 990 "tools/quic/quic_client.cc", | 998 "tools/quic/quic_client.cc", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 ":net", | 1032 ":net", |
| 1025 "//base", | 1033 "//base", |
| 1026 "//base/third_party/dynamic_annotations", | 1034 "//base/third_party/dynamic_annotations", |
| 1027 "//crypto", | 1035 "//crypto", |
| 1028 "//third_party/boringssl", | 1036 "//third_party/boringssl", |
| 1029 "//url", | 1037 "//url", |
| 1030 ] | 1038 ] |
| 1031 } | 1039 } |
| 1032 | 1040 |
| 1033 executable("quic_client") { | 1041 executable("quic_client") { |
| 1034 sources = [ "tools/quic/quic_client_bin.cc" ] | 1042 sources = [ |
| 1043 "tools/quic/quic_client_bin.cc", |
| 1044 ] |
| 1035 deps = [ | 1045 deps = [ |
| 1036 ":quic_base", | 1046 ":quic_base", |
| 1037 ":net", | 1047 ":net", |
| 1038 "//base", | 1048 "//base", |
| 1039 "//third_party/boringssl", | 1049 "//third_party/boringssl", |
| 1040 ] | 1050 ] |
| 1041 } | 1051 } |
| 1042 } | 1052 } |
| 1043 | 1053 |
| 1044 if (is_android) { | 1054 if (is_android) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1059 sources = [ | 1069 sources = [ |
| 1060 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", | 1070 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", |
| 1061 ] | 1071 ] |
| 1062 jni_package = "net" | 1072 jni_package = "net" |
| 1063 } | 1073 } |
| 1064 } | 1074 } |
| 1065 | 1075 |
| 1066 if (is_android || is_linux) { | 1076 if (is_android || is_linux) { |
| 1067 executable("disk_cache_memory_test") { | 1077 executable("disk_cache_memory_test") { |
| 1068 testonly = true | 1078 testonly = true |
| 1069 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] | 1079 sources = [ |
| 1080 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", |
| 1081 ] |
| 1070 deps = [ | 1082 deps = [ |
| 1071 ":net", | 1083 ":net", |
| 1072 "//base", | 1084 "//base", |
| 1073 ] | 1085 ] |
| 1074 } | 1086 } |
| 1075 } | 1087 } |
| 1076 | 1088 |
| 1077 # TODO(GYP) make this compile on Android, we need some native test deps done. | 1089 # TODO(GYP) make this compile on Android, we need some native test deps done. |
| 1078 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. | 1090 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. |
| 1079 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. | 1091 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. |
| 1080 if (!is_android && !is_win && !is_mac) { | 1092 if (!is_android && !is_win && !is_mac) { |
| 1081 | 1093 source_set("quic_tools") { |
| 1082 source_set("quic_tools") { | 1094 sources = [ |
| 1083 sources = [ | 1095 "quic/quic_dispatcher.cc", |
| 1084 "quic/quic_dispatcher.cc", | 1096 "quic/quic_dispatcher.h", |
| 1085 "quic/quic_dispatcher.h", | 1097 "quic/quic_in_memory_cache.cc", |
| 1086 "quic/quic_in_memory_cache.cc", | 1098 "quic/quic_in_memory_cache.h", |
| 1087 "quic/quic_in_memory_cache.h", | 1099 "quic/quic_per_connection_packet_writer.cc", |
| 1088 "quic/quic_per_connection_packet_writer.cc", | 1100 "quic/quic_per_connection_packet_writer.h", |
| 1089 "quic/quic_per_connection_packet_writer.h", | 1101 "quic/quic_server.cc", |
| 1090 "quic/quic_server.cc", | 1102 "quic/quic_server.h", |
| 1091 "quic/quic_server.h", | 1103 "quic/quic_server_packet_writer.cc", |
| 1092 "quic/quic_server_packet_writer.cc", | 1104 "quic/quic_server_packet_writer.h", |
| 1093 "quic/quic_server_packet_writer.h", | 1105 "quic/quic_server_session.cc", |
| 1094 "quic/quic_server_session.cc", | 1106 "quic/quic_server_session.h", |
| 1095 "quic/quic_server_session.h", | 1107 "quic/quic_spdy_server_stream.cc", |
| 1096 "quic/quic_spdy_server_stream.cc", | 1108 "quic/quic_spdy_server_stream.h", |
| 1097 "quic/quic_spdy_server_stream.h", | 1109 "quic/quic_time_wait_list_manager.cc", |
| 1098 "quic/quic_time_wait_list_manager.cc", | 1110 "quic/quic_time_wait_list_manager.h", |
| 1099 "quic/quic_time_wait_list_manager.h", | 1111 ] |
| 1100 ] | 1112 deps = [ |
| 1101 deps = [ | 1113 ":net", |
| 1102 ":net", | 1114 "//base", |
| 1103 "//base", | 1115 "//base/third_party/dynamic_annotations", |
| 1104 "//base/third_party/dynamic_annotations", | 1116 "//url", |
| 1105 "//url", | |
| 1106 ] | |
| 1107 } | |
| 1108 | |
| 1109 test("net_unittests") { | |
| 1110 sources = gypi_values.net_test_sources | |
| 1111 | |
| 1112 configs += [ ":net_win_size_truncation" ] | |
| 1113 defines = [] | |
| 1114 | |
| 1115 deps = [ | |
| 1116 ":extras", | |
| 1117 ":http_server", | |
| 1118 ":net", | |
| 1119 ":quic_tools", | |
| 1120 ":test_support", | |
| 1121 "//base", | |
| 1122 "//base:i18n", | |
| 1123 "//base:prefs_test_support", | |
| 1124 "//base/allocator", | |
| 1125 "//base/third_party/dynamic_annotations", | |
| 1126 "//crypto", | |
| 1127 "//crypto:platform", | |
| 1128 "//crypto:test_support", | |
| 1129 "//net/base/registry_controlled_domains", | |
| 1130 "//testing/gmock", | |
| 1131 "//testing/gtest", | |
| 1132 "//third_party/zlib", | |
| 1133 "//url", | |
| 1134 ] | |
| 1135 | |
| 1136 if (is_linux) { | |
| 1137 sources += gypi_values.net_linux_test_sources | |
| 1138 deps += [ | |
| 1139 ":balsa", | |
| 1140 ":epoll_server", | |
| 1141 ":flip_in_mem_edsm_server_base", | |
| 1142 ":quic_base", | |
| 1143 ] | 1117 ] |
| 1144 } | 1118 } |
| 1145 | 1119 |
| 1146 if (is_chromeos) { | 1120 test("net_unittests") { |
| 1147 sources -= [ | 1121 sources = gypi_values.net_test_sources |
| 1148 "proxy/proxy_config_service_linux_unittest.cc", | 1122 |
| 1149 ] | 1123 configs += [ ":net_win_size_truncation" ] |
| 1124 defines = [] |
| 1125 |
| 1126 deps = [ |
| 1127 ":extras", |
| 1128 ":http_server", |
| 1129 ":net", |
| 1130 ":quic_tools", |
| 1131 ":test_support", |
| 1132 "//base", |
| 1133 "//base:i18n", |
| 1134 "//base:prefs_test_support", |
| 1135 "//base/allocator", |
| 1136 "//base/third_party/dynamic_annotations", |
| 1137 "//crypto", |
| 1138 "//crypto:platform", |
| 1139 "//crypto:test_support", |
| 1140 "//net/base/registry_controlled_domains", |
| 1141 "//testing/gmock", |
| 1142 "//testing/gtest", |
| 1143 "//third_party/zlib", |
| 1144 "//url", |
| 1145 ] |
| 1146 |
| 1147 if (is_linux) { |
| 1148 sources += gypi_values.net_linux_test_sources |
| 1149 deps += [ |
| 1150 ":balsa", |
| 1151 ":epoll_server", |
| 1152 ":flip_in_mem_edsm_server_base", |
| 1153 ":quic_base", |
| 1154 ] |
| 1155 } |
| 1156 |
| 1157 if (is_chromeos) { |
| 1158 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] |
| 1159 } |
| 1160 |
| 1161 if (is_android) { |
| 1162 sources -= [ |
| 1163 # See bug http://crbug.com/344533. |
| 1164 "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1165 |
| 1166 # No res_ninit() et al on Android, so this doesn't make a lot of |
| 1167 # sense. |
| 1168 "dns/dns_config_service_posix_unittest.cc", |
| 1169 ] |
| 1170 deps += [ |
| 1171 ":net_javatests", # FIXME(brettw) |
| 1172 ":net_test_jni_headers", |
| 1173 ] |
| 1174 } |
| 1175 |
| 1176 if (!use_nss_certs) { |
| 1177 sources -= [ "ssl/client_cert_store_nss_unittest.cc" ] |
| 1178 if (is_chromeos) { # Already removed for all non-ChromeOS builds. |
| 1179 sources -= [ "ssl/client_cert_store_chromeos_unittest.cc" ] |
| 1180 } |
| 1181 } |
| 1182 |
| 1183 if (use_openssl) { |
| 1184 # When building for OpenSSL, we need to exclude NSS specific tests |
| 1185 # or functionality not supported by OpenSSL yet. |
| 1186 # TODO(bulach): Add equivalent tests when the underlying |
| 1187 # functionality is ported to OpenSSL. |
| 1188 sources -= [ |
| 1189 "cert/nss_cert_database_unittest.cc", |
| 1190 "cert/x509_util_nss_unittest.cc", |
| 1191 "quic/test_tools/crypto_test_utils_nss.cc", |
| 1192 ] |
| 1193 if (is_chromeos) { |
| 1194 # These were already removed in the non-ChromeOS case. |
| 1195 sources -= [ |
| 1196 "cert/nss_cert_database_chromeos_unittest.cc", |
| 1197 "cert/nss_profile_filter_chromeos_unittest.cc", |
| 1198 ] |
| 1199 } |
| 1200 } else { |
| 1201 sources -= [ |
| 1202 "cert/x509_util_openssl_unittest.cc", |
| 1203 "quic/test_tools/crypto_test_utils_openssl.cc", |
| 1204 "socket/ssl_client_socket_openssl_unittest.cc", |
| 1205 "socket/ssl_session_cache_openssl_unittest.cc", |
| 1206 ] |
| 1207 if (!is_desktop_linux && !is_chromeos) { |
| 1208 sources -= [ "cert/nss_cert_database_unittest.cc" ] |
| 1209 } |
| 1210 } |
| 1211 |
| 1212 if (use_kerberos) { |
| 1213 defines += [ "USE_KERBEROS" ] |
| 1214 } else { |
| 1215 sources -= [ |
| 1216 "http/http_auth_gssapi_posix_unittest.cc", |
| 1217 "http/http_auth_handler_negotiate_unittest.cc", |
| 1218 "http/mock_gssapi_library_posix.cc", |
| 1219 "http/mock_gssapi_library_posix.h", |
| 1220 ] |
| 1221 } |
| 1222 |
| 1223 if (use_openssl || !is_desktop_linux && !is_chromeos && !is_ios) { |
| 1224 # Only include this test when on Posix and using NSS for |
| 1225 # cert verification or on iOS (which also uses NSS for certs). |
| 1226 sources -= [ "ocsp/nss_ocsp_unittest.cc" ] |
| 1227 } |
| 1228 |
| 1229 if (!use_openssl_certs) { |
| 1230 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
| 1231 } |
| 1232 |
| 1233 if (!enable_websockets) { |
| 1234 sources -= [ |
| 1235 "websockets/websocket_basic_stream_test.cc", |
| 1236 "websockets/websocket_channel_test.cc", |
| 1237 "websockets/websocket_deflate_predictor_impl_test.cc", |
| 1238 "websockets/websocket_deflate_stream_test.cc", |
| 1239 "websockets/websocket_deflater_test.cc", |
| 1240 "websockets/websocket_errors_test.cc", |
| 1241 "websockets/websocket_extension_parser_test.cc", |
| 1242 "websockets/websocket_frame_parser_test.cc", |
| 1243 "websockets/websocket_frame_test.cc", |
| 1244 "websockets/websocket_handshake_challenge_test.cc", |
| 1245 "websockets/websocket_handshake_stream_create_helper_test.cc", |
| 1246 "websockets/websocket_inflater_test.cc", |
| 1247 "websockets/websocket_stream_test.cc", |
| 1248 "websockets/websocket_test_util.cc", |
| 1249 "websockets/websocket_test_util.h", |
| 1250 ] |
| 1251 } |
| 1252 |
| 1253 if (disable_file_support) { |
| 1254 sources -= [ |
| 1255 "base/directory_lister_unittest.cc", |
| 1256 "url_request/url_request_file_job_unittest.cc", |
| 1257 ] |
| 1258 } |
| 1259 |
| 1260 if (disable_ftp_support) { |
| 1261 sources -= [ |
| 1262 "ftp/ftp_auth_cache_unittest.cc", |
| 1263 "ftp/ftp_ctrl_response_buffer_unittest.cc", |
| 1264 "ftp/ftp_directory_listing_parser_ls_unittest.cc", |
| 1265 "ftp/ftp_directory_listing_parser_netware_unittest.cc", |
| 1266 "ftp/ftp_directory_listing_parser_os2_unittest.cc", |
| 1267 "ftp/ftp_directory_listing_parser_unittest.cc", |
| 1268 "ftp/ftp_directory_listing_parser_unittest.h", |
| 1269 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 1270 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 1271 "ftp/ftp_network_transaction_unittest.cc", |
| 1272 "ftp/ftp_util_unittest.cc", |
| 1273 "url_request/url_request_ftp_job_unittest.cc", |
| 1274 ] |
| 1275 } |
| 1276 |
| 1277 if (!enable_built_in_dns) { |
| 1278 sources -= [ |
| 1279 "dns/address_sorter_posix_unittest.cc", |
| 1280 "dns/address_sorter_unittest.cc", |
| 1281 ] |
| 1282 } |
| 1283 |
| 1284 # Always need use_v8_in_net to be 1 to run on Android, so just remove |
| 1285 # net_unittest's dependency on v8 when using icu alternatives instead of |
| 1286 # setting use_v8_in_net to 0. |
| 1287 if (use_v8_in_net && !use_icu_alternatives_on_android) { |
| 1288 deps += [ ":net_with_v8" ] |
| 1289 } else { |
| 1290 sources -= [ |
| 1291 "proxy/proxy_resolver_v8_unittest.cc", |
| 1292 "proxy/proxy_resolver_v8_tracing_unittest.cc", |
| 1293 ] |
| 1294 } |
| 1295 |
| 1296 if (!enable_mdns) { |
| 1297 sources -= [ |
| 1298 "dns/mdns_cache_unittest.cc", |
| 1299 "dns/mdns_client_unittest.cc", |
| 1300 "dns/record_parsed_unittest.cc", |
| 1301 "dns/record_rdata_unittest.cc", |
| 1302 ] |
| 1303 } |
| 1304 |
| 1305 if (is_ios) { |
| 1306 # TODO(GYP) |
| 1307 # 'actions': [ |
| 1308 # { |
| 1309 # 'action_name': 'copy_test_data', |
| 1310 # 'variables': { |
| 1311 # 'test_data_files': [ |
| 1312 # 'data/ssl/certificates/', |
| 1313 # 'data/test.html', |
| 1314 # 'data/url_request_unittest/', |
| 1315 # ], |
| 1316 # 'test_data_prefix': 'net', |
| 1317 # }, |
| 1318 # 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 1319 # }, |
| 1320 # ], |
| 1321 sources -= [ |
| 1322 # TODO(droger): The following tests are disabled because the |
| 1323 # implementation is missing or incomplete. |
| 1324 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 1325 "base/keygen_handler_unittest.cc", |
| 1326 "disk_cache/backend_unittest.cc", |
| 1327 "disk_cache/blockfile/block_files_unittest.cc", |
| 1328 |
| 1329 # Need to read input data files. |
| 1330 "filter/gzip_filter_unittest.cc", |
| 1331 "socket/ssl_server_socket_unittest.cc", |
| 1332 "spdy/fuzzing/hpack_fuzz_util_test.cc", |
| 1333 |
| 1334 # Need TestServer. |
| 1335 "proxy/proxy_script_fetcher_impl_unittest.cc", |
| 1336 "socket/ssl_client_socket_unittest.cc", |
| 1337 "url_request/url_fetcher_impl_unittest.cc", |
| 1338 "url_request/url_request_context_builder_unittest.cc", |
| 1339 |
| 1340 # Needs GetAppOutput(). |
| 1341 "test/python_utils_unittest.cc", |
| 1342 |
| 1343 # The following tests are disabled because they don't apply to |
| 1344 # iOS. |
| 1345 # OS is not "linux" or "freebsd" or "openbsd". |
| 1346 "socket/unix_domain_client_socket_posix_unittest.cc", |
| 1347 "socket/unix_domain_listen_socket_posix_unittest.cc", |
| 1348 "socket/unix_domain_server_socket_posix_unittest.cc", |
| 1349 |
| 1350 # See bug http://crbug.com/344533. |
| 1351 "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1352 ] |
| 1353 } |
| 1354 |
| 1355 if (is_android) { |
| 1356 sources -= [ "dns/dns_config_service_posix_unittest.cc" ] |
| 1357 |
| 1358 # TODO(GYP) |
| 1359 # # TODO(mmenke): This depends on test_support_base, which depends on |
| 1360 # # icu. Figure out a way to remove that dependency. |
| 1361 # 'dependencies': [ |
| 1362 # '../testing/android/native_test.gyp:native_test_native_code', |
| 1363 # ] |
| 1364 |
| 1365 set_sources_assignment_filter([]) |
| 1366 sources += [ "base/address_tracker_linux_unittest.cc" ] |
| 1367 set_sources_assignment_filter(sources_assignment_filter) |
| 1368 } |
| 1369 |
| 1370 if (use_icu_alternatives_on_android) { |
| 1371 sources -= [ |
| 1372 "base/filename_util_unittest.cc", |
| 1373 "base/net_util_icu_unittest.cc", |
| 1374 ] |
| 1375 deps -= [ "//base:i18n" ] |
| 1376 } |
| 1150 } | 1377 } |
| 1151 | 1378 |
| 1152 if (is_android) { | 1379 executable("quic_server") { |
| 1153 sources -= [ | 1380 sources = [ |
| 1154 # See bug http://crbug.com/344533. | 1381 "quic/quic_server_bin.cc", |
| 1155 "disk_cache/blockfile/index_table_v3_unittest.cc", | 1382 ] |
| 1156 # No res_ninit() et al on Android, so this doesn't make a lot of | 1383 deps = [ |
| 1157 # sense. | 1384 ":quic_tools", |
| 1158 "dns/dns_config_service_posix_unittest.cc", | 1385 ":net", |
| 1159 ] | 1386 "//base", |
| 1160 deps += [ | 1387 "//third_party/boringssl", |
| 1161 ":net_javatests", # FIXME(brettw) | |
| 1162 ":net_test_jni_headers", | |
| 1163 ] | 1388 ] |
| 1164 } | 1389 } |
| 1165 | |
| 1166 if (!use_nss_certs) { | |
| 1167 sources -= [ | |
| 1168 "ssl/client_cert_store_nss_unittest.cc", | |
| 1169 ] | |
| 1170 if (is_chromeos) { # Already removed for all non-ChromeOS builds. | |
| 1171 sources -= [ | |
| 1172 "ssl/client_cert_store_chromeos_unittest.cc", | |
| 1173 ] | |
| 1174 } | |
| 1175 } | |
| 1176 | |
| 1177 if (use_openssl) { | |
| 1178 # When building for OpenSSL, we need to exclude NSS specific tests | |
| 1179 # or functionality not supported by OpenSSL yet. | |
| 1180 # TODO(bulach): Add equivalent tests when the underlying | |
| 1181 # functionality is ported to OpenSSL. | |
| 1182 sources -= [ | |
| 1183 "cert/nss_cert_database_unittest.cc", | |
| 1184 "cert/x509_util_nss_unittest.cc", | |
| 1185 "quic/test_tools/crypto_test_utils_nss.cc", | |
| 1186 ] | |
| 1187 if (is_chromeos) { | |
| 1188 # These were already removed in the non-ChromeOS case. | |
| 1189 sources -= [ | |
| 1190 "cert/nss_cert_database_chromeos_unittest.cc", | |
| 1191 "cert/nss_profile_filter_chromeos_unittest.cc", | |
| 1192 ] | |
| 1193 } | |
| 1194 } else { | |
| 1195 sources -= [ | |
| 1196 "cert/x509_util_openssl_unittest.cc", | |
| 1197 "quic/test_tools/crypto_test_utils_openssl.cc", | |
| 1198 "socket/ssl_client_socket_openssl_unittest.cc", | |
| 1199 "socket/ssl_session_cache_openssl_unittest.cc", | |
| 1200 ] | |
| 1201 if (!is_desktop_linux && !is_chromeos) { | |
| 1202 sources -= [ "cert/nss_cert_database_unittest.cc" ] | |
| 1203 } | |
| 1204 } | |
| 1205 | |
| 1206 if (use_kerberos) { | |
| 1207 defines += [ "USE_KERBEROS" ] | |
| 1208 } else { | |
| 1209 sources -= [ | |
| 1210 "http/http_auth_gssapi_posix_unittest.cc", | |
| 1211 "http/http_auth_handler_negotiate_unittest.cc", | |
| 1212 "http/mock_gssapi_library_posix.cc", | |
| 1213 "http/mock_gssapi_library_posix.h", | |
| 1214 ] | |
| 1215 } | |
| 1216 | |
| 1217 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { | |
| 1218 # Only include this test when on Posix and using NSS for | |
| 1219 # cert verification or on iOS (which also uses NSS for certs). | |
| 1220 sources -= [ "ocsp/nss_ocsp_unittest.cc" ] | |
| 1221 } | |
| 1222 | |
| 1223 if (!use_openssl_certs) { | |
| 1224 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] | |
| 1225 } | |
| 1226 | |
| 1227 if (!enable_websockets) { | |
| 1228 sources -= [ | |
| 1229 "websockets/websocket_basic_stream_test.cc", | |
| 1230 "websockets/websocket_channel_test.cc", | |
| 1231 "websockets/websocket_deflate_predictor_impl_test.cc", | |
| 1232 "websockets/websocket_deflate_stream_test.cc", | |
| 1233 "websockets/websocket_deflater_test.cc", | |
| 1234 "websockets/websocket_errors_test.cc", | |
| 1235 "websockets/websocket_extension_parser_test.cc", | |
| 1236 "websockets/websocket_frame_parser_test.cc", | |
| 1237 "websockets/websocket_frame_test.cc", | |
| 1238 "websockets/websocket_handshake_challenge_test.cc", | |
| 1239 "websockets/websocket_handshake_stream_create_helper_test.cc", | |
| 1240 "websockets/websocket_inflater_test.cc", | |
| 1241 "websockets/websocket_stream_test.cc", | |
| 1242 "websockets/websocket_test_util.cc", | |
| 1243 "websockets/websocket_test_util.h", | |
| 1244 ] | |
| 1245 } | |
| 1246 | |
| 1247 if (disable_file_support) { | |
| 1248 sources -= [ | |
| 1249 "base/directory_lister_unittest.cc", | |
| 1250 "url_request/url_request_file_job_unittest.cc", | |
| 1251 ] | |
| 1252 } | |
| 1253 | |
| 1254 if (disable_ftp_support) { | |
| 1255 sources -= [ | |
| 1256 "ftp/ftp_auth_cache_unittest.cc", | |
| 1257 "ftp/ftp_ctrl_response_buffer_unittest.cc", | |
| 1258 "ftp/ftp_directory_listing_parser_ls_unittest.cc", | |
| 1259 "ftp/ftp_directory_listing_parser_netware_unittest.cc", | |
| 1260 "ftp/ftp_directory_listing_parser_os2_unittest.cc", | |
| 1261 "ftp/ftp_directory_listing_parser_unittest.cc", | |
| 1262 "ftp/ftp_directory_listing_parser_unittest.h", | |
| 1263 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | |
| 1264 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | |
| 1265 "ftp/ftp_network_transaction_unittest.cc", | |
| 1266 "ftp/ftp_util_unittest.cc", | |
| 1267 "url_request/url_request_ftp_job_unittest.cc", | |
| 1268 ] | |
| 1269 } | |
| 1270 | |
| 1271 if (!enable_built_in_dns) { | |
| 1272 sources -= [ | |
| 1273 "dns/address_sorter_posix_unittest.cc", | |
| 1274 "dns/address_sorter_unittest.cc", | |
| 1275 ] | |
| 1276 } | |
| 1277 | |
| 1278 # Always need use_v8_in_net to be 1 to run on Android, so just remove | |
| 1279 # net_unittest's dependency on v8 when using icu alternatives instead of | |
| 1280 # setting use_v8_in_net to 0. | |
| 1281 if (use_v8_in_net && !use_icu_alternatives_on_android) { | |
| 1282 deps += [ ":net_with_v8" ] | |
| 1283 } else { | |
| 1284 sources -= [ | |
| 1285 "proxy/proxy_resolver_v8_unittest.cc", | |
| 1286 "proxy/proxy_resolver_v8_tracing_unittest.cc", | |
| 1287 ] | |
| 1288 } | |
| 1289 | |
| 1290 if (!enable_mdns) { | |
| 1291 sources -= [ | |
| 1292 "dns/mdns_cache_unittest.cc", | |
| 1293 "dns/mdns_client_unittest.cc", | |
| 1294 "dns/record_parsed_unittest.cc", | |
| 1295 "dns/record_rdata_unittest.cc", | |
| 1296 ] | |
| 1297 } | |
| 1298 | |
| 1299 if (is_ios) { | |
| 1300 # TODO(GYP) | |
| 1301 # 'actions': [ | |
| 1302 # { | |
| 1303 # 'action_name': 'copy_test_data', | |
| 1304 # 'variables': { | |
| 1305 # 'test_data_files': [ | |
| 1306 # 'data/ssl/certificates/', | |
| 1307 # 'data/test.html', | |
| 1308 # 'data/url_request_unittest/', | |
| 1309 # ], | |
| 1310 # 'test_data_prefix': 'net', | |
| 1311 # }, | |
| 1312 # 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 1313 # }, | |
| 1314 # ], | |
| 1315 sources -= [ | |
| 1316 # TODO(droger): The following tests are disabled because the | |
| 1317 # implementation is missing or incomplete. | |
| 1318 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. | |
| 1319 "base/keygen_handler_unittest.cc", | |
| 1320 "disk_cache/backend_unittest.cc", | |
| 1321 "disk_cache/blockfile/block_files_unittest.cc", | |
| 1322 # Need to read input data files. | |
| 1323 "filter/gzip_filter_unittest.cc", | |
| 1324 "socket/ssl_server_socket_unittest.cc", | |
| 1325 "spdy/fuzzing/hpack_fuzz_util_test.cc", | |
| 1326 # Need TestServer. | |
| 1327 "proxy/proxy_script_fetcher_impl_unittest.cc", | |
| 1328 "socket/ssl_client_socket_unittest.cc", | |
| 1329 "url_request/url_fetcher_impl_unittest.cc", | |
| 1330 "url_request/url_request_context_builder_unittest.cc", | |
| 1331 # Needs GetAppOutput(). | |
| 1332 "test/python_utils_unittest.cc", | |
| 1333 | |
| 1334 # The following tests are disabled because they don't apply to | |
| 1335 # iOS. | |
| 1336 # OS is not "linux" or "freebsd" or "openbsd". | |
| 1337 "socket/unix_domain_client_socket_posix_unittest.cc", | |
| 1338 "socket/unix_domain_listen_socket_posix_unittest.cc", | |
| 1339 "socket/unix_domain_server_socket_posix_unittest.cc", | |
| 1340 | |
| 1341 # See bug http://crbug.com/344533. | |
| 1342 "disk_cache/blockfile/index_table_v3_unittest.cc", | |
| 1343 ] | |
| 1344 } | |
| 1345 | |
| 1346 if (is_android) { | |
| 1347 sources -= [ | |
| 1348 "dns/dns_config_service_posix_unittest.cc", | |
| 1349 ] | |
| 1350 # TODO(GYP) | |
| 1351 # # TODO(mmenke): This depends on test_support_base, which depends on | |
| 1352 # # icu. Figure out a way to remove that dependency. | |
| 1353 # 'dependencies': [ | |
| 1354 # '../testing/android/native_test.gyp:native_test_native_code', | |
| 1355 # ] | |
| 1356 | |
| 1357 set_sources_assignment_filter([]) | |
| 1358 sources += [ "base/address_tracker_linux_unittest.cc" ] | |
| 1359 set_sources_assignment_filter(sources_assignment_filter) | |
| 1360 } | |
| 1361 | |
| 1362 if (use_icu_alternatives_on_android) { | |
| 1363 sources -= [ | |
| 1364 "base/filename_util_unittest.cc", | |
| 1365 "base/net_util_icu_unittest.cc", | |
| 1366 ] | |
| 1367 deps -= [ "//base:i18n" ] | |
| 1368 } | |
| 1369 } | |
| 1370 | |
| 1371 executable("quic_server") { | |
| 1372 sources = [ "quic/quic_server_bin.cc" ] | |
| 1373 deps = [ | |
| 1374 ":quic_tools", | |
| 1375 ":net", | |
| 1376 "//base", | |
| 1377 "//third_party/boringssl", | |
| 1378 ] | |
| 1379 } | |
| 1380 | |
| 1381 } # !is_android && !is_win && !is_mac | 1390 } # !is_android && !is_win && !is_mac |
| OLD | NEW |