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/sha256_legacy_support_nss_win.cc" ] |
254 "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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 | 498 |
507 if (is_android) { | 499 if (is_android) { |
508 # Add some Linux sources that were excluded by the filter, but which | 500 # Add some Linux sources that were excluded by the filter, but which |
509 # are needed. | 501 # are needed. |
510 set_sources_assignment_filter([]) | 502 set_sources_assignment_filter([]) |
511 sources += [ | 503 sources += [ |
512 "base/platform_mime_util_linux.cc", | 504 "base/platform_mime_util_linux.cc", |
513 "base/address_tracker_linux.cc", | 505 "base/address_tracker_linux.cc", |
514 "base/address_tracker_linux.h", | 506 "base/address_tracker_linux.h", |
515 "base/net_util_linux.cc", | 507 "base/net_util_linux.cc", |
516 "base/net_util_linux.h" | 508 "base/net_util_linux.h", |
517 ] | 509 ] |
518 set_sources_assignment_filter(sources_assignment_filter) | 510 set_sources_assignment_filter(sources_assignment_filter) |
519 | 511 |
520 if (!is_android_webview_build) { | 512 if (!is_android_webview_build) { |
521 deps += [ ":net_jni_headers" ] | 513 deps += [ ":net_jni_headers" ] |
522 } | 514 } |
523 } | 515 } |
524 | 516 |
525 if (use_icu_alternatives_on_android) { | 517 if (use_icu_alternatives_on_android) { |
526 deps -= [ | 518 deps -= [ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 "server/http_server.h", | 558 "server/http_server.h", |
567 "server/http_server_request_info.cc", | 559 "server/http_server_request_info.cc", |
568 "server/http_server_request_info.h", | 560 "server/http_server_request_info.h", |
569 "server/http_server_response_info.cc", | 561 "server/http_server_response_info.cc", |
570 "server/http_server_response_info.h", | 562 "server/http_server_response_info.h", |
571 "server/web_socket.cc", | 563 "server/web_socket.cc", |
572 "server/web_socket.h", | 564 "server/web_socket.h", |
573 ] | 565 ] |
574 configs += [ | 566 configs += [ |
575 "//build/config/compiler:wexit_time_destructors", | 567 "//build/config/compiler:wexit_time_destructors", |
576 ":net_win_size_truncation" | 568 ":net_win_size_truncation", |
577 ] | 569 ] |
578 deps = [ | 570 deps = [ |
579 ":net", | 571 ":net", |
580 "//base", | 572 "//base", |
581 ] | 573 ] |
582 } | 574 } |
583 | 575 |
584 executable("dump_cache") { | 576 executable("dump_cache") { |
585 testonly = true | 577 testonly = true |
586 sources = [ | 578 sources = [ |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 "//base/test:test_support", | 690 "//base/test:test_support", |
699 "//crypto", | 691 "//crypto", |
700 "//net", | 692 "//net", |
701 "//net/tools/tld_cleanup", | 693 "//net/tools/tld_cleanup", |
702 "//testing/gmock", | 694 "//testing/gmock", |
703 "//testing/gtest", | 695 "//testing/gtest", |
704 "//url", | 696 "//url", |
705 ] | 697 ] |
706 | 698 |
707 if (!use_openssl && (use_nss_certs || is_ios)) { | 699 if (!use_openssl && (use_nss_certs || is_ios)) { |
708 public_deps += ["//crypto:platform" ] | 700 public_deps += [ "//crypto:platform" ] |
709 } | 701 } |
710 | 702 |
711 if (!is_android) { | 703 if (!is_android) { |
712 sources -= [ | 704 sources -= [ |
713 "test/spawned_test_server/remote_test_server.cc", | 705 "test/spawned_test_server/remote_test_server.cc", |
714 "test/spawned_test_server/remote_test_server.h", | 706 "test/spawned_test_server/remote_test_server.h", |
715 "test/spawned_test_server/spawner_communicator.cc", | 707 "test/spawned_test_server/spawner_communicator.cc", |
716 "test/spawned_test_server/spawner_communicator.h", | 708 "test/spawned_test_server/spawner_communicator.h", |
717 ] | 709 ] |
718 } | 710 } |
719 | 711 |
720 if (use_v8_in_net) { | 712 if (use_v8_in_net) { |
721 public_deps += [ ":net_with_v8" ] | 713 public_deps += [ ":net_with_v8" ] |
722 } | 714 } |
723 | 715 |
724 if (!enable_mdns) { | 716 if (!enable_mdns) { |
725 sources -= [ | 717 sources -= [ |
726 "dns/mock_mdns_socket_factory.cc", | 718 "dns/mock_mdns_socket_factory.cc", |
727 "dns/mock_mdns_socket_factory.h", | 719 "dns/mock_mdns_socket_factory.h", |
728 ] | 720 ] |
729 } | 721 } |
730 | 722 |
731 if (!use_nss_certs) { | 723 if (!use_nss_certs) { |
732 sources -= [ | 724 sources -= [ "test/cert_test_util_nss.cc" ] |
733 "test/cert_test_util_nss.cc", | |
734 ] | |
735 } | 725 } |
736 } | 726 } |
737 | 727 |
738 source_set("balsa") { | 728 source_set("balsa") { |
739 sources = [ | 729 sources = [ |
740 "tools/balsa/balsa_enums.h", | 730 "tools/balsa/balsa_enums.h", |
741 "tools/balsa/balsa_frame.cc", | 731 "tools/balsa/balsa_frame.cc", |
742 "tools/balsa/balsa_frame.h", | 732 "tools/balsa/balsa_frame.h", |
743 "tools/balsa/balsa_headers.cc", | 733 "tools/balsa/balsa_headers.cc", |
744 "tools/balsa/balsa_headers.h", | 734 "tools/balsa/balsa_headers.h", |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 "//gin", | 778 "//gin", |
789 "//url", | 779 "//url", |
790 "//v8", | 780 "//v8", |
791 ] | 781 ] |
792 } | 782 } |
793 } | 783 } |
794 | 784 |
795 if (!is_ios && !is_android) { | 785 if (!is_ios && !is_android) { |
796 executable("crash_cache") { | 786 executable("crash_cache") { |
797 testonly = true | 787 testonly = true |
798 sources = [ "tools/crash_cache/crash_cache.cc" ] | 788 sources = [ |
| 789 "tools/crash_cache/crash_cache.cc", |
| 790 ] |
799 configs += [ ":net_win_size_truncation" ] | 791 configs += [ ":net_win_size_truncation" ] |
800 deps = [ | 792 deps = [ |
801 ":net", | 793 ":net", |
802 ":test_support", | 794 ":test_support", |
803 "//base", | 795 "//base", |
804 ] | 796 ] |
805 } | 797 } |
806 | 798 |
807 executable("crl_set_dump") { | 799 executable("crl_set_dump") { |
808 testonly = true | 800 testonly = true |
809 sources = [ "tools/crl_set_dump/crl_set_dump.cc" ] | 801 sources = [ |
| 802 "tools/crl_set_dump/crl_set_dump.cc", |
| 803 ] |
810 configs += [ ":net_win_size_truncation" ] | 804 configs += [ ":net_win_size_truncation" ] |
811 deps = [ | 805 deps = [ |
812 ":net", | 806 ":net", |
813 "//base", | 807 "//base", |
814 ] | 808 ] |
815 } | 809 } |
816 | 810 |
817 executable("dns_fuzz_stub") { | 811 executable("dns_fuzz_stub") { |
818 testonly = true | 812 testonly = true |
819 sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ] | 813 sources = [ |
| 814 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", |
| 815 ] |
820 configs += [ ":net_win_size_truncation" ] | 816 configs += [ ":net_win_size_truncation" ] |
821 deps = [ | 817 deps = [ |
822 ":net", | 818 ":net", |
823 "//base", | 819 "//base", |
824 ] | 820 ] |
825 } | 821 } |
826 | 822 |
827 executable("gdig") { | 823 executable("gdig") { |
828 testonly = true | 824 testonly = true |
829 sources = [ | 825 sources = [ |
830 "tools/gdig/file_net_log.cc", | 826 "tools/gdig/file_net_log.cc", |
831 "tools/gdig/gdig.cc", | 827 "tools/gdig/gdig.cc", |
832 ] | 828 ] |
833 deps = [ | 829 deps = [ |
834 ":net", | 830 ":net", |
835 "//base", | 831 "//base", |
836 ] | 832 ] |
837 } | 833 } |
838 | 834 |
839 executable("get_server_time") { | 835 executable("get_server_time") { |
840 testonly = true | 836 testonly = true |
841 sources = [ "tools/get_server_time/get_server_time.cc" ] | 837 sources = [ |
| 838 "tools/get_server_time/get_server_time.cc", |
| 839 ] |
842 configs += [ ":net_win_size_truncation" ] | 840 configs += [ ":net_win_size_truncation" ] |
843 deps = [ | 841 deps = [ |
844 ":net", | 842 ":net", |
845 "//base", | 843 "//base", |
846 "//base:i18n", | 844 "//base:i18n", |
847 "//url", | 845 "//url", |
848 ] | 846 ] |
849 } | 847 } |
850 | 848 |
851 if (use_v8_in_net) { | 849 if (use_v8_in_net) { |
852 executable("net_watcher") { | 850 executable("net_watcher") { |
853 testonly = true | 851 testonly = true |
854 sources = [ "tools/net_watcher/net_watcher.cc" ] | 852 sources = [ |
| 853 "tools/net_watcher/net_watcher.cc", |
| 854 ] |
855 deps = [ | 855 deps = [ |
856 ":net", | 856 ":net", |
857 ":net_with_v8", | 857 ":net_with_v8", |
858 "//base", | 858 "//base", |
859 ] | 859 ] |
860 | 860 |
861 if (is_desktop_linux) { | 861 if (is_desktop_linux) { |
862 configs += [ | 862 configs += [ |
863 "//build/config/linux:gconf", | 863 "//build/config/linux:gconf", |
864 "//build/config/linux:glib", | 864 "//build/config/linux:glib", |
865 ] | 865 ] |
866 deps += [ "//build/config/linux:gio" ] | 866 deps += [ "//build/config/linux:gio" ] |
867 } | 867 } |
868 } | 868 } |
869 } | 869 } |
870 | 870 |
871 executable("run_testserver") { | 871 executable("run_testserver") { |
872 testonly = true | 872 testonly = true |
873 sources = [ "tools/testserver/run_testserver.cc" ] | 873 sources = [ |
| 874 "tools/testserver/run_testserver.cc", |
| 875 ] |
874 deps = [ | 876 deps = [ |
875 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not | 877 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
876 # in the GYP build, and can be removed when the bug is fixed. | 878 # in the GYP build, and can be removed when the bug is fixed. |
877 ":test_support", | 879 ":test_support", |
878 "//base", | 880 "//base", |
879 "//base/test:test_support", | 881 "//base/test:test_support", |
880 "//testing/gtest", | 882 "//testing/gtest", |
881 ] | 883 ] |
882 } | 884 } |
883 | 885 |
884 executable("stress_cache") { | 886 executable("stress_cache") { |
885 testonly = true | 887 testonly = true |
886 sources = [ "disk_cache/blockfile/stress_cache.cc" ] | 888 sources = [ |
| 889 "disk_cache/blockfile/stress_cache.cc", |
| 890 ] |
887 configs += [ ":net_win_size_truncation" ] | 891 configs += [ ":net_win_size_truncation" ] |
888 deps = [ | 892 deps = [ |
889 ":net", | 893 ":net", |
890 ":test_support", | 894 ":test_support", |
891 "//base", | 895 "//base", |
892 ] | 896 ] |
893 } | 897 } |
894 | 898 |
895 executable("tld_cleanup") { | 899 executable("tld_cleanup") { |
896 sources = [ "tools/tld_cleanup/tld_cleanup.cc" ] | 900 sources = [ |
| 901 "tools/tld_cleanup/tld_cleanup.cc", |
| 902 ] |
897 configs += [ ":net_win_size_truncation" ] | 903 configs += [ ":net_win_size_truncation" ] |
898 deps = [ | 904 deps = [ |
899 "//base", | 905 "//base", |
900 "//base:i18n", | 906 "//base:i18n", |
901 "//net/tools/tld_cleanup", | 907 "//net/tools/tld_cleanup", |
902 ] | 908 ] |
903 } | 909 } |
904 } | 910 } |
905 | 911 |
906 if (is_linux) { | 912 if (is_linux) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 ":net", | 980 ":net", |
975 ":test_support", | 981 ":test_support", |
976 "//testing/gtest", | 982 "//testing/gtest", |
977 "//testing/gmock", | 983 "//testing/gmock", |
978 "//third_party/boringssl", | 984 "//third_party/boringssl", |
979 ] | 985 ] |
980 } | 986 } |
981 | 987 |
982 executable("flip_in_mem_edsm_server") { | 988 executable("flip_in_mem_edsm_server") { |
983 testonly = true | 989 testonly = true |
984 sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ] | 990 sources = [ |
| 991 "tools/flip_server/flip_in_mem_edsm_server.cc", |
| 992 ] |
985 deps = [ | 993 deps = [ |
986 ":flip_in_mem_edsm_server_base", | 994 ":flip_in_mem_edsm_server_base", |
987 ":net", | 995 ":net", |
988 "//base", | 996 "//base", |
989 ] | 997 ] |
990 } | 998 } |
991 | 999 |
992 source_set("quic_base") { | 1000 source_set("quic_base") { |
993 sources = [ | 1001 sources = [ |
994 "tools/quic/quic_client.cc", | 1002 "tools/quic/quic_client.cc", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 ":net", | 1036 ":net", |
1029 "//base", | 1037 "//base", |
1030 "//base/third_party/dynamic_annotations", | 1038 "//base/third_party/dynamic_annotations", |
1031 "//crypto", | 1039 "//crypto", |
1032 "//third_party/boringssl", | 1040 "//third_party/boringssl", |
1033 "//url", | 1041 "//url", |
1034 ] | 1042 ] |
1035 } | 1043 } |
1036 | 1044 |
1037 executable("quic_client") { | 1045 executable("quic_client") { |
1038 sources = [ "tools/quic/quic_client_bin.cc" ] | 1046 sources = [ |
| 1047 "tools/quic/quic_client_bin.cc", |
| 1048 ] |
1039 deps = [ | 1049 deps = [ |
1040 ":quic_base", | 1050 ":quic_base", |
1041 ":net", | 1051 ":net", |
1042 "//base", | 1052 "//base", |
1043 "//third_party/boringssl", | 1053 "//third_party/boringssl", |
1044 ] | 1054 ] |
1045 } | 1055 } |
1046 } | 1056 } |
1047 | 1057 |
1048 if (is_android) { | 1058 if (is_android) { |
(...skipping 14 matching lines...) Expand all Loading... |
1063 sources = [ | 1073 sources = [ |
1064 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", | 1074 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", |
1065 ] | 1075 ] |
1066 jni_package = "net" | 1076 jni_package = "net" |
1067 } | 1077 } |
1068 } | 1078 } |
1069 | 1079 |
1070 if (is_android || is_linux) { | 1080 if (is_android || is_linux) { |
1071 executable("disk_cache_memory_test") { | 1081 executable("disk_cache_memory_test") { |
1072 testonly = true | 1082 testonly = true |
1073 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] | 1083 sources = [ |
| 1084 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", |
| 1085 ] |
1074 deps = [ | 1086 deps = [ |
1075 ":net", | 1087 ":net", |
1076 "//base", | 1088 "//base", |
1077 ] | 1089 ] |
1078 } | 1090 } |
1079 } | 1091 } |
1080 | 1092 |
1081 # TODO(GYP) make this compile on Android, we need some native test deps done. | 1093 # TODO(GYP) make this compile on Android, we need some native test deps done. |
1082 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. | 1094 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. |
1083 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. | 1095 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. |
1084 if (!is_android && !is_win && !is_mac) { | 1096 if (!is_android && !is_win && !is_mac) { |
1085 | 1097 source_set("quic_tools") { |
1086 source_set("quic_tools") { | 1098 sources = [ |
1087 sources = [ | 1099 "quic/quic_dispatcher.cc", |
1088 "quic/quic_dispatcher.cc", | 1100 "quic/quic_dispatcher.h", |
1089 "quic/quic_dispatcher.h", | 1101 "quic/quic_in_memory_cache.cc", |
1090 "quic/quic_in_memory_cache.cc", | 1102 "quic/quic_in_memory_cache.h", |
1091 "quic/quic_in_memory_cache.h", | 1103 "quic/quic_per_connection_packet_writer.cc", |
1092 "quic/quic_per_connection_packet_writer.cc", | 1104 "quic/quic_per_connection_packet_writer.h", |
1093 "quic/quic_per_connection_packet_writer.h", | 1105 "quic/quic_server.cc", |
1094 "quic/quic_server.cc", | 1106 "quic/quic_server.h", |
1095 "quic/quic_server.h", | 1107 "quic/quic_server_packet_writer.cc", |
1096 "quic/quic_server_packet_writer.cc", | 1108 "quic/quic_server_packet_writer.h", |
1097 "quic/quic_server_packet_writer.h", | 1109 "quic/quic_server_session.cc", |
1098 "quic/quic_server_session.cc", | 1110 "quic/quic_server_session.h", |
1099 "quic/quic_server_session.h", | 1111 "quic/quic_spdy_server_stream.cc", |
1100 "quic/quic_spdy_server_stream.cc", | 1112 "quic/quic_spdy_server_stream.h", |
1101 "quic/quic_spdy_server_stream.h", | 1113 "quic/quic_time_wait_list_manager.cc", |
1102 "quic/quic_time_wait_list_manager.cc", | 1114 "quic/quic_time_wait_list_manager.h", |
1103 "quic/quic_time_wait_list_manager.h", | 1115 ] |
1104 ] | 1116 deps = [ |
1105 deps = [ | 1117 ":net", |
1106 ":net", | 1118 "//base", |
1107 "//base", | 1119 "//base/third_party/dynamic_annotations", |
1108 "//base/third_party/dynamic_annotations", | 1120 "//url", |
1109 "//url", | |
1110 ] | |
1111 } | |
1112 | |
1113 test("net_unittests") { | |
1114 sources = gypi_values.net_test_sources | |
1115 | |
1116 configs += [ ":net_win_size_truncation" ] | |
1117 defines = [] | |
1118 | |
1119 deps = [ | |
1120 ":extras", | |
1121 ":http_server", | |
1122 ":net", | |
1123 ":quic_tools", | |
1124 ":test_support", | |
1125 "//base", | |
1126 "//base:i18n", | |
1127 "//base:prefs_test_support", | |
1128 "//base/allocator", | |
1129 "//base/third_party/dynamic_annotations", | |
1130 "//crypto", | |
1131 "//crypto:platform", | |
1132 "//crypto:test_support", | |
1133 "//net/base/registry_controlled_domains", | |
1134 "//testing/gmock", | |
1135 "//testing/gtest", | |
1136 "//third_party/zlib", | |
1137 "//url", | |
1138 ] | |
1139 | |
1140 if (is_linux) { | |
1141 sources += gypi_values.net_linux_test_sources | |
1142 deps += [ | |
1143 ":balsa", | |
1144 ":epoll_server", | |
1145 ":flip_in_mem_edsm_server_base", | |
1146 ":quic_base", | |
1147 ] | 1121 ] |
1148 } | 1122 } |
1149 | 1123 |
1150 if (is_mac || is_ios) { | 1124 test("net_unittests") { |
1151 sources += gypi_values.net_base_test_mac_ios_sources | 1125 sources = gypi_values.net_test_sources |
| 1126 |
| 1127 configs += [ ":net_win_size_truncation" ] |
| 1128 defines = [] |
| 1129 |
| 1130 deps = [ |
| 1131 ":extras", |
| 1132 ":http_server", |
| 1133 ":net", |
| 1134 ":quic_tools", |
| 1135 ":test_support", |
| 1136 "//base", |
| 1137 "//base:i18n", |
| 1138 "//base:prefs_test_support", |
| 1139 "//base/allocator", |
| 1140 "//base/third_party/dynamic_annotations", |
| 1141 "//crypto", |
| 1142 "//crypto:platform", |
| 1143 "//crypto:test_support", |
| 1144 "//net/base/registry_controlled_domains", |
| 1145 "//testing/gmock", |
| 1146 "//testing/gtest", |
| 1147 "//third_party/zlib", |
| 1148 "//url", |
| 1149 ] |
| 1150 |
| 1151 if (is_linux) { |
| 1152 sources += gypi_values.net_linux_test_sources |
| 1153 deps += [ |
| 1154 ":balsa", |
| 1155 ":epoll_server", |
| 1156 ":flip_in_mem_edsm_server_base", |
| 1157 ":quic_base", |
| 1158 ] |
| 1159 } |
| 1160 |
| 1161 if (is_mac || is_ios) { |
| 1162 sources += gypi_values.net_base_test_mac_ios_sources |
| 1163 } |
| 1164 |
| 1165 if (is_chromeos) { |
| 1166 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] |
| 1167 } |
| 1168 |
| 1169 if (is_android) { |
| 1170 sources -= [ |
| 1171 # See bug http://crbug.com/344533. |
| 1172 "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1173 |
| 1174 # No res_ninit() et al on Android, so this doesn't make a lot of |
| 1175 # sense. |
| 1176 "dns/dns_config_service_posix_unittest.cc", |
| 1177 ] |
| 1178 deps += [ |
| 1179 ":net_javatests", # FIXME(brettw) |
| 1180 ":net_test_jni_headers", |
| 1181 ] |
| 1182 } |
| 1183 |
| 1184 if (!use_nss_certs) { |
| 1185 sources -= [ "ssl/client_cert_store_nss_unittest.cc" ] |
| 1186 if (is_chromeos) { # Already removed for all non-ChromeOS builds. |
| 1187 sources -= [ "ssl/client_cert_store_chromeos_unittest.cc" ] |
| 1188 } |
| 1189 } |
| 1190 |
| 1191 if (use_openssl) { |
| 1192 # When building for OpenSSL, we need to exclude NSS specific tests |
| 1193 # or functionality not supported by OpenSSL yet. |
| 1194 # TODO(bulach): Add equivalent tests when the underlying |
| 1195 # functionality is ported to OpenSSL. |
| 1196 sources -= [ |
| 1197 "cert/nss_cert_database_unittest.cc", |
| 1198 "cert/x509_util_nss_unittest.cc", |
| 1199 "quic/test_tools/crypto_test_utils_nss.cc", |
| 1200 ] |
| 1201 if (is_chromeos) { |
| 1202 # These were already removed in the non-ChromeOS case. |
| 1203 sources -= [ |
| 1204 "cert/nss_cert_database_chromeos_unittest.cc", |
| 1205 "cert/nss_profile_filter_chromeos_unittest.cc", |
| 1206 ] |
| 1207 } |
| 1208 } else { |
| 1209 sources -= [ |
| 1210 "cert/x509_util_openssl_unittest.cc", |
| 1211 "quic/test_tools/crypto_test_utils_openssl.cc", |
| 1212 "socket/ssl_client_socket_openssl_unittest.cc", |
| 1213 "socket/ssl_session_cache_openssl_unittest.cc", |
| 1214 ] |
| 1215 if (!is_desktop_linux && !is_chromeos) { |
| 1216 sources -= [ "cert/nss_cert_database_unittest.cc" ] |
| 1217 } |
| 1218 } |
| 1219 |
| 1220 if (use_kerberos) { |
| 1221 defines += [ "USE_KERBEROS" ] |
| 1222 } else { |
| 1223 sources -= [ |
| 1224 "http/http_auth_gssapi_posix_unittest.cc", |
| 1225 "http/http_auth_handler_negotiate_unittest.cc", |
| 1226 "http/mock_gssapi_library_posix.cc", |
| 1227 "http/mock_gssapi_library_posix.h", |
| 1228 ] |
| 1229 } |
| 1230 |
| 1231 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { |
| 1232 # Only include this test when on Posix and using NSS for |
| 1233 # cert verification or on iOS (which also uses NSS for certs). |
| 1234 sources -= [ "ocsp/nss_ocsp_unittest.cc" ] |
| 1235 } |
| 1236 |
| 1237 if (!use_openssl_certs) { |
| 1238 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
| 1239 } |
| 1240 |
| 1241 if (!enable_websockets) { |
| 1242 sources -= [ |
| 1243 "websockets/websocket_basic_stream_test.cc", |
| 1244 "websockets/websocket_channel_test.cc", |
| 1245 "websockets/websocket_deflate_predictor_impl_test.cc", |
| 1246 "websockets/websocket_deflate_stream_test.cc", |
| 1247 "websockets/websocket_deflater_test.cc", |
| 1248 "websockets/websocket_errors_test.cc", |
| 1249 "websockets/websocket_extension_parser_test.cc", |
| 1250 "websockets/websocket_frame_parser_test.cc", |
| 1251 "websockets/websocket_frame_test.cc", |
| 1252 "websockets/websocket_handshake_challenge_test.cc", |
| 1253 "websockets/websocket_handshake_stream_create_helper_test.cc", |
| 1254 "websockets/websocket_inflater_test.cc", |
| 1255 "websockets/websocket_stream_test.cc", |
| 1256 "websockets/websocket_test_util.cc", |
| 1257 "websockets/websocket_test_util.h", |
| 1258 ] |
| 1259 } |
| 1260 |
| 1261 if (disable_file_support) { |
| 1262 sources -= [ |
| 1263 "base/directory_lister_unittest.cc", |
| 1264 "url_request/url_request_file_job_unittest.cc", |
| 1265 ] |
| 1266 } |
| 1267 |
| 1268 if (disable_ftp_support) { |
| 1269 sources -= [ |
| 1270 "ftp/ftp_auth_cache_unittest.cc", |
| 1271 "ftp/ftp_ctrl_response_buffer_unittest.cc", |
| 1272 "ftp/ftp_directory_listing_parser_ls_unittest.cc", |
| 1273 "ftp/ftp_directory_listing_parser_netware_unittest.cc", |
| 1274 "ftp/ftp_directory_listing_parser_os2_unittest.cc", |
| 1275 "ftp/ftp_directory_listing_parser_unittest.cc", |
| 1276 "ftp/ftp_directory_listing_parser_unittest.h", |
| 1277 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 1278 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 1279 "ftp/ftp_network_transaction_unittest.cc", |
| 1280 "ftp/ftp_util_unittest.cc", |
| 1281 "url_request/url_request_ftp_job_unittest.cc", |
| 1282 ] |
| 1283 } |
| 1284 |
| 1285 if (!enable_built_in_dns) { |
| 1286 sources -= [ |
| 1287 "dns/address_sorter_posix_unittest.cc", |
| 1288 "dns/address_sorter_unittest.cc", |
| 1289 ] |
| 1290 } |
| 1291 |
| 1292 # Always need use_v8_in_net to be 1 to run on Android, so just remove |
| 1293 # net_unittest's dependency on v8 when using icu alternatives instead of |
| 1294 # setting use_v8_in_net to 0. |
| 1295 if (use_v8_in_net && !use_icu_alternatives_on_android) { |
| 1296 deps += [ ":net_with_v8" ] |
| 1297 } else { |
| 1298 sources -= [ |
| 1299 "proxy/proxy_resolver_v8_unittest.cc", |
| 1300 "proxy/proxy_resolver_v8_tracing_unittest.cc", |
| 1301 ] |
| 1302 } |
| 1303 |
| 1304 if (!enable_mdns) { |
| 1305 sources -= [ |
| 1306 "dns/mdns_cache_unittest.cc", |
| 1307 "dns/mdns_client_unittest.cc", |
| 1308 "dns/record_parsed_unittest.cc", |
| 1309 "dns/record_rdata_unittest.cc", |
| 1310 ] |
| 1311 } |
| 1312 |
| 1313 if (is_ios) { |
| 1314 # TODO(GYP) |
| 1315 # 'actions': [ |
| 1316 # { |
| 1317 # 'action_name': 'copy_test_data', |
| 1318 # 'variables': { |
| 1319 # 'test_data_files': [ |
| 1320 # 'data/ssl/certificates/', |
| 1321 # 'data/test.html', |
| 1322 # 'data/url_request_unittest/', |
| 1323 # ], |
| 1324 # 'test_data_prefix': 'net', |
| 1325 # }, |
| 1326 # 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 1327 # }, |
| 1328 # ], |
| 1329 sources -= [ |
| 1330 # TODO(droger): The following tests are disabled because the |
| 1331 # implementation is missing or incomplete. |
| 1332 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 1333 "base/keygen_handler_unittest.cc", |
| 1334 "disk_cache/backend_unittest.cc", |
| 1335 "disk_cache/blockfile/block_files_unittest.cc", |
| 1336 |
| 1337 # Need to read input data files. |
| 1338 "filter/gzip_filter_unittest.cc", |
| 1339 "socket/ssl_server_socket_unittest.cc", |
| 1340 "spdy/fuzzing/hpack_fuzz_util_test.cc", |
| 1341 |
| 1342 # Need TestServer. |
| 1343 "proxy/proxy_script_fetcher_impl_unittest.cc", |
| 1344 "socket/ssl_client_socket_unittest.cc", |
| 1345 "url_request/url_fetcher_impl_unittest.cc", |
| 1346 "url_request/url_request_context_builder_unittest.cc", |
| 1347 |
| 1348 # Needs GetAppOutput(). |
| 1349 "test/python_utils_unittest.cc", |
| 1350 |
| 1351 # The following tests are disabled because they don't apply to |
| 1352 # iOS. |
| 1353 # OS is not "linux" or "freebsd" or "openbsd". |
| 1354 "socket/unix_domain_client_socket_posix_unittest.cc", |
| 1355 "socket/unix_domain_listen_socket_posix_unittest.cc", |
| 1356 "socket/unix_domain_server_socket_posix_unittest.cc", |
| 1357 |
| 1358 # See bug http://crbug.com/344533. |
| 1359 "disk_cache/blockfile/index_table_v3_unittest.cc", |
| 1360 ] |
| 1361 } |
| 1362 |
| 1363 if (is_android) { |
| 1364 sources -= [ "dns/dns_config_service_posix_unittest.cc" ] |
| 1365 |
| 1366 # TODO(GYP) |
| 1367 # # TODO(mmenke): This depends on test_support_base, which depends on |
| 1368 # # icu. Figure out a way to remove that dependency. |
| 1369 # 'dependencies': [ |
| 1370 # '../testing/android/native_test.gyp:native_test_native_code', |
| 1371 # ] |
| 1372 |
| 1373 set_sources_assignment_filter([]) |
| 1374 sources += [ "base/address_tracker_linux_unittest.cc" ] |
| 1375 set_sources_assignment_filter(sources_assignment_filter) |
| 1376 } |
| 1377 |
| 1378 if (use_icu_alternatives_on_android) { |
| 1379 sources -= [ |
| 1380 "base/filename_util_unittest.cc", |
| 1381 "base/net_util_icu_unittest.cc", |
| 1382 ] |
| 1383 deps -= [ "//base:i18n" ] |
| 1384 } |
1152 } | 1385 } |
1153 | 1386 |
1154 if (is_chromeos) { | 1387 executable("quic_server") { |
1155 sources -= [ | 1388 sources = [ |
1156 "proxy/proxy_config_service_linux_unittest.cc", | 1389 "quic/quic_server_bin.cc", |
| 1390 ] |
| 1391 deps = [ |
| 1392 ":quic_tools", |
| 1393 ":net", |
| 1394 "//base", |
| 1395 "//third_party/boringssl", |
1157 ] | 1396 ] |
1158 } | 1397 } |
1159 | |
1160 if (is_android) { | |
1161 sources -= [ | |
1162 # See bug http://crbug.com/344533. | |
1163 "disk_cache/blockfile/index_table_v3_unittest.cc", | |
1164 # No res_ninit() et al on Android, so this doesn't make a lot of | |
1165 # sense. | |
1166 "dns/dns_config_service_posix_unittest.cc", | |
1167 ] | |
1168 deps += [ | |
1169 ":net_javatests", # FIXME(brettw) | |
1170 ":net_test_jni_headers", | |
1171 ] | |
1172 } | |
1173 | |
1174 if (!use_nss_certs) { | |
1175 sources -= [ | |
1176 "ssl/client_cert_store_nss_unittest.cc", | |
1177 ] | |
1178 if (is_chromeos) { # Already removed for all non-ChromeOS builds. | |
1179 sources -= [ | |
1180 "ssl/client_cert_store_chromeos_unittest.cc", | |
1181 ] | |
1182 } | |
1183 } | |
1184 | |
1185 if (use_openssl) { | |
1186 # When building for OpenSSL, we need to exclude NSS specific tests | |
1187 # or functionality not supported by OpenSSL yet. | |
1188 # TODO(bulach): Add equivalent tests when the underlying | |
1189 # functionality is ported to OpenSSL. | |
1190 sources -= [ | |
1191 "cert/nss_cert_database_unittest.cc", | |
1192 "cert/x509_util_nss_unittest.cc", | |
1193 "quic/test_tools/crypto_test_utils_nss.cc", | |
1194 ] | |
1195 if (is_chromeos) { | |
1196 # These were already removed in the non-ChromeOS case. | |
1197 sources -= [ | |
1198 "cert/nss_cert_database_chromeos_unittest.cc", | |
1199 "cert/nss_profile_filter_chromeos_unittest.cc", | |
1200 ] | |
1201 } | |
1202 } else { | |
1203 sources -= [ | |
1204 "cert/x509_util_openssl_unittest.cc", | |
1205 "quic/test_tools/crypto_test_utils_openssl.cc", | |
1206 "socket/ssl_client_socket_openssl_unittest.cc", | |
1207 "socket/ssl_session_cache_openssl_unittest.cc", | |
1208 ] | |
1209 if (!is_desktop_linux && !is_chromeos) { | |
1210 sources -= [ "cert/nss_cert_database_unittest.cc" ] | |
1211 } | |
1212 } | |
1213 | |
1214 if (use_kerberos) { | |
1215 defines += [ "USE_KERBEROS" ] | |
1216 } else { | |
1217 sources -= [ | |
1218 "http/http_auth_gssapi_posix_unittest.cc", | |
1219 "http/http_auth_handler_negotiate_unittest.cc", | |
1220 "http/mock_gssapi_library_posix.cc", | |
1221 "http/mock_gssapi_library_posix.h", | |
1222 ] | |
1223 } | |
1224 | |
1225 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) { | |
1226 # Only include this test when on Posix and using NSS for | |
1227 # cert verification or on iOS (which also uses NSS for certs). | |
1228 sources -= [ "ocsp/nss_ocsp_unittest.cc" ] | |
1229 } | |
1230 | |
1231 if (!use_openssl_certs) { | |
1232 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] | |
1233 } | |
1234 | |
1235 if (!enable_websockets) { | |
1236 sources -= [ | |
1237 "websockets/websocket_basic_stream_test.cc", | |
1238 "websockets/websocket_channel_test.cc", | |
1239 "websockets/websocket_deflate_predictor_impl_test.cc", | |
1240 "websockets/websocket_deflate_stream_test.cc", | |
1241 "websockets/websocket_deflater_test.cc", | |
1242 "websockets/websocket_errors_test.cc", | |
1243 "websockets/websocket_extension_parser_test.cc", | |
1244 "websockets/websocket_frame_parser_test.cc", | |
1245 "websockets/websocket_frame_test.cc", | |
1246 "websockets/websocket_handshake_challenge_test.cc", | |
1247 "websockets/websocket_handshake_stream_create_helper_test.cc", | |
1248 "websockets/websocket_inflater_test.cc", | |
1249 "websockets/websocket_stream_test.cc", | |
1250 "websockets/websocket_test_util.cc", | |
1251 "websockets/websocket_test_util.h", | |
1252 ] | |
1253 } | |
1254 | |
1255 if (disable_file_support) { | |
1256 sources -= [ | |
1257 "base/directory_lister_unittest.cc", | |
1258 "url_request/url_request_file_job_unittest.cc", | |
1259 ] | |
1260 } | |
1261 | |
1262 if (disable_ftp_support) { | |
1263 sources -= [ | |
1264 "ftp/ftp_auth_cache_unittest.cc", | |
1265 "ftp/ftp_ctrl_response_buffer_unittest.cc", | |
1266 "ftp/ftp_directory_listing_parser_ls_unittest.cc", | |
1267 "ftp/ftp_directory_listing_parser_netware_unittest.cc", | |
1268 "ftp/ftp_directory_listing_parser_os2_unittest.cc", | |
1269 "ftp/ftp_directory_listing_parser_unittest.cc", | |
1270 "ftp/ftp_directory_listing_parser_unittest.h", | |
1271 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | |
1272 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | |
1273 "ftp/ftp_network_transaction_unittest.cc", | |
1274 "ftp/ftp_util_unittest.cc", | |
1275 "url_request/url_request_ftp_job_unittest.cc", | |
1276 ] | |
1277 } | |
1278 | |
1279 if (!enable_built_in_dns) { | |
1280 sources -= [ | |
1281 "dns/address_sorter_posix_unittest.cc", | |
1282 "dns/address_sorter_unittest.cc", | |
1283 ] | |
1284 } | |
1285 | |
1286 # Always need use_v8_in_net to be 1 to run on Android, so just remove | |
1287 # net_unittest's dependency on v8 when using icu alternatives instead of | |
1288 # setting use_v8_in_net to 0. | |
1289 if (use_v8_in_net && !use_icu_alternatives_on_android) { | |
1290 deps += [ ":net_with_v8" ] | |
1291 } else { | |
1292 sources -= [ | |
1293 "proxy/proxy_resolver_v8_unittest.cc", | |
1294 "proxy/proxy_resolver_v8_tracing_unittest.cc", | |
1295 ] | |
1296 } | |
1297 | |
1298 if (!enable_mdns) { | |
1299 sources -= [ | |
1300 "dns/mdns_cache_unittest.cc", | |
1301 "dns/mdns_client_unittest.cc", | |
1302 "dns/record_parsed_unittest.cc", | |
1303 "dns/record_rdata_unittest.cc", | |
1304 ] | |
1305 } | |
1306 | |
1307 if (is_ios) { | |
1308 # TODO(GYP) | |
1309 # 'actions': [ | |
1310 # { | |
1311 # 'action_name': 'copy_test_data', | |
1312 # 'variables': { | |
1313 # 'test_data_files': [ | |
1314 # 'data/ssl/certificates/', | |
1315 # 'data/test.html', | |
1316 # 'data/url_request_unittest/', | |
1317 # ], | |
1318 # 'test_data_prefix': 'net', | |
1319 # }, | |
1320 # 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
1321 # }, | |
1322 # ], | |
1323 sources -= [ | |
1324 # TODO(droger): The following tests are disabled because the | |
1325 # implementation is missing or incomplete. | |
1326 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. | |
1327 "base/keygen_handler_unittest.cc", | |
1328 "disk_cache/backend_unittest.cc", | |
1329 "disk_cache/blockfile/block_files_unittest.cc", | |
1330 # Need to read input data files. | |
1331 "filter/gzip_filter_unittest.cc", | |
1332 "socket/ssl_server_socket_unittest.cc", | |
1333 "spdy/fuzzing/hpack_fuzz_util_test.cc", | |
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 # Needs GetAppOutput(). | |
1340 "test/python_utils_unittest.cc", | |
1341 | |
1342 # The following tests are disabled because they don't apply to | |
1343 # iOS. | |
1344 # OS is not "linux" or "freebsd" or "openbsd". | |
1345 "socket/unix_domain_client_socket_posix_unittest.cc", | |
1346 "socket/unix_domain_listen_socket_posix_unittest.cc", | |
1347 "socket/unix_domain_server_socket_posix_unittest.cc", | |
1348 | |
1349 # See bug http://crbug.com/344533. | |
1350 "disk_cache/blockfile/index_table_v3_unittest.cc", | |
1351 ] | |
1352 } | |
1353 | |
1354 if (is_android) { | |
1355 sources -= [ | |
1356 "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 } | |
1377 } | |
1378 | |
1379 executable("quic_server") { | |
1380 sources = [ "quic/quic_server_bin.cc" ] | |
1381 deps = [ | |
1382 ":quic_tools", | |
1383 ":net", | |
1384 "//base", | |
1385 "//third_party/boringssl", | |
1386 ] | |
1387 } | |
1388 | |
1389 } # !is_android && !is_win && !is_mac | 1398 } # !is_android && !is_win && !is_mac |
OLD | NEW |