1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 # Defines an extra set of libs with an alternate copy of org.apache.http.
9 # TODO(yfriedman): Remove this when crbug.com/488192 is fixed.
10 'net_test_extra_libs': [],
11 'linux_link_kerberos%': 0,
13 ['chromeos==1 or embedded==1 or OS=="ios"', {
14 # Disable Kerberos on ChromeOS and iOS, at least for now.
15 # It needs configuration (krb5.conf and so on).
17 }, { # chromeos == 0 and embedded==0 and OS!="ios"
20 ['OS=="android" and target_arch != "ia32"', {
21 # The way the cache uses mmap() is inefficient on some Android devices.
22 # If this flag is set, we hackily avoid using mmap() in the disk cache.
23 # We are pretty confident that mmap-ing the index would not hurt any
24 # existing x86 android devices, but we cannot be so sure about the
25 # variety of ARM devices. So enable it for x86 only for now.
26 'posix_avoid_mmap%': 1,
28 'posix_avoid_mmap%': 0,
31 # Websockets and socket stream are not used on iOS.
32 'enable_websockets%': 0,
33 # iOS does not use V8.
35 'enable_built_in_dns%': 0,
37 'enable_websockets%': 1,
39 'enable_built_in_dns%': 1,
44 '../build/win_precompile.gypi',
49 'target_name': 'net_derived_sources',
52 'base/registry_controlled_domains/effective_tld_names.gperf',
53 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
54 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
55 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
56 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
57 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
58 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
65 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
68 'tools/tld_cleanup/make_dafsa.py',
72 'tools/tld_cleanup/make_dafsa.py',
74 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
78 'direct_dependent_settings': {
80 '<(SHARED_INTERMEDIATE_DIR)'
85 # Protobuf compiler / generator for QUIC crypto protocol buffer.
86 # GN version: //net/quic/proto
87 'target_name': 'net_quic_proto',
88 'type': 'static_library',
90 'quic/proto/cached_network_parameters.proto',
91 'quic/proto/source_address_token.proto',
94 'enable_wexit_time_destructors': 1,
95 'proto_in_dir': 'quic/proto',
96 'proto_out_dir': 'net/quic/proto',
97 'cc_generator_options': 'dllexport_decl=NET_EXPORT_PRIVATE:',
98 'cc_include': 'net/base/net_export.h',
101 '../build/protoc.gypi',
104 'NET_IMPLEMENTATION',
109 'target_name': 'net',
111 '../base/base.gyp:base_i18n',
112 '../third_party/icu/icu.gyp:icui18n',
113 '../third_party/icu/icu.gyp:icuuc',
114 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
115 '../url/url.gyp:url_lib',
119 'base/filename_util_icu.cc',
120 'base/net_string_util_icu.cc',
121 'base/net_util_icu.cc',
123 'includes': [ 'net_common.gypi' ],
126 # GN version: //net:net_unittests
127 'target_name': 'net_unittests',
128 'type': '<(gtest_target_type)',
130 '../base/base.gyp:base',
131 '../base/base.gyp:base_i18n',
132 '../base/base.gyp:base_prefs_test_support',
133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
134 '../crypto/crypto.gyp:crypto',
135 '../crypto/crypto.gyp:crypto_test_support',
136 '../testing/gmock.gyp:gmock',
137 '../testing/gtest.gyp:gtest',
138 '../third_party/zlib/zlib.gyp:zlib',
139 '../url/url.gyp:url_lib',
144 'net_derived_sources',
150 '<@(net_test_sources)',
153 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
157 'flip_in_mem_edsm_server_base',
160 '<@(net_linux_test_sources)',
163 ['OS == "mac" or OS == "ios"', {
165 '<@(net_base_test_mac_ios_sources)',
170 'proxy/proxy_config_service_linux_unittest.cc',
173 [ 'OS == "android"', {
175 # See bug http://crbug.com/344533.
176 'disk_cache/blockfile/index_table_v3_unittest.cc',
182 [ 'use_nss_certs != 1', {
184 'cert/nss_cert_database_unittest.cc',
185 'cert/nss_cert_database_chromeos_unittest.cc',
186 'cert/nss_profile_filter_chromeos_unittest.cc',
187 'ssl/client_cert_store_chromeos_unittest.cc',
188 'ssl/client_cert_store_nss_unittest.cc',
191 [ 'use_openssl == 1', {
192 # Avoid compiling/linking with the system library.
194 '../third_party/boringssl/boringssl.gyp:boringssl',
197 [ 'use_nss_certs == 1 or OS == "ios" or use_openssl == 0', {
199 [ 'desktop_linux == 1 or chromeos == 1', {
201 '../build/linux/system.gyp:ssl',
203 }, { # desktop_linux == 0 and chromeos == 0
205 '../third_party/nss/nss.gyp:nspr',
206 '../third_party/nss/nss.gyp:nss',
207 'third_party/nss/ssl.gyp:libssl',
212 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
214 ['use_allocator!="none"', {
216 '../base/allocator/allocator.gyp:allocator',
221 [ 'use_kerberos==1', {
226 [ 'use_kerberos==0 or OS == "android"', {
227 # These are excluded on Android, because the actual Kerberos support,
228 # which these test, is in a separate app on Android.
230 'http/http_auth_gssapi_posix_unittest.cc',
231 'http/mock_gssapi_library_posix.cc',
232 'http/mock_gssapi_library_posix.h',
235 [ 'use_kerberos==0', {
237 'http/http_auth_handler_negotiate_unittest.cc',
240 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
241 # Only include this test when on Posix and using NSS for
242 # cert verification or on iOS (which also uses NSS for certs).
244 'cert_net/nss_ocsp_unittest.cc',
247 [ 'use_openssl==1', {
248 # When building for OpenSSL, we need to exclude NSS specific tests
249 # or functionality not supported by OpenSSL yet.
250 # TODO(bulach): Add equivalent tests when the underlying
251 # functionality is ported to OpenSSL.
253 'cert/x509_util_nss_unittest.cc',
254 'quic/test_tools/crypto_test_utils_nss.cc',
256 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
258 'cert/x509_util_openssl_unittest.cc',
259 'quic/test_tools/crypto_test_utils_openssl.cc',
260 'socket/ssl_client_socket_openssl_unittest.cc',
261 'ssl/ssl_client_session_cache_openssl_unittest.cc',
265 [ 'use_openssl_certs == 0', {
267 'ssl/openssl_client_key_store_unittest.cc',
270 [ 'enable_websockets != 1', {
272 ['exclude', '^websockets/'],
273 ['exclude', '^server/'],
279 ['disable_file_support==1', {
281 'base/directory_lister_unittest.cc',
282 'url_request/url_request_file_job_unittest.cc',
285 [ 'disable_ftp_support==1', {
287 ['exclude', '^ftp/'],
290 'url_request/url_request_ftp_job_unittest.cc',
294 [ 'enable_built_in_dns!=1', {
296 'dns/address_sorter_posix_unittest.cc',
297 'dns/address_sorter_unittest.cc',
301 # Always need use_v8_in_net to be 1 to run gyp on Android, so just
302 # remove net_unittest's dependency on v8 when using icu alternatives
303 # instead of setting use_v8_in_net to 0.
304 [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', {
308 }, { # else: !use_v8_in_net
310 'proxy/proxy_resolver_v8_tracing_unittest.cc',
311 'proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc',
312 'proxy/proxy_resolver_v8_unittest.cc',
317 [ 'use_v8_in_net==1 and OS != "android"', {
320 'net_browser_services',
321 'net_utility_services',
322 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
326 'dns/host_resolver_mojo_unittest.cc',
327 'dns/mojo_host_resolver_impl_unittest.cc',
328 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
329 'proxy/mojo_proxy_resolver_impl_unittest.cc',
330 'proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc',
331 'proxy/proxy_resolver_factory_mojo_unittest.cc',
332 'proxy/proxy_service_mojo_unittest.cc',
337 [ 'enable_mdns != 1', {
339 'dns/mdns_cache_unittest.cc',
340 'dns/mdns_client_unittest.cc',
341 'dns/mdns_query_unittest.cc',
342 'dns/record_parsed_unittest.cc',
343 'dns/record_rdata_unittest.cc',
348 'dns/dns_config_service_posix_unittest.cc',
349 'http/http_auth_gssapi_posix_unittest.cc',
351 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
352 'msvs_disabled_warnings': [4267, ],
354 [ 'icu_use_data_file_flag == 0', {
355 # This is needed to trigger the dll copy step on windows.
356 # TODO(mark): Specifying this here shouldn't be necessary.
358 '../third_party/icu/icu.gyp:icudata',
367 'action_name': 'copy_test_data',
370 'data/ssl/certificates/',
372 'data/url_request_unittest/',
373 'data/verify_name_match_unittest/names/',
375 'test_data_prefix': 'net',
377 'includes': [ '../build/copy_test_data_ios.gypi' ],
381 # TODO(droger): The following tests are disabled because the
382 # implementation is missing or incomplete.
383 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
384 'base/keygen_handler_unittest.cc',
385 'disk_cache/backend_unittest.cc',
386 'disk_cache/blockfile/block_files_unittest.cc',
387 # Need to read input data files.
388 'filter/gzip_filter_unittest.cc',
390 "cert_net/cert_net_fetcher_impl_unittest.cc",
391 'proxy/proxy_script_fetcher_impl_unittest.cc',
392 'socket/ssl_client_socket_unittest.cc',
393 'socket/ssl_server_socket_unittest.cc',
394 'spdy/fuzzing/hpack_fuzz_util_test.cc',
395 # Needs GetAppOutput().
396 'test/python_utils_unittest.cc',
397 'url_request/url_fetcher_impl_unittest.cc',
398 'url_request/url_request_context_builder_unittest.cc',
400 # The following tests are disabled because they don't apply to
402 # OS is not "linux" or "freebsd" or "openbsd".
403 'socket/unix_domain_client_socket_posix_unittest.cc',
404 'socket/unix_domain_server_socket_posix_unittest.cc',
406 # See bug http://crbug.com/344533.
407 'disk_cache/blockfile/index_table_v3_unittest.cc',
410 ['OS == "android"', {
411 # TODO(mmenke): This depends on test_support_base, which depends on
412 # icu. Figure out a way to remove that dependency.
414 '../testing/android/native_test.gyp:native_test_native_code',
417 [ 'use_icu_alternatives_on_android == 1', {
419 '../base/base.gyp:base_i18n',
422 'base/filename_util_unittest.cc',
423 'base/net_util_icu_unittest.cc',
427 ['use_v8_in_net==1 and v8_use_external_startup_data==1', {
429 '../gin/gin.gyp:gin',
433 'target_conditions': [
434 # These source files are excluded by default platform rules, but they
435 # are needed in specific cases on other platforms. Re-including them can
436 # only be done in target_conditions as it is evaluated after the
438 ['OS == "android"', {
440 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
445 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
451 'target_name': 'net_perftests',
452 'type': 'executable',
454 '../base/base.gyp:base',
455 '../base/base.gyp:base_i18n',
456 '../base/base.gyp:test_support_perf',
457 '../testing/gtest.gyp:gtest',
458 '../url/url.gyp:url_lib',
464 'base/mime_sniffer_perftest.cc',
465 'cookies/cookie_monster_perftest.cc',
466 'disk_cache/blockfile/disk_cache_perftest.cc',
467 'extras/sqlite/sqlite_persistent_cookie_store_perftest.cc',
468 'proxy/proxy_resolver_perftest.cc',
469 'udp/udp_socket_perftest.cc',
470 'websockets/websocket_frame_perftest.cc',
473 [ 'use_v8_in_net==1', {
477 }, { # else: !use_v8_in_net
479 'proxy/proxy_resolver_perftest.cc',
485 [ 'icu_use_data_file_flag == 0', {
486 # This is needed to trigger the dll copy step on windows.
487 # TODO(mark): Specifying this here shouldn't be necessary.
489 '../third_party/icu/icu.gyp:icudata',
493 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
494 'msvs_disabled_warnings': [4267, ],
496 [ 'enable_websockets != 1', {
498 'websockets/websocket_frame_perftest.cc',
504 'target_name': 'net_test_support',
505 'type': 'static_library',
507 '../base/base.gyp:base',
508 '../base/base.gyp:test_support_base',
509 '../crypto/crypto.gyp:crypto',
510 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
511 '../testing/gtest.gyp:gtest',
512 '../testing/gmock.gyp:gmock',
513 '../url/url.gyp:url_lib',
516 'export_dependent_settings': [
517 '../base/base.gyp:base',
518 # TODO(mmenke): This depends on icu, figure out a way to build tests
520 '../base/base.gyp:test_support_base',
521 '../crypto/crypto.gyp:crypto',
522 '../testing/gtest.gyp:gtest',
523 '../testing/gmock.gyp:gmock',
526 'base/load_timing_info_test_util.cc',
527 'base/load_timing_info_test_util.h',
528 'base/mock_file_stream.cc',
529 'base/mock_file_stream.h',
530 'base/test_completion_callback.cc',
531 'base/test_completion_callback.h',
532 'base/test_data_directory.cc',
533 'base/test_data_directory.h',
534 'cert/mock_cert_verifier.cc',
535 'cert/mock_cert_verifier.h',
536 'cookies/cookie_monster_store_test.cc',
537 'cookies/cookie_monster_store_test.h',
538 'cookies/cookie_store_test_callbacks.cc',
539 'cookies/cookie_store_test_callbacks.h',
540 'cookies/cookie_store_test_helpers.cc',
541 'cookies/cookie_store_test_helpers.h',
542 'disk_cache/disk_cache_test_base.cc',
543 'disk_cache/disk_cache_test_base.h',
544 'disk_cache/disk_cache_test_util.cc',
545 'disk_cache/disk_cache_test_util.h',
546 'dns/dns_test_util.cc',
547 'dns/dns_test_util.h',
548 'dns/mock_host_resolver.cc',
549 'dns/mock_host_resolver.h',
550 'dns/mock_mdns_socket_factory.cc',
551 'dns/mock_mdns_socket_factory.h',
552 'http/http_transaction_test_util.cc',
553 'http/http_transaction_test_util.h',
554 'log/test_net_log.cc',
555 'log/test_net_log.h',
556 'log/test_net_log_entry.cc',
557 'log/test_net_log_entry.h',
558 'log/test_net_log_util.cc',
559 'log/test_net_log_util.h',
560 'proxy/mock_proxy_resolver.cc',
561 'proxy/mock_proxy_resolver.h',
562 'proxy/mock_proxy_script_fetcher.cc',
563 'proxy/mock_proxy_script_fetcher.h',
564 'proxy/proxy_config_service_common_unittest.cc',
565 'proxy/proxy_config_service_common_unittest.h',
566 'socket/socket_test_util.cc',
567 'socket/socket_test_util.h',
568 'test/cert_test_util.cc',
569 'test/cert_test_util.h',
570 'test/cert_test_util_nss.cc',
571 'test/channel_id_test_util.cc',
572 'test/channel_id_test_util.h',
573 'test/ct_test_util.cc',
574 'test/ct_test_util.h',
575 'test/embedded_test_server/embedded_test_server.cc',
576 'test/embedded_test_server/embedded_test_server.h',
577 'test/embedded_test_server/http_connection.cc',
578 'test/embedded_test_server/http_connection.h',
579 'test/embedded_test_server/http_request.cc',
580 'test/embedded_test_server/http_request.h',
581 'test/embedded_test_server/http_response.cc',
582 'test/embedded_test_server/http_response.h',
583 'test/embedded_test_server/stream_listen_socket.cc',
584 'test/embedded_test_server/stream_listen_socket.h',
585 'test/embedded_test_server/tcp_listen_socket.cc',
586 'test/embedded_test_server/tcp_listen_socket.h',
587 'test/event_waiter.h',
588 'test/net_test_suite.cc',
589 'test/net_test_suite.h',
590 'test/python_utils.cc',
591 'test/python_utils.h',
592 'test/spawned_test_server/base_test_server.cc',
593 'test/spawned_test_server/base_test_server.h',
594 'test/spawned_test_server/local_test_server.cc',
595 'test/spawned_test_server/local_test_server.h',
596 'test/spawned_test_server/local_test_server_posix.cc',
597 'test/spawned_test_server/local_test_server_win.cc',
598 'test/spawned_test_server/spawned_test_server.h',
599 'test/url_request/ssl_certificate_error_job.cc',
600 'test/url_request/ssl_certificate_error_job.h',
601 'test/url_request/url_request_failed_job.cc',
602 'test/url_request/url_request_failed_job.h',
603 'test/url_request/url_request_mock_data_job.cc',
604 'test/url_request/url_request_mock_data_job.h',
605 'test/url_request/url_request_slow_download_job.cc',
606 'test/url_request/url_request_slow_download_job.h',
607 'url_request/test_url_fetcher_factory.cc',
608 'url_request/test_url_fetcher_factory.h',
609 'url_request/url_request_test_util.cc',
610 'url_request/url_request_test_util.h',
615 '../third_party/protobuf/protobuf.gyp:py_proto',
618 ['use_nss_certs == 1 or OS == "ios"', {
620 [ 'desktop_linux == 1 or chromeos == 1', {
622 '../build/linux/system.gyp:ssl',
624 }, { # desktop_linux == 0 and chromeos == 0
626 '../third_party/nss/nss.gyp:nspr',
627 '../third_party/nss/nss.gyp:nss',
628 'third_party/nss/ssl.gyp:libssl',
633 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
635 ['use_allocator!="none"', {
637 '../base/allocator/allocator.gyp:allocator',
642 ['OS == "android"', {
644 'net_test_jni_headers',
647 'test/android/net_test_jni_onload.cc',
648 'test/android/net_test_jni_onload.h',
649 'test/embedded_test_server/android/embedded_test_server_android.cc',
650 'test/embedded_test_server/android/embedded_test_server_android.h',
651 'test/spawned_test_server/remote_test_server.cc',
652 'test/spawned_test_server/remote_test_server.h',
653 'test/spawned_test_server/spawner_communicator.cc',
654 'test/spawned_test_server/spawner_communicator.h',
657 [ 'use_v8_in_net==1', {
663 [ 'enable_mdns != 1', {
665 'dns/mock_mdns_socket_factory.cc',
666 'dns/mock_mdns_socket_factory.h'
669 [ 'use_nss_certs != 1', {
671 'test/cert_test_util_nss.cc',
674 ['disable_file_support != 1', {
676 'test/url_request/url_request_mock_http_job.cc',
677 'test/url_request/url_request_mock_http_job.h',
678 'url_request/test_url_request_interceptor.cc',
679 'url_request/test_url_request_interceptor.h',
683 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
684 'msvs_disabled_warnings': [4267, ],
687 'target_name': 'net_resources',
690 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
694 'action_name': 'net_resources',
696 'grit_grd_file': 'base/net_resources.grd',
698 'includes': [ '../build/grit_action.gypi' ],
703 'target_name': 'net_extras',
704 'type': 'static_library',
705 'variables': { 'enable_wexit_time_destructors': 1, },
707 '../base/base.gyp:base',
708 '../sql/sql.gyp:sql',
712 '<@(net_extras_sources)',
716 'target_name': 'net_docs',
720 'action_name': 'net_docs',
722 'net_docs_input_dir': '.',
725 '<@(net_docs_sources)',
728 '<(net_docs_output_dir)',
732 '<(net_docs_script)',
734 '<(net_docs_input_dir)',
736 '<(net_docs_output_dir)',
737 '<@(net_docs_sources)',
739 'message': 'Rendering network stack documentation',
744 'target_name': 'http_server',
745 'type': 'static_library',
746 'variables': { 'enable_wexit_time_destructors': 1, },
748 '../base/base.gyp:base',
752 'server/http_connection.cc',
753 'server/http_connection.h',
754 'server/http_server.cc',
755 'server/http_server.h',
756 'server/http_server_request_info.cc',
757 'server/http_server_request_info.h',
758 'server/http_server_response_info.cc',
759 'server/http_server_response_info.h',
760 'server/web_socket.cc',
761 'server/web_socket.h',
762 'server/web_socket_encoder.cc',
763 'server/web_socket_encoder.h',
765 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
766 'msvs_disabled_warnings': [4267, ],
768 { # GN version: //net:balsa
769 'target_name': 'balsa',
770 'type': 'static_library',
772 '../base/base.gyp:base',
776 'tools/balsa/balsa_enums.h',
777 'tools/balsa/balsa_frame.cc',
778 'tools/balsa/balsa_frame.h',
779 'tools/balsa/balsa_headers.cc',
780 'tools/balsa/balsa_headers.h',
781 'tools/balsa/balsa_headers_token_utils.cc',
782 'tools/balsa/balsa_headers_token_utils.h',
783 'tools/balsa/balsa_visitor_interface.h',
784 'tools/balsa/http_message_constants.cc',
785 'tools/balsa/http_message_constants.h',
786 'tools/balsa/noop_balsa_visitor.h',
787 'tools/balsa/simple_buffer.cc',
788 'tools/balsa/simple_buffer.h',
789 'tools/balsa/split.cc',
790 'tools/balsa/split.h',
791 'tools/balsa/string_piece_utils.h',
792 'tools/quic/spdy_balsa_utils.cc',
793 'tools/quic/spdy_balsa_utils.h',
797 'target_name': 'dump_cache',
798 'type': 'executable',
800 '../base/base.gyp:base',
805 'tools/dump_cache/cache_dumper.cc',
806 'tools/dump_cache/cache_dumper.h',
807 'tools/dump_cache/dump_cache.cc',
808 'tools/dump_cache/dump_files.cc',
809 'tools/dump_cache/dump_files.h',
810 'tools/dump_cache/simple_cache_dumper.cc',
811 'tools/dump_cache/simple_cache_dumper.h',
812 'tools/dump_cache/url_to_filename_encoder.cc',
813 'tools/dump_cache/url_to_filename_encoder.h',
814 'tools/dump_cache/url_utilities.cc',
815 'tools/dump_cache/url_utilities.h',
817 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
818 'msvs_disabled_warnings': [4267, ],
821 'target_name': 'simple_quic_tools',
822 'type': 'static_library',
824 '../base/base.gyp:base',
825 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
826 '../url/url.gyp:url_lib',
831 'tools/quic/quic_client_session.cc',
832 'tools/quic/quic_client_session.h',
833 'tools/quic/quic_dispatcher.cc',
834 'tools/quic/quic_dispatcher.h',
835 'tools/quic/quic_in_memory_cache.cc',
836 'tools/quic/quic_in_memory_cache.h',
837 'tools/quic/quic_per_connection_packet_writer.cc',
838 'tools/quic/quic_per_connection_packet_writer.h',
839 'tools/quic/quic_server_session.cc',
840 'tools/quic/quic_server_session.h',
841 'tools/quic/quic_simple_client.cc',
842 'tools/quic/quic_simple_client.h',
843 'tools/quic/quic_simple_per_connection_packet_writer.cc',
844 'tools/quic/quic_simple_per_connection_packet_writer.h',
845 'tools/quic/quic_simple_server.cc',
846 'tools/quic/quic_simple_server.h',
847 'tools/quic/quic_simple_server_packet_writer.cc',
848 'tools/quic/quic_simple_server_packet_writer.h',
849 'tools/quic/quic_spdy_client_stream.cc',
850 'tools/quic/quic_spdy_client_stream.h',
851 'tools/quic/quic_spdy_server_stream.cc',
852 'tools/quic/quic_spdy_server_stream.h',
853 'tools/quic/quic_time_wait_list_manager.cc',
854 'tools/quic/quic_time_wait_list_manager.h',
855 'tools/quic/synchronous_host_resolver.cc',
856 'tools/quic/synchronous_host_resolver.h',
861 ['use_v8_in_net == 1', {
864 'target_name': 'net_with_v8',
865 'type': '<(component)',
866 'variables': { 'enable_wexit_time_destructors': 1, },
868 '../base/base.gyp:base',
869 '../gin/gin.gyp:gin',
870 '../url/url.gyp:url_lib',
871 '../v8/tools/gyp/v8.gyp:v8',
875 'NET_IMPLEMENTATION',
878 'proxy/proxy_resolver_v8.cc',
879 'proxy/proxy_resolver_v8.h',
880 'proxy/proxy_resolver_v8_tracing.cc',
881 'proxy/proxy_resolver_v8_tracing.h',
882 'proxy/proxy_resolver_v8_tracing_wrapper.cc',
883 'proxy/proxy_resolver_v8_tracing_wrapper.h',
884 'proxy/proxy_service_v8.cc',
885 'proxy/proxy_service_v8.h',
887 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
888 'msvs_disabled_warnings': [4267, ],
892 ['use_v8_in_net == 1 and OS != "android"', {
895 # GN version: //net/interfaces
896 'target_name': 'net_interfaces',
897 'type': 'static_library',
899 'interfaces/host_resolver_service.mojom',
900 'interfaces/proxy_resolver_service.mojom',
903 '../third_party/mojo/mojom_bindings_generator.gypi',
907 # GN version: //net:net_browser_services
908 'target_name': 'net_browser_services',
909 'type': 'static_library',
911 'dns/mojo_host_resolver_impl.cc',
912 'dns/mojo_host_resolver_impl.h',
913 'proxy/in_process_mojo_proxy_resolver_factory.cc',
914 'proxy/in_process_mojo_proxy_resolver_factory.h',
915 'proxy/mojo_proxy_resolver_factory.h',
916 'proxy/proxy_resolver_factory_mojo.cc',
917 'proxy/proxy_resolver_factory_mojo.h',
918 'proxy/proxy_service_mojo.cc',
919 'proxy/proxy_service_mojo.h',
922 'mojo_type_converters',
925 '../mojo/mojo_base.gyp:mojo_common_lib',
926 '../mojo/mojo_base.gyp:mojo_environment_chromium',
927 '../mojo/mojo_base.gyp:mojo_url_type_converters',
928 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
930 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
931 # need this dependency since in_process_mojo_proxy_resolver_factory
932 # creates the utility process side Mojo services in the browser
933 # process. Ultimately, this will go away when we only support
935 'net_utility_services',
939 # GN version: //net:net_utility_services
940 'target_name': 'net_utility_services',
941 'type': 'static_library',
943 'dns/host_resolver_mojo.cc',
944 'dns/host_resolver_mojo.h',
945 'proxy/mojo_proxy_resolver_factory_impl.cc',
946 'proxy/mojo_proxy_resolver_factory_impl.h',
947 'proxy/mojo_proxy_resolver_impl.cc',
948 'proxy/mojo_proxy_resolver_impl.h',
949 'proxy/mojo_proxy_resolver_v8_tracing_bindings.h',
952 'mojo_type_converters',
955 '../mojo/mojo_base.gyp:mojo_url_type_converters',
956 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
960 # GN version: //net:mojo_type_converters
961 'target_name': 'mojo_type_converters',
962 'type': 'static_library',
964 'dns/mojo_host_type_converters.cc',
965 'dns/mojo_host_type_converters.h',
966 'proxy/mojo_proxy_type_converters.cc',
967 'proxy/mojo_proxy_type_converters.h',
972 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
977 ['OS != "ios" and OS != "android"', {
979 # iOS doesn't have the concept of simple executables, these targets
980 # can't be compiled on the platform.
982 'target_name': 'crash_cache',
983 'type': 'executable',
985 '../base/base.gyp:base',
990 'tools/crash_cache/crash_cache.cc',
992 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
993 'msvs_disabled_warnings': [4267, ],
996 'target_name': 'crl_set_dump',
997 'type': 'executable',
999 '../base/base.gyp:base',
1003 'tools/crl_set_dump/crl_set_dump.cc',
1005 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1006 'msvs_disabled_warnings': [4267, ],
1009 'target_name': 'dns_fuzz_stub',
1010 'type': 'executable',
1012 '../base/base.gyp:base',
1016 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
1018 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1019 'msvs_disabled_warnings': [4267, ],
1022 'target_name': 'gdig',
1023 'type': 'executable',
1025 '../base/base.gyp:base',
1029 'tools/gdig/file_net_log.cc',
1030 'tools/gdig/gdig.cc',
1034 'target_name': 'get_server_time',
1035 'type': 'executable',
1037 '../base/base.gyp:base',
1038 '../base/base.gyp:base_i18n',
1039 '../url/url.gyp:url_lib',
1043 'tools/get_server_time/get_server_time.cc',
1045 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1046 'msvs_disabled_warnings': [4267, ],
1049 'target_name': 'hpack_example_generator',
1050 'type': 'executable',
1052 '../base/base.gyp:base',
1056 'spdy/fuzzing/hpack_example_generator.cc',
1058 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1059 'msvs_disabled_warnings': [4267, ],
1062 'target_name': 'hpack_fuzz_mutator',
1063 'type': 'executable',
1065 '../base/base.gyp:base',
1069 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1071 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1072 'msvs_disabled_warnings': [4267, ],
1075 'target_name': 'hpack_fuzz_wrapper',
1076 'type': 'executable',
1078 '../base/base.gyp:base',
1082 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1084 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1085 'msvs_disabled_warnings': [4267, ],
1088 'target_name': 'net_watcher',
1089 'type': 'executable',
1091 '../base/base.gyp:base',
1096 [ 'use_glib == 1', {
1098 '../build/linux/system.gyp:gconf',
1099 '../build/linux/system.gyp:gio',
1105 'tools/net_watcher/net_watcher.cc',
1109 'target_name': 'run_testserver',
1110 'type': 'executable',
1112 '../base/base.gyp:base',
1113 '../base/base.gyp:test_support_base',
1114 '../testing/gtest.gyp:gtest',
1118 'tools/testserver/run_testserver.cc',
1122 'target_name': 'quic_client',
1123 'type': 'executable',
1125 '../base/base.gyp:base',
1126 '../url/url.gyp:url_lib',
1128 'simple_quic_tools',
1131 'tools/quic/quic_simple_client_bin.cc',
1135 'target_name': 'quic_server',
1136 'type': 'executable',
1138 '../base/base.gyp:base',
1141 'simple_quic_tools',
1144 'tools/quic/quic_simple_server_bin.cc',
1148 'target_name': 'stress_cache',
1149 'type': 'executable',
1151 '../base/base.gyp:base',
1156 'tools/stress_cache/stress_cache.cc',
1158 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1159 'msvs_disabled_warnings': [4267, ],
1162 'target_name': 'tld_cleanup',
1163 'type': 'executable',
1165 '../base/base.gyp:base',
1166 '../base/base.gyp:base_i18n',
1167 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
1170 'tools/tld_cleanup/tld_cleanup.cc',
1172 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1173 'msvs_disabled_warnings': [4267, ],
1177 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
1180 'target_name': 'epoll_server',
1181 'type': 'static_library',
1183 '../base/base.gyp:base',
1187 'tools/epoll_server/epoll_server.cc',
1188 'tools/epoll_server/epoll_server.h',
1192 'target_name': 'flip_in_mem_edsm_server_base',
1193 'type': 'static_library',
1198 '../base/base.gyp:base',
1199 '../third_party/boringssl/boringssl.gyp:boringssl',
1205 'tools/dump_cache/url_to_filename_encoder.cc',
1206 'tools/dump_cache/url_to_filename_encoder.h',
1207 'tools/dump_cache/url_utilities.cc',
1208 'tools/dump_cache/url_utilities.h',
1209 'tools/flip_server/acceptor_thread.cc',
1210 'tools/flip_server/acceptor_thread.h',
1211 'tools/flip_server/constants.h',
1212 'tools/flip_server/create_listener.cc',
1213 'tools/flip_server/create_listener.h',
1214 'tools/flip_server/flip_config.cc',
1215 'tools/flip_server/flip_config.h',
1216 'tools/flip_server/http_interface.cc',
1217 'tools/flip_server/http_interface.h',
1218 'tools/flip_server/loadtime_measurement.h',
1219 'tools/flip_server/mem_cache.cc',
1220 'tools/flip_server/mem_cache.h',
1221 'tools/flip_server/output_ordering.cc',
1222 'tools/flip_server/output_ordering.h',
1223 'tools/flip_server/ring_buffer.cc',
1224 'tools/flip_server/ring_buffer.h',
1225 'tools/flip_server/sm_connection.cc',
1226 'tools/flip_server/sm_connection.h',
1227 'tools/flip_server/sm_interface.h',
1228 'tools/flip_server/spdy_interface.cc',
1229 'tools/flip_server/spdy_interface.h',
1230 'tools/flip_server/spdy_ssl.cc',
1231 'tools/flip_server/spdy_ssl.h',
1232 'tools/flip_server/spdy_util.cc',
1233 'tools/flip_server/spdy_util.h',
1234 'tools/flip_server/streamer_interface.cc',
1235 'tools/flip_server/streamer_interface.h',
1239 'target_name': 'flip_in_mem_edsm_server_unittests',
1240 'type': 'executable',
1242 '../testing/gtest.gyp:gtest',
1243 '../testing/gmock.gyp:gmock',
1244 '../third_party/boringssl/boringssl.gyp:boringssl',
1245 'flip_in_mem_edsm_server_base',
1250 'tools/flip_server/flip_test_utils.cc',
1251 'tools/flip_server/flip_test_utils.h',
1252 'tools/flip_server/http_interface_test.cc',
1253 'tools/flip_server/mem_cache_test.cc',
1254 'tools/flip_server/run_all_tests.cc',
1255 'tools/flip_server/spdy_interface_test.cc',
1259 'target_name': 'flip_in_mem_edsm_server',
1260 'type': 'executable',
1265 '../base/base.gyp:base',
1266 'flip_in_mem_edsm_server_base',
1270 'tools/flip_server/flip_in_mem_edsm_server.cc',
1274 'target_name': 'epoll_quic_tools',
1275 'type': 'static_library',
1277 '../base/base.gyp:base',
1278 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1279 '../url/url.gyp:url_lib',
1286 'tools/quic/quic_client.cc',
1287 'tools/quic/quic_client.h',
1288 'tools/quic/quic_default_packet_writer.cc',
1289 'tools/quic/quic_default_packet_writer.h',
1290 'tools/quic/quic_epoll_clock.cc',
1291 'tools/quic/quic_epoll_clock.h',
1292 'tools/quic/quic_epoll_connection_helper.cc',
1293 'tools/quic/quic_epoll_connection_helper.h',
1294 'tools/quic/quic_packet_reader.cc',
1295 'tools/quic/quic_packet_reader.h',
1296 'tools/quic/quic_packet_writer_wrapper.cc',
1297 'tools/quic/quic_packet_writer_wrapper.h',
1298 'tools/quic/quic_server.cc',
1299 'tools/quic/quic_server.h',
1300 'tools/quic/quic_socket_utils.cc',
1301 'tools/quic/quic_socket_utils.h',
1305 'target_name': 'epoll_quic_client',
1306 'type': 'executable',
1308 '../base/base.gyp:base',
1311 'simple_quic_tools',
1314 'tools/quic/quic_client_bin.cc',
1318 'target_name': 'epoll_quic_server',
1319 'type': 'executable',
1321 '../base/base.gyp:base',
1325 'simple_quic_tools',
1328 'tools/quic/quic_server_bin.cc',
1335 { # The same target as 'net', but with smaller binary size due to
1336 # exclusion of ICU, FTP, FILE and WebSockets support.
1337 'target_name': 'net_small',
1339 'disable_ftp_support': 1,
1340 'disable_file_support': 1,
1341 'enable_websockets': 0,
1342 'use_icu_alternatives_on_android': 1,
1345 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1348 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1349 'DISABLE_FILE_SUPPORT=1',
1350 'DISABLE_FTP_SUPPORT=1',
1353 'base/net_string_util_icu_alternatives_android.cc',
1354 'base/net_string_util_icu_alternatives_android.h',
1356 'includes': [ 'net_common.gypi' ],
1359 'target_name': 'net_jni_headers',
1362 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1363 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1364 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1365 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
1366 'android/java/src/org/chromium/net/GURLUtils.java',
1367 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
1368 'android/java/src/org/chromium/net/NetStringUtil.java',
1369 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1370 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1371 'android/java/src/org/chromium/net/X509Util.java',
1374 'jni_gen_package': 'net',
1376 'includes': [ '../build/jni_generator.gypi' ],
1379 'target_name': 'net_test_jni_headers',
1382 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
1383 'test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java',
1384 'test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java',
1387 'jni_gen_package': 'net/test',
1389 'includes': [ '../build/jni_generator.gypi' ],
1392 'target_name': 'net_java',
1395 'java_in_dir': '../net/android/java',
1398 '../base/base.gyp:base',
1399 'cert_verify_status_android_java',
1400 'certificate_mime_types_java',
1401 'network_change_notifier_types_java',
1403 'private_key_types_java',
1404 'remote_android_keystore_aidl',
1406 'includes': [ '../build/java.gypi' ],
1409 # Processes the interface files for communication with an Android KeyStore
1410 # running in a separate process.
1411 'target_name': 'remote_android_keystore_aidl',
1414 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1417 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1418 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1420 'includes': [ '../build/java_aidl.gypi' ],
1423 'target_name': 'net_java_test_support',
1426 'java_in_dir': '../net/test/android/javatests',
1430 'url_request_failed_job_java',
1431 '../base/base.gyp:base_java',
1433 '<@(net_test_extra_libs)',
1435 'includes': [ '../build/java.gypi' ],
1438 'target_name': 'url_request_failed_job_java',
1441 'source_file': 'test/url_request/url_request_failed_job.h',
1443 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1446 'target_name': 'net_javatests',
1449 'java_in_dir': '../net/android/javatests',
1452 '../base/base.gyp:base',
1453 '../base/base.gyp:base_java_test_support',
1456 'includes': [ '../build/java.gypi' ],
1459 'target_name': 'net_errors_java',
1462 'android/java/NetError.template',
1465 'package_name': 'org/chromium/net',
1466 'template_deps': ['base/net_error_list.h'],
1468 'includes': [ '../build/android/java_cpp_template.gypi' ],
1471 'target_name': 'certificate_mime_types_java',
1474 'source_file': 'base/mime_util.h',
1476 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1479 'target_name': 'cert_verify_status_android_java',
1482 'source_file': 'android/cert_verify_result_android.h',
1484 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1487 'target_name': 'network_change_notifier_types_java',
1490 'source_file': 'base/network_change_notifier.h',
1492 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1495 'target_name': 'private_key_types_java',
1498 'source_file': 'android/keystore.h',
1500 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1503 'target_name': 'net_unittests_apk',
1508 'net_java_test_support',
1512 ['v8_use_external_startup_data==1', {
1514 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1518 'destination': '<(asset_location)',
1520 '<(PRODUCT_DIR)/natives_blob.bin',
1521 '<(PRODUCT_DIR)/snapshot_blob.bin',
1528 'test_suite_name': 'net_unittests',
1529 'isolate_file': 'net_unittests.isolate',
1530 'android_manifest_path': 'android/unittest_support/AndroidManifest.xml',
1531 'resource_dir': 'android/unittest_support/res',
1533 ['v8_use_external_startup_data==1', {
1534 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1535 'additional_input_paths': [
1536 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1537 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1540 '<(PRODUCT_DIR)/natives_blob.bin',
1541 '<(PRODUCT_DIR)/snapshot_blob.bin',
1546 'includes': [ '../build/apk_test.gypi' ],
1549 'target_name': 'net_junit_tests',
1553 '../base/base.gyp:base',
1554 '../base/base.gyp:base_java_test_support',
1555 '../testing/android/junit/junit_test.gyp:junit_test_support',
1558 'main_class': 'org.chromium.testing.local.JunitTestMain',
1564 '../build/host_jar.gypi',
1570 ['OS == "android" or OS == "linux"', {
1573 'target_name': 'disk_cache_memory_test',
1574 'type': 'executable',
1576 '../base/base.gyp:base',
1580 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1585 ['test_isolation_mode != "noop"', {
1588 'target_name': 'net_unittests_run',
1594 '../build/isolate.gypi',
1597 'net_unittests.isolate',