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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 23 matching lines...) Expand all Loading... |
34 # So enable it for x86 only for now. | 34 # So enable it for x86 only for now. |
35 posix_avoid_mmap = is_android && current_cpu != "x86" | 35 posix_avoid_mmap = is_android && current_cpu != "x86" |
36 | 36 |
37 use_v8_in_net = !is_ios && !is_proto_quic | 37 use_v8_in_net = !is_ios && !is_proto_quic |
38 enable_built_in_dns = !is_ios && !is_proto_quic | 38 enable_built_in_dns = !is_ios && !is_proto_quic |
39 | 39 |
40 # True if certificates are represented with DER byte buffers. This can be true | 40 # True if certificates are represented with DER byte buffers. This can be true |
41 # in addition to use_openssl_certs or use_nss_certs, in that case byte certs | 41 # in addition to use_openssl_certs or use_nss_certs, in that case byte certs |
42 # are used internally but OpenSSL or NSS are used for certificate verification. | 42 # are used internally but OpenSSL or NSS are used for certificate verification. |
43 # TODO(mattm): crbug.com/671420: Implement and enable this for all platforms. | 43 # TODO(mattm): crbug.com/671420: Implement and enable this for all platforms. |
44 use_byte_certs = is_mac || is_android || is_nacl | 44 use_byte_certs = is_mac || is_android || is_nacl || is_ios |
45 | 45 |
46 buildflag_header("features") { | 46 buildflag_header("features") { |
47 header = "net_features.h" | 47 header = "net_features.h" |
48 flags = [ | 48 flags = [ |
49 "POSIX_AVOID_MMAP=$posix_avoid_mmap", | 49 "POSIX_AVOID_MMAP=$posix_avoid_mmap", |
50 "DISABLE_FILE_SUPPORT=$disable_file_support", | 50 "DISABLE_FILE_SUPPORT=$disable_file_support", |
51 "DISABLE_FTP_SUPPORT=$disable_ftp_support", | 51 "DISABLE_FTP_SUPPORT=$disable_ftp_support", |
52 "ENABLE_MDNS=$enable_mdns", | 52 "ENABLE_MDNS=$enable_mdns", |
53 "ENABLE_WEBSOCKETS=$enable_websockets", | 53 "ENABLE_WEBSOCKETS=$enable_websockets", |
54 "USE_BYTE_CERTS=$use_byte_certs", | 54 "USE_BYTE_CERTS=$use_byte_certs", |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 "cert/x509_certificate_ios.cc", | 598 "cert/x509_certificate_ios.cc", |
599 "cert/x509_certificate_known_roots_win.h", | 599 "cert/x509_certificate_known_roots_win.h", |
600 "cert/x509_certificate_mac.cc", | 600 "cert/x509_certificate_mac.cc", |
601 "cert/x509_certificate_nss.cc", | 601 "cert/x509_certificate_nss.cc", |
602 "cert/x509_certificate_openssl.cc", | 602 "cert/x509_certificate_openssl.cc", |
603 "cert/x509_certificate_win.cc", | 603 "cert/x509_certificate_win.cc", |
604 "cert/x509_util_android.cc", | 604 "cert/x509_util_android.cc", |
605 "cert/x509_util_android.h", | 605 "cert/x509_util_android.h", |
606 "cert/x509_util_ios.cc", | 606 "cert/x509_util_ios.cc", |
607 "cert/x509_util_ios.h", | 607 "cert/x509_util_ios.h", |
| 608 "cert/x509_util_ios_and_mac.cc", |
| 609 "cert/x509_util_ios_and_mac.h", |
608 "cert/x509_util_mac.cc", | 610 "cert/x509_util_mac.cc", |
609 "cert/x509_util_mac.h", | 611 "cert/x509_util_mac.h", |
610 "cert/x509_util_nss.cc", | 612 "cert/x509_util_nss.cc", |
611 "cert/x509_util_nss.h", | 613 "cert/x509_util_nss.h", |
612 "cert_net/cert_net_fetcher_impl.cc", | 614 "cert_net/cert_net_fetcher_impl.cc", |
613 "cert_net/cert_net_fetcher_impl.h", | 615 "cert_net/cert_net_fetcher_impl.h", |
614 "cert_net/nss_ocsp.cc", | 616 "cert_net/nss_ocsp.cc", |
615 "cert_net/nss_ocsp.h", | 617 "cert_net/nss_ocsp.h", |
616 "cookies/canonical_cookie.cc", | 618 "cookies/canonical_cookie.cc", |
617 "cookies/canonical_cookie.h", | 619 "cookies/canonical_cookie.h", |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 "base/mac/url_conversions.h", | 1887 "base/mac/url_conversions.h", |
1886 "base/mac/url_conversions.mm", | 1888 "base/mac/url_conversions.mm", |
1887 "base/network_change_notifier_mac.cc", | 1889 "base/network_change_notifier_mac.cc", |
1888 "base/network_change_notifier_mac.h", | 1890 "base/network_change_notifier_mac.h", |
1889 "base/network_config_watcher_mac.cc", | 1891 "base/network_config_watcher_mac.cc", |
1890 "base/network_config_watcher_mac.h", | 1892 "base/network_config_watcher_mac.h", |
1891 "base/network_interfaces_mac.cc", | 1893 "base/network_interfaces_mac.cc", |
1892 "base/network_interfaces_mac.h", | 1894 "base/network_interfaces_mac.h", |
1893 "base/platform_mime_util_mac.mm", | 1895 "base/platform_mime_util_mac.mm", |
1894 "cert/test_root_certs_mac.cc", | 1896 "cert/test_root_certs_mac.cc", |
| 1897 "cert/x509_util_ios_and_mac.cc", |
| 1898 "cert/x509_util_ios_and_mac.h", |
1895 "proxy/proxy_resolver_mac.cc", | 1899 "proxy/proxy_resolver_mac.cc", |
1896 "proxy/proxy_resolver_mac.h", | 1900 "proxy/proxy_resolver_mac.h", |
1897 "proxy/proxy_server_mac.cc", | 1901 "proxy/proxy_server_mac.cc", |
1898 ] | 1902 ] |
1899 | 1903 |
1900 sources -= [ "disk_cache/blockfile/file_posix.cc" ] | 1904 sources -= [ "disk_cache/blockfile/file_posix.cc" ] |
1901 } | 1905 } |
1902 | 1906 |
1903 if (is_ios || is_mac) { | 1907 if (is_ios || is_mac) { |
1904 sources += [ | 1908 sources += [ |
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4306 "cert/multi_threaded_cert_verifier_unittest.cc", | 4310 "cert/multi_threaded_cert_verifier_unittest.cc", |
4307 "cert/nss_cert_database_chromeos_unittest.cc", | 4311 "cert/nss_cert_database_chromeos_unittest.cc", |
4308 "cert/nss_cert_database_unittest.cc", | 4312 "cert/nss_cert_database_unittest.cc", |
4309 "cert/nss_profile_filter_chromeos_unittest.cc", | 4313 "cert/nss_profile_filter_chromeos_unittest.cc", |
4310 "cert/pem_tokenizer_unittest.cc", | 4314 "cert/pem_tokenizer_unittest.cc", |
4311 "cert/signed_certificate_timestamp_unittest.cc", | 4315 "cert/signed_certificate_timestamp_unittest.cc", |
4312 "cert/sth_distributor_unittest.cc", | 4316 "cert/sth_distributor_unittest.cc", |
4313 "cert/test_root_certs_unittest.cc", | 4317 "cert/test_root_certs_unittest.cc", |
4314 "cert/x509_cert_types_unittest.cc", | 4318 "cert/x509_cert_types_unittest.cc", |
4315 "cert/x509_certificate_unittest.cc", | 4319 "cert/x509_certificate_unittest.cc", |
| 4320 "cert/x509_util_ios_and_mac_unittest.cc", |
4316 "cert/x509_util_unittest.cc", | 4321 "cert/x509_util_unittest.cc", |
4317 "cert_net/cert_net_fetcher_impl_unittest.cc", | 4322 "cert_net/cert_net_fetcher_impl_unittest.cc", |
4318 "cert_net/nss_ocsp_unittest.cc", | 4323 "cert_net/nss_ocsp_unittest.cc", |
4319 "cookies/canonical_cookie_unittest.cc", | 4324 "cookies/canonical_cookie_unittest.cc", |
4320 "cookies/cookie_constants_unittest.cc", | 4325 "cookies/cookie_constants_unittest.cc", |
4321 "cookies/cookie_monster_unittest.cc", | 4326 "cookies/cookie_monster_unittest.cc", |
4322 "cookies/cookie_store_unittest.cc", | 4327 "cookies/cookie_store_unittest.cc", |
4323 "cookies/cookie_util_unittest.cc", | 4328 "cookies/cookie_util_unittest.cc", |
4324 "cookies/parsed_cookie_unittest.cc", | 4329 "cookies/parsed_cookie_unittest.cc", |
4325 "der/encode_values_unittest.cc", | 4330 "der/encode_values_unittest.cc", |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4891 "url_request/url_request_job_unittest.cc", | 4896 "url_request/url_request_job_unittest.cc", |
4892 "url_request/url_request_quic_unittest.cc", | 4897 "url_request/url_request_quic_unittest.cc", |
4893 "url_request/url_request_simple_job_unittest.cc", | 4898 "url_request/url_request_simple_job_unittest.cc", |
4894 "url_request/url_request_throttler_simulation_unittest.cc", | 4899 "url_request/url_request_throttler_simulation_unittest.cc", |
4895 "url_request/url_request_throttler_test_support.cc", | 4900 "url_request/url_request_throttler_test_support.cc", |
4896 "url_request/url_request_throttler_test_support.h", | 4901 "url_request/url_request_throttler_test_support.h", |
4897 "url_request/url_request_throttler_unittest.cc", | 4902 "url_request/url_request_throttler_unittest.cc", |
4898 "url_request/url_request_unittest.cc", | 4903 "url_request/url_request_unittest.cc", |
4899 "url_request/view_cache_helper_unittest.cc", | 4904 "url_request/view_cache_helper_unittest.cc", |
4900 ] | 4905 ] |
| 4906 net_unfiltered_sources = [] |
4901 | 4907 |
4902 configs += [ | 4908 configs += [ |
4903 "//build/config:precompiled_headers", | 4909 "//build/config:precompiled_headers", |
4904 | 4910 |
4905 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 4911 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
4906 "//build/config/compiler:no_size_t_to_int_warning", | 4912 "//build/config/compiler:no_size_t_to_int_warning", |
4907 ] | 4913 ] |
4908 defines = [] | 4914 defines = [] |
4909 | 4915 |
4910 deps = [ | 4916 deps = [ |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5192 | 5198 |
5193 # Needs GetAppOutput(). | 5199 # Needs GetAppOutput(). |
5194 "test/python_utils_unittest.cc", | 5200 "test/python_utils_unittest.cc", |
5195 | 5201 |
5196 # The following tests are disabled because they don't apply to | 5202 # The following tests are disabled because they don't apply to |
5197 # iOS. | 5203 # iOS. |
5198 # OS is not "linux" or "freebsd" or "openbsd". | 5204 # OS is not "linux" or "freebsd" or "openbsd". |
5199 "socket/unix_domain_client_socket_posix_unittest.cc", | 5205 "socket/unix_domain_client_socket_posix_unittest.cc", |
5200 "socket/unix_domain_server_socket_posix_unittest.cc", | 5206 "socket/unix_domain_server_socket_posix_unittest.cc", |
5201 ] | 5207 ] |
| 5208 net_unfiltered_sources += [ "cert/x509_util_ios_and_mac_unittest.cc" ] |
5202 | 5209 |
5203 bundle_deps = [ ":net_unittests_bundle_data" ] | 5210 bundle_deps = [ ":net_unittests_bundle_data" ] |
5204 } | 5211 } |
5205 | 5212 |
5206 # Unit tests that aren't supported by the current ICU alternatives on Android. | 5213 # Unit tests that aren't supported by the current ICU alternatives on Android. |
5207 if (is_android && use_platform_icu_alternatives) { | 5214 if (is_android && use_platform_icu_alternatives) { |
5208 sources -= [ | 5215 sources -= [ |
5209 "base/filename_util_unittest.cc", | 5216 "base/filename_util_unittest.cc", |
5210 "base/url_util_unittest.cc", | 5217 "base/url_util_unittest.cc", |
5211 "cert/x509_certificate_unittest.cc", | 5218 "cert/x509_certificate_unittest.cc", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5281 | 5288 |
5282 if (is_chromecast && use_nss_certs) { | 5289 if (is_chromecast && use_nss_certs) { |
5283 sources += [ "ssl/ssl_platform_key_chromecast_unittest.cc" ] | 5290 sources += [ "ssl/ssl_platform_key_chromecast_unittest.cc" ] |
5284 sources -= [ "ssl/ssl_platform_key_nss_unittest.cc" ] | 5291 sources -= [ "ssl/ssl_platform_key_nss_unittest.cc" ] |
5285 } | 5292 } |
5286 | 5293 |
5287 # Include transport_security_state_generator tests. | 5294 # Include transport_security_state_generator tests. |
5288 if (host_toolchain == current_toolchain) { | 5295 if (host_toolchain == current_toolchain) { |
5289 deps += [ "//net/tools/transport_security_state_generator:transport_security
_state_generator_test_sources" ] | 5296 deps += [ "//net/tools/transport_security_state_generator:transport_security
_state_generator_test_sources" ] |
5290 } | 5297 } |
| 5298 |
| 5299 # Add back some sources that were otherwise filtered out. |
| 5300 set_sources_assignment_filter([]) |
| 5301 sources += net_unfiltered_sources |
| 5302 set_sources_assignment_filter(sources_assignment_filter) |
5291 } | 5303 } |
5292 | 5304 |
5293 # !is_android && !is_win && !is_mac | 5305 # !is_android && !is_win && !is_mac |
5294 if (!is_ios && !is_proto_quic) { | 5306 if (!is_ios && !is_proto_quic) { |
5295 # TODO(crbug.com/594965): this should be converted to "app" template and | 5307 # TODO(crbug.com/594965): this should be converted to "app" template and |
5296 # enabled on iOS too. | 5308 # enabled on iOS too. |
5297 executable("net_perftests") { | 5309 executable("net_perftests") { |
5298 testonly = true | 5310 testonly = true |
5299 sources = [ | 5311 sources = [ |
5300 "base/mime_sniffer_perftest.cc", | 5312 "base/mime_sniffer_perftest.cc", |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5873 ] | 5885 ] |
5874 deps = [ | 5886 deps = [ |
5875 ":net_fuzzer_test_support", | 5887 ":net_fuzzer_test_support", |
5876 ":test_support", | 5888 ":test_support", |
5877 "//base", | 5889 "//base", |
5878 "//net", | 5890 "//net", |
5879 ] | 5891 ] |
5880 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" | 5892 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" |
5881 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" | 5893 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" |
5882 } | 5894 } |
OLD | NEW |