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