Suppression for crbug/241044.
[chromium-blink-merge.git] / net / net.gyp
blob656a2b48341d73834032f6bd4622ac9edb86c574
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.
6   'variables': {
7     'chromium_code': 1,
9     'linux_link_kerberos%': 0,
10     'use_tracing_cache_backend%': 0,
11     'conditions': [
12       ['chromeos==1 or OS=="android" or OS=="ios"', {
13         # Disable Kerberos on ChromeOS, Android and iOS, at least for now.
14         # It needs configuration (krb5.conf and so on).
15         'use_kerberos%': 0,
16       }, {  # chromeos == 0
17         'use_kerberos%': 1,
18       }],
19       ['OS=="android" and target_arch != "ia32"', {
20         # The way the cache uses mmap() is inefficient on some Android devices.
21         # If this flag is set, we hackily avoid using mmap() in the disk cache.
22         # We are pretty confident that mmap-ing the index would not hurt any
23         # existing x86 android devices, but we cannot be so sure about the
24         # variety of ARM devices. So enable it for x86 only for now.
25         'posix_avoid_mmap%': 1,
26       }, {
27         'posix_avoid_mmap%': 0,
28       }],
29       ['OS=="ios"', {
30         # Websockets and socket stream are not used on iOS.
31         'enable_websockets%': 0,
32         # iOS does not use V8.
33         'use_v8_in_net%': 0,
34         'enable_built_in_dns%': 0,
35       }, {
36         'enable_websockets%': 1,
37         'use_v8_in_net%': 1,
38         'enable_built_in_dns%': 1,
39       }],
40     ],
41   },
42   'includes': [
43     '../build/win_precompile.gypi',
44   ],
45   'targets': [
46     {
47       'target_name': 'net',
48       'type': '<(component)',
49       'variables': { 'enable_wexit_time_destructors': 1, },
50       'dependencies': [
51         '../base/base.gyp:base',
52         '../base/base.gyp:base_i18n',
53         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
54         '../build/temp_gyp/googleurl.gyp:googleurl',
55         '../crypto/crypto.gyp:crypto',
56         '../sdch/sdch.gyp:sdch',
57         '../third_party/icu/icu.gyp:icui18n',
58         '../third_party/icu/icu.gyp:icuuc',
59         '../third_party/zlib/zlib.gyp:zlib',
60         'net_resources',
61       ],
62       'sources': [
63         'android/cert_verify_result_android.h',
64         'android/cert_verify_result_android_list.h',
65         'android/gurl_utils.cc',
66         'android/gurl_utils.h',
67         'android/keystore.cc',
68         'android/keystore.h',
69         'android/keystore_openssl.cc',
70         'android/keystore_openssl.h',
71         'android/net_jni_registrar.cc',
72         'android/net_jni_registrar.h',
73         'android/network_change_notifier_android.cc',
74         'android/network_change_notifier_android.h',
75         'android/network_change_notifier_delegate_android.cc',
76         'android/network_change_notifier_delegate_android.h',
77         'android/network_change_notifier_factory_android.cc',
78         'android/network_change_notifier_factory_android.h',
79         'android/network_library.cc',
80         'android/network_library.h',
81         'base/address_family.h',
82         'base/address_list.cc',
83         'base/address_list.h',
84         'base/address_tracker_linux.cc',
85         'base/address_tracker_linux.h',
86         'base/auth.cc',
87         'base/auth.h',
88         'base/backoff_entry.cc',
89         'base/backoff_entry.h',
90         'base/bandwidth_metrics.cc',
91         'base/bandwidth_metrics.h',
92         'base/big_endian.cc',
93         'base/big_endian.h',
94         'base/cache_type.h',
95         'base/completion_callback.h',
96         'base/connection_type_histograms.cc',
97         'base/connection_type_histograms.h',
98         'base/crypto_module.h',
99         'base/crypto_module_nss.cc',
100         'base/crypto_module_openssl.cc',
101         'base/data_url.cc',
102         'base/data_url.h',
103         'base/directory_lister.cc',
104         'base/directory_lister.h',
105         'base/dns_reloader.cc',
106         'base/dns_reloader.h',
107         'base/dns_util.cc',
108         'base/dns_util.h',
109         'base/escape.cc',
110         'base/escape.h',
111         'base/expiring_cache.h',
112         'base/file_stream.cc',
113         'base/file_stream.h',
114         'base/file_stream_context.cc',
115         'base/file_stream_context.h',
116         'base/file_stream_context_posix.cc',
117         'base/file_stream_context_win.cc',
118         'base/file_stream_metrics.cc',
119         'base/file_stream_metrics.h',
120         'base/file_stream_metrics_posix.cc',
121         'base/file_stream_metrics_win.cc',
122         'base/file_stream_net_log_parameters.cc',
123         'base/file_stream_net_log_parameters.h',
124         'base/file_stream_whence.h',
125         'base/filter.cc',
126         'base/filter.h',
127         'base/int128.cc',
128         'base/int128.h',
129         'base/gzip_filter.cc',
130         'base/gzip_filter.h',
131         'base/gzip_header.cc',
132         'base/gzip_header.h',
133         'base/hash_value.cc',
134         'base/hash_value.h',
135         'base/host_mapping_rules.cc',
136         'base/host_mapping_rules.h',
137         'base/host_port_pair.cc',
138         'base/host_port_pair.h',
139         'base/io_buffer.cc',
140         'base/io_buffer.h',
141         'base/iovec.h',
142         'base/ip_endpoint.cc',
143         'base/ip_endpoint.h',
144         'base/keygen_handler.cc',
145         'base/keygen_handler.h',
146         'base/keygen_handler_mac.cc',
147         'base/keygen_handler_nss.cc',
148         'base/keygen_handler_openssl.cc',
149         'base/keygen_handler_win.cc',
150         'base/linked_hash_map.h',
151         'base/load_flags.h',
152         'base/load_flags_list.h',
153         'base/load_states.h',
154         'base/load_states_list.h',
155         'base/load_timing_info.cc',
156         'base/load_timing_info.h',
157         'base/mime_sniffer.cc',
158         'base/mime_sniffer.h',
159         'base/mime_util.cc',
160         'base/mime_util.h',
161         'base/net_error_list.h',
162         'base/net_errors.cc',
163         'base/net_errors.h',
164         'base/net_errors_posix.cc',
165         'base/net_errors_win.cc',
166         'base/net_export.h',
167         'base/net_log.cc',
168         'base/net_log.h',
169         'base/net_log_event_type_list.h',
170         'base/net_log_source_type_list.h',
171         'base/net_module.cc',
172         'base/net_module.h',
173         'base/net_util.cc',
174         'base/net_util.h',
175         'base/net_util_posix.cc',
176         'base/net_util_win.cc',
177         'base/network_change_notifier.cc',
178         'base/network_change_notifier.h',
179         'base/network_change_notifier_factory.h',
180         'base/network_change_notifier_linux.cc',
181         'base/network_change_notifier_linux.h',
182         'base/network_change_notifier_mac.cc',
183         'base/network_change_notifier_mac.h',
184         'base/network_change_notifier_win.cc',
185         'base/network_change_notifier_win.h',
186         'base/network_config_watcher_mac.cc',
187         'base/network_config_watcher_mac.h',
188         'base/network_delegate.cc',
189         'base/network_delegate.h',
190         'base/network_time_notifier.cc',
191         'base/network_time_notifier.h',
192         'base/nss_memio.c',
193         'base/nss_memio.h',
194         'base/openssl_private_key_store.h',
195         'base/openssl_private_key_store_android.cc',
196         'base/openssl_private_key_store_memory.cc',
197         'base/platform_mime_util.h',
198         # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
199         'base/platform_mime_util_linux.cc',
200         'base/platform_mime_util_mac.mm',
201         'base/platform_mime_util_win.cc',
202         'base/prioritized_dispatcher.cc',
203         'base/prioritized_dispatcher.h',
204         'base/priority_queue.h',
205         'base/rand_callback.h',
206         'base/registry_controlled_domains/registry_controlled_domain.cc',
207         'base/registry_controlled_domains/registry_controlled_domain.h',
208         'base/request_priority.h',
209         'base/sdch_filter.cc',
210         'base/sdch_filter.h',
211         'base/sdch_manager.cc',
212         'base/sdch_manager.h',
213         'base/static_cookie_policy.cc',
214         'base/static_cookie_policy.h',
215         'base/sys_addrinfo.h',
216         'base/test_data_stream.cc',
217         'base/test_data_stream.h',
218         'base/upload_bytes_element_reader.cc',
219         'base/upload_bytes_element_reader.h',
220         'base/upload_data.cc',
221         'base/upload_data.h',
222         'base/upload_data_stream.cc',
223         'base/upload_data_stream.h',
224         'base/upload_element.cc',
225         'base/upload_element.h',
226         'base/upload_element_reader.cc',
227         'base/upload_element_reader.h',
228         'base/upload_file_element_reader.cc',
229         'base/upload_file_element_reader.h',
230         'base/upload_progress.h',
231         'base/url_util.cc',
232         'base/url_util.h',
233         'base/winsock_init.cc',
234         'base/winsock_init.h',
235         'base/winsock_util.cc',
236         'base/winsock_util.h',
237         'base/zap.cc',
238         'base/zap.h',
239         'cert/asn1_util.cc',
240         'cert/asn1_util.h',
241         'cert/cert_database.cc',
242         'cert/cert_database.h',
243         'cert/cert_database_android.cc',
244         'cert/cert_database_ios.cc',
245         'cert/cert_database_mac.cc',
246         'cert/cert_database_nss.cc',
247         'cert/cert_database_openssl.cc',
248         'cert/cert_database_win.cc',
249         'cert/cert_status_flags.cc',
250         'cert/cert_status_flags.h',
251         'cert/cert_trust_anchor_provider.h',
252         'cert/cert_verifier.cc',
253         'cert/cert_verifier.h',
254         'cert/cert_verify_proc.cc',
255         'cert/cert_verify_proc.h',
256         'cert/cert_verify_proc_android.cc',
257         'cert/cert_verify_proc_android.h',
258         'cert/cert_verify_proc_mac.cc',
259         'cert/cert_verify_proc_mac.h',
260         'cert/cert_verify_proc_nss.cc',
261         'cert/cert_verify_proc_nss.h',
262         'cert/cert_verify_proc_openssl.cc',
263         'cert/cert_verify_proc_openssl.h',
264         'cert/cert_verify_proc_win.cc',
265         'cert/cert_verify_proc_win.h',
266         'cert/cert_verify_result.cc',
267         'cert/cert_verify_result.h',
268         'cert/crl_set.cc',
269         'cert/crl_set.h',
270         'cert/ev_root_ca_metadata.cc',
271         'cert/ev_root_ca_metadata.h',
272         'cert/multi_threaded_cert_verifier.cc',
273         'cert/multi_threaded_cert_verifier.h',
274         'cert/nss_cert_database.cc',
275         'cert/nss_cert_database.h',
276         'cert/pem_tokenizer.cc',
277         'cert/pem_tokenizer.h',
278         'cert/single_request_cert_verifier.cc',
279         'cert/single_request_cert_verifier.h',
280         'cert/test_root_certs.cc',
281         'cert/test_root_certs.h',
282         'cert/test_root_certs_mac.cc',
283         'cert/test_root_certs_nss.cc',
284         'cert/test_root_certs_openssl.cc',
285         'cert/test_root_certs_android.cc',
286         'cert/test_root_certs_win.cc',
287         'cert/x509_cert_types.cc',
288         'cert/x509_cert_types.h',
289         'cert/x509_cert_types_mac.cc',
290         'cert/x509_cert_types_win.cc',
291         'cert/x509_certificate.cc',
292         'cert/x509_certificate.h',
293         'cert/x509_certificate_ios.cc',
294         'cert/x509_certificate_mac.cc',
295         'cert/x509_certificate_net_log_param.cc',
296         'cert/x509_certificate_net_log_param.h',
297         'cert/x509_certificate_nss.cc',
298         'cert/x509_certificate_openssl.cc',
299         'cert/x509_certificate_win.cc',
300         'cert/x509_util.h',
301         'cert/x509_util.cc',
302         'cert/x509_util_ios.cc',
303         'cert/x509_util_ios.h',
304         'cert/x509_util_mac.cc',
305         'cert/x509_util_mac.h',
306         'cert/x509_util_nss.cc',
307         'cert/x509_util_nss.h',
308         'cert/x509_util_openssl.cc',
309         'cert/x509_util_openssl.h',
310         'cookies/canonical_cookie.cc',
311         'cookies/canonical_cookie.h',
312         'cookies/cookie_constants.cc',
313         'cookies/cookie_constants.h',
314         'cookies/cookie_monster.cc',
315         'cookies/cookie_monster.h',
316         'cookies/cookie_options.h',
317         'cookies/cookie_store.cc',
318         'cookies/cookie_store.h',
319         'cookies/cookie_util.cc',
320         'cookies/cookie_util.h',
321         'cookies/parsed_cookie.cc',
322         'cookies/parsed_cookie.h',
323         'disk_cache/addr.cc',
324         'disk_cache/addr.h',
325         'disk_cache/backend_impl.cc',
326         'disk_cache/backend_impl.h',
327         'disk_cache/bitmap.cc',
328         'disk_cache/bitmap.h',
329         'disk_cache/block_files.cc',
330         'disk_cache/block_files.h',
331         'disk_cache/cache_creator.cc',
332         'disk_cache/cache_util.h',
333         'disk_cache/cache_util.cc',
334         'disk_cache/cache_util_posix.cc',
335         'disk_cache/cache_util_win.cc',
336         'disk_cache/disk_cache.h',
337         'disk_cache/disk_format.cc',
338         'disk_cache/disk_format.h',
339         'disk_cache/entry_impl.cc',
340         'disk_cache/entry_impl.h',
341         'disk_cache/errors.h',
342         'disk_cache/eviction.cc',
343         'disk_cache/eviction.h',
344         'disk_cache/experiments.h',
345         'disk_cache/file.cc',
346         'disk_cache/file.h',
347         'disk_cache/file_block.h',
348         'disk_cache/file_lock.cc',
349         'disk_cache/file_lock.h',
350         'disk_cache/file_posix.cc',
351         'disk_cache/file_win.cc',
352         'disk_cache/histogram_macros.h',
353         'disk_cache/in_flight_backend_io.cc',
354         'disk_cache/in_flight_backend_io.h',
355         'disk_cache/in_flight_io.cc',
356         'disk_cache/in_flight_io.h',
357         'disk_cache/mapped_file.h',
358         'disk_cache/mapped_file_posix.cc',
359         'disk_cache/mapped_file_avoid_mmap_posix.cc',
360         'disk_cache/mapped_file_win.cc',
361         'disk_cache/mem_backend_impl.cc',
362         'disk_cache/mem_backend_impl.h',
363         'disk_cache/mem_entry_impl.cc',
364         'disk_cache/mem_entry_impl.h',
365         'disk_cache/mem_rankings.cc',
366         'disk_cache/mem_rankings.h',
367         'disk_cache/net_log_parameters.cc',
368         'disk_cache/net_log_parameters.h',
369         'disk_cache/rankings.cc',
370         'disk_cache/rankings.h',
371         'disk_cache/sparse_control.cc',
372         'disk_cache/sparse_control.h',
373         'disk_cache/stats.cc',
374         'disk_cache/stats.h',
375         'disk_cache/stats_histogram.cc',
376         'disk_cache/stats_histogram.h',
377         'disk_cache/storage_block-inl.h',
378         'disk_cache/storage_block.h',
379         'disk_cache/stress_support.h',
380         'disk_cache/trace.cc',
381         'disk_cache/trace.h',
382         'disk_cache/tracing_cache_backend.cc',
383         'disk_cache/tracing_cache_backend.h',
384         'disk_cache/simple/simple_backend_impl.cc',
385         'disk_cache/simple/simple_backend_impl.h',
386         'disk_cache/simple/simple_entry_format.cc',
387         'disk_cache/simple/simple_entry_format.h',
388         'disk_cache/simple/simple_entry_impl.cc',
389         'disk_cache/simple/simple_entry_impl.h',
390         'disk_cache/simple/simple_index.cc',
391         'disk_cache/simple/simple_index.h',
392         'disk_cache/simple/simple_index_file.cc',
393         'disk_cache/simple/simple_index_file.h',
394         'disk_cache/simple/simple_synchronous_entry.cc',
395         'disk_cache/simple/simple_synchronous_entry.h',
396         'disk_cache/simple/simple_util.cc',
397         'disk_cache/simple/simple_util.h',
398         'disk_cache/flash/flash_entry_impl.cc',
399         'disk_cache/flash/flash_entry_impl.h',
400         'disk_cache/flash/format.h',
401         'disk_cache/flash/internal_entry.cc',
402         'disk_cache/flash/internal_entry.h',
403         'disk_cache/flash/log_store.cc',
404         'disk_cache/flash/log_store.h',
405         'disk_cache/flash/log_store_entry.cc',
406         'disk_cache/flash/log_store_entry.h',
407         'disk_cache/flash/segment.cc',
408         'disk_cache/flash/segment.h',
409         'disk_cache/flash/storage.cc',
410         'disk_cache/flash/storage.h',
411         'dns/address_sorter.h',
412         'dns/address_sorter_posix.cc',
413         'dns/address_sorter_posix.h',
414         'dns/address_sorter_win.cc',
415         'dns/dns_client.cc',
416         'dns/dns_client.h',
417         'dns/dns_config_service.cc',
418         'dns/dns_config_service.h',
419         'dns/dns_config_service_posix.cc',
420         'dns/dns_config_service_posix.h',
421         'dns/dns_config_service_win.cc',
422         'dns/dns_config_service_win.h',
423         'dns/dns_hosts.cc',
424         'dns/dns_hosts.h',
425         'dns/dns_protocol.h',
426         'dns/dns_query.cc',
427         'dns/dns_query.h',
428         'dns/dns_response.cc',
429         'dns/dns_response.h',
430         'dns/dns_session.cc',
431         'dns/dns_session.h',
432         'dns/dns_socket_pool.cc',
433         'dns/dns_socket_pool.h',
434         'dns/dns_transaction.cc',
435         'dns/dns_transaction.h',
436         'dns/host_cache.cc',
437         'dns/host_cache.h',
438         'dns/host_resolver.cc',
439         'dns/host_resolver.h',
440         'dns/host_resolver_impl.cc',
441         'dns/host_resolver_impl.h',
442         'dns/host_resolver_proc.cc',
443         'dns/host_resolver_proc.h',
444         'dns/mapped_host_resolver.cc',
445         'dns/mapped_host_resolver.h',
446         'dns/notify_watcher_mac.cc',
447         'dns/notify_watcher_mac.h',
448         'dns/record_parsed.cc',
449         'dns/record_parsed.h',
450         'dns/record_rdata.cc',
451         'dns/record_rdata.h',
452         'dns/serial_worker.cc',
453         'dns/serial_worker.h',
454         'dns/single_request_host_resolver.cc',
455         'dns/single_request_host_resolver.h',
456         'ftp/ftp_auth_cache.cc',
457         'ftp/ftp_auth_cache.h',
458         'ftp/ftp_ctrl_response_buffer.cc',
459         'ftp/ftp_ctrl_response_buffer.h',
460         'ftp/ftp_directory_listing_parser.cc',
461         'ftp/ftp_directory_listing_parser.h',
462         'ftp/ftp_directory_listing_parser_ls.cc',
463         'ftp/ftp_directory_listing_parser_ls.h',
464         'ftp/ftp_directory_listing_parser_netware.cc',
465         'ftp/ftp_directory_listing_parser_netware.h',
466         'ftp/ftp_directory_listing_parser_os2.cc',
467         'ftp/ftp_directory_listing_parser_os2.h',
468         'ftp/ftp_directory_listing_parser_vms.cc',
469         'ftp/ftp_directory_listing_parser_vms.h',
470         'ftp/ftp_directory_listing_parser_windows.cc',
471         'ftp/ftp_directory_listing_parser_windows.h',
472         'ftp/ftp_network_layer.cc',
473         'ftp/ftp_network_layer.h',
474         'ftp/ftp_network_session.cc',
475         'ftp/ftp_network_session.h',
476         'ftp/ftp_network_transaction.cc',
477         'ftp/ftp_network_transaction.h',
478         'ftp/ftp_request_info.h',
479         'ftp/ftp_response_info.cc',
480         'ftp/ftp_response_info.h',
481         'ftp/ftp_server_type_histograms.cc',
482         'ftp/ftp_server_type_histograms.h',
483         'ftp/ftp_transaction.h',
484         'ftp/ftp_transaction_factory.h',
485         'ftp/ftp_util.cc',
486         'ftp/ftp_util.h',
487         'http/des.cc',
488         'http/des.h',
489         'http/http_atom_list.h',
490         'http/http_auth.cc',
491         'http/http_auth.h',
492         'http/http_auth_cache.cc',
493         'http/http_auth_cache.h',
494         'http/http_auth_controller.cc',
495         'http/http_auth_controller.h',
496         'http/http_auth_filter.cc',
497         'http/http_auth_filter.h',
498         'http/http_auth_filter_win.h',
499         'http/http_auth_gssapi_posix.cc',
500         'http/http_auth_gssapi_posix.h',
501         'http/http_auth_handler.cc',
502         'http/http_auth_handler.h',
503         'http/http_auth_handler_basic.cc',
504         'http/http_auth_handler_basic.h',
505         'http/http_auth_handler_digest.cc',
506         'http/http_auth_handler_digest.h',
507         'http/http_auth_handler_factory.cc',
508         'http/http_auth_handler_factory.h',
509         'http/http_auth_handler_negotiate.cc',
510         'http/http_auth_handler_negotiate.h',
511         'http/http_auth_handler_ntlm.cc',
512         'http/http_auth_handler_ntlm.h',
513         'http/http_auth_handler_ntlm_portable.cc',
514         'http/http_auth_handler_ntlm_win.cc',
515         'http/http_auth_sspi_win.cc',
516         'http/http_auth_sspi_win.h',
517         'http/http_basic_stream.cc',
518         'http/http_basic_stream.h',
519         'http/http_byte_range.cc',
520         'http/http_byte_range.h',
521         'http/http_cache.cc',
522         'http/http_cache.h',
523         'http/http_cache_transaction.cc',
524         'http/http_cache_transaction.h',
525         'http/http_content_disposition.cc',
526         'http/http_content_disposition.h',
527         'http/http_chunked_decoder.cc',
528         'http/http_chunked_decoder.h',
529         'http/http_network_layer.cc',
530         'http/http_network_layer.h',
531         'http/http_network_session.cc',
532         'http/http_network_session.h',
533         'http/http_network_session_peer.cc',
534         'http/http_network_session_peer.h',
535         'http/http_network_transaction.cc',
536         'http/http_network_transaction.h',
537         'http/http_pipelined_connection.h',
538         'http/http_pipelined_connection_impl.cc',
539         'http/http_pipelined_connection_impl.h',
540         'http/http_pipelined_host.cc',
541         'http/http_pipelined_host.h',
542         'http/http_pipelined_host_capability.h',
543         'http/http_pipelined_host_forced.cc',
544         'http/http_pipelined_host_forced.h',
545         'http/http_pipelined_host_impl.cc',
546         'http/http_pipelined_host_impl.h',
547         'http/http_pipelined_host_pool.cc',
548         'http/http_pipelined_host_pool.h',
549         'http/http_pipelined_stream.cc',
550         'http/http_pipelined_stream.h',
551         'http/http_proxy_client_socket.cc',
552         'http/http_proxy_client_socket.h',
553         'http/http_proxy_client_socket_pool.cc',
554         'http/http_proxy_client_socket_pool.h',
555         'http/http_request_headers.cc',
556         'http/http_request_headers.h',
557         'http/http_request_info.cc',
558         'http/http_request_info.h',
559         'http/http_response_body_drainer.cc',
560         'http/http_response_body_drainer.h',
561         'http/http_response_headers.cc',
562         'http/http_response_headers.h',
563         'http/http_response_info.cc',
564         'http/http_response_info.h',
565         'http/http_security_headers.cc',
566         'http/http_security_headers.h',
567         'http/http_server_properties.cc',
568         'http/http_server_properties.h',
569         'http/http_server_properties_impl.cc',
570         'http/http_server_properties_impl.h',
571         'http/http_status_code.h',
572         'http/http_stream.h',
573         'http/http_stream_base.h',
574         'http/http_stream_factory.cc',
575         'http/http_stream_factory.h',
576         'http/http_stream_factory_impl.cc',
577         'http/http_stream_factory_impl.h',
578         'http/http_stream_factory_impl_job.cc',
579         'http/http_stream_factory_impl_job.h',
580         'http/http_stream_factory_impl_request.cc',
581         'http/http_stream_factory_impl_request.h',
582         'http/http_stream_parser.cc',
583         'http/http_stream_parser.h',
584         'http/http_transaction.h',
585         'http/http_transaction_delegate.h',
586         'http/http_transaction_factory.h',
587         'http/http_util.cc',
588         'http/http_util.h',
589         'http/http_util_icu.cc',
590         'http/http_vary_data.cc',
591         'http/http_vary_data.h',
592         'http/http_version.h',
593         'http/md4.cc',
594         'http/md4.h',
595         'http/partial_data.cc',
596         'http/partial_data.h',
597         'http/proxy_client_socket.h',
598         'http/proxy_client_socket.cc',
599         'http/transport_security_state.cc',
600         'http/transport_security_state.h',
601         'http/transport_security_state_static.h',
602         'http/url_security_manager.cc',
603         'http/url_security_manager.h',
604         'http/url_security_manager_posix.cc',
605         'http/url_security_manager_win.cc',
606         'ocsp/nss_ocsp.cc',
607         'ocsp/nss_ocsp.h',
608         'proxy/dhcp_proxy_script_adapter_fetcher_win.cc',
609         'proxy/dhcp_proxy_script_adapter_fetcher_win.h',
610         'proxy/dhcp_proxy_script_fetcher.cc',
611         'proxy/dhcp_proxy_script_fetcher.h',
612         'proxy/dhcp_proxy_script_fetcher_factory.cc',
613         'proxy/dhcp_proxy_script_fetcher_factory.h',
614         'proxy/dhcp_proxy_script_fetcher_win.cc',
615         'proxy/dhcp_proxy_script_fetcher_win.h',
616         'proxy/dhcpcsvc_init_win.cc',
617         'proxy/dhcpcsvc_init_win.h',
618         'proxy/multi_threaded_proxy_resolver.cc',
619         'proxy/multi_threaded_proxy_resolver.h',
620         'proxy/network_delegate_error_observer.cc',
621         'proxy/network_delegate_error_observer.h',
622         'proxy/polling_proxy_config_service.cc',
623         'proxy/polling_proxy_config_service.h',
624         'proxy/proxy_bypass_rules.cc',
625         'proxy/proxy_bypass_rules.h',
626         'proxy/proxy_config.cc',
627         'proxy/proxy_config.h',
628         'proxy/proxy_config_service.h',
629         'proxy/proxy_config_service_android.cc',
630         'proxy/proxy_config_service_android.h',
631         'proxy/proxy_config_service_fixed.cc',
632         'proxy/proxy_config_service_fixed.h',
633         'proxy/proxy_config_service_ios.cc',
634         'proxy/proxy_config_service_ios.h',
635         'proxy/proxy_config_service_linux.cc',
636         'proxy/proxy_config_service_linux.h',
637         'proxy/proxy_config_service_mac.cc',
638         'proxy/proxy_config_service_mac.h',
639         'proxy/proxy_config_service_win.cc',
640         'proxy/proxy_config_service_win.h',
641         'proxy/proxy_config_source.cc',
642         'proxy/proxy_config_source.h',
643         'proxy/proxy_info.cc',
644         'proxy/proxy_info.h',
645         'proxy/proxy_list.cc',
646         'proxy/proxy_list.h',
647         'proxy/proxy_resolver.h',
648         'proxy/proxy_resolver_error_observer.h',
649         'proxy/proxy_resolver_mac.cc',
650         'proxy/proxy_resolver_mac.h',
651         'proxy/proxy_resolver_script.h',
652         'proxy/proxy_resolver_script_data.cc',
653         'proxy/proxy_resolver_script_data.h',
654         'proxy/proxy_resolver_winhttp.cc',
655         'proxy/proxy_resolver_winhttp.h',
656         'proxy/proxy_retry_info.h',
657         'proxy/proxy_script_decider.cc',
658         'proxy/proxy_script_decider.h',
659         'proxy/proxy_script_fetcher.h',
660         'proxy/proxy_script_fetcher_impl.cc',
661         'proxy/proxy_script_fetcher_impl.h',
662         'proxy/proxy_server.cc',
663         'proxy/proxy_server.h',
664         'proxy/proxy_server_mac.cc',
665         'proxy/proxy_service.cc',
666         'proxy/proxy_service.h',
667         'quic/blocked_list.h',
668         'quic/congestion_control/available_channel_estimator.cc',
669         'quic/congestion_control/available_channel_estimator.h',
670         'quic/congestion_control/channel_estimator.cc',
671         'quic/congestion_control/channel_estimator.h',
672         'quic/congestion_control/cube_root.cc',
673         'quic/congestion_control/cube_root.h',
674         'quic/congestion_control/cubic.cc',
675         'quic/congestion_control/cubic.h',
676         'quic/congestion_control/fix_rate_receiver.cc',
677         'quic/congestion_control/fix_rate_receiver.h',
678         'quic/congestion_control/fix_rate_sender.cc',
679         'quic/congestion_control/fix_rate_sender.h',
680         'quic/congestion_control/hybrid_slow_start.cc',
681         'quic/congestion_control/hybrid_slow_start.h',
682         'quic/congestion_control/inter_arrival_bitrate_ramp_up.cc',
683         'quic/congestion_control/inter_arrival_bitrate_ramp_up.h',
684         'quic/congestion_control/inter_arrival_overuse_detector.cc',
685         'quic/congestion_control/inter_arrival_overuse_detector.h',
686         'quic/congestion_control/inter_arrival_probe.cc',
687         'quic/congestion_control/inter_arrival_probe.h',
688         'quic/congestion_control/inter_arrival_receiver.cc',
689         'quic/congestion_control/inter_arrival_receiver.h',
690         'quic/congestion_control/inter_arrival_sender.cc',
691         'quic/congestion_control/inter_arrival_sender.h',
692         'quic/congestion_control/inter_arrival_state_machine.cc',
693         'quic/congestion_control/inter_arrival_state_machine.h',
694         'quic/congestion_control/leaky_bucket.cc',
695         'quic/congestion_control/leaky_bucket.h',
696         'quic/congestion_control/paced_sender.cc',
697         'quic/congestion_control/paced_sender.h',
698         'quic/congestion_control/quic_congestion_manager.cc',
699         'quic/congestion_control/quic_congestion_manager.h',
700         'quic/congestion_control/quic_max_sized_map.h',
701         'quic/congestion_control/receive_algorithm_interface.cc',
702         'quic/congestion_control/receive_algorithm_interface.h',
703         'quic/congestion_control/send_algorithm_interface.cc',
704         'quic/congestion_control/send_algorithm_interface.h',
705         'quic/congestion_control/tcp_cubic_sender.cc',
706         'quic/congestion_control/tcp_cubic_sender.h',
707         'quic/congestion_control/tcp_receiver.cc',
708         'quic/congestion_control/tcp_receiver.h',
709         'quic/crypto/aes_128_gcm_decrypter.h',
710         'quic/crypto/aes_128_gcm_decrypter_nss.cc',
711         'quic/crypto/aes_128_gcm_decrypter_openssl.cc',
712         'quic/crypto/aes_128_gcm_encrypter.h',
713         'quic/crypto/aes_128_gcm_encrypter_nss.cc',
714         'quic/crypto/aes_128_gcm_encrypter_openssl.cc',
715         'quic/crypto/cert_compressor.cc',
716         'quic/crypto/cert_compressor.h',
717         'quic/crypto/common_cert_set.cc',
718         'quic/crypto/common_cert_set.h',
719         'quic/crypto/crypto_framer.cc',
720         'quic/crypto/crypto_framer.h',
721         'quic/crypto/crypto_handshake.cc',
722         'quic/crypto/crypto_handshake.h',
723         'quic/crypto/crypto_protocol.h',
724         'quic/crypto/crypto_server_config.cc',
725         'quic/crypto/crypto_server_config.h',
726         'quic/crypto/crypto_server_config_protobuf.cc',
727         'quic/crypto/crypto_server_config_protobuf.h',
728         'quic/crypto/crypto_utils.cc',
729         'quic/crypto/crypto_utils.h',
730         'quic/crypto/curve25519_key_exchange.cc',
731         'quic/crypto/curve25519_key_exchange.h',
732         'quic/crypto/ephemeral_key_source.h',
733         'quic/crypto/key_exchange.h',
734         'quic/crypto/null_decrypter.cc',
735         'quic/crypto/null_decrypter.h',
736         'quic/crypto/null_encrypter.cc',
737         'quic/crypto/null_encrypter.h',
738         'quic/crypto/p256_key_exchange.h',
739         'quic/crypto/p256_key_exchange_nss.cc',
740         'quic/crypto/p256_key_exchange_openssl.cc',
741         'quic/crypto/proof_source.h',
742         'quic/crypto/quic_decrypter.cc',
743         'quic/crypto/quic_decrypter.h',
744         'quic/crypto/quic_encrypter.cc',
745         'quic/crypto/quic_encrypter.h',
746         'quic/crypto/quic_random.cc',
747         'quic/crypto/quic_random.h',
748         'quic/crypto/scoped_evp_cipher_ctx.h',
749         'quic/crypto/strike_register.cc',
750         'quic/crypto/strike_register.h',
751         'quic/crypto/source_address_token.cc',
752         'quic/crypto/source_address_token.h',
753         'quic/quic_bandwidth.cc',
754         'quic/quic_bandwidth.h',
755         'quic/quic_blocked_writer_interface.h',
756         'quic/quic_client_session.cc',
757         'quic/quic_client_session.h',
758         'quic/quic_config.cc',
759         'quic/quic_config.h',
760         'quic/quic_crypto_client_stream.cc',
761         'quic/quic_crypto_client_stream.h',
762         'quic/quic_crypto_client_stream_factory.h',
763         'quic/quic_crypto_server_stream.cc',
764         'quic/quic_crypto_server_stream.h',
765         'quic/quic_crypto_stream.cc',
766         'quic/quic_crypto_stream.h',
767         'quic/quic_clock.cc',
768         'quic/quic_clock.h',
769         'quic/quic_connection.cc',
770         'quic/quic_connection.h',
771         'quic/quic_connection_helper.cc',
772         'quic/quic_connection_helper.h',
773         'quic/quic_connection_logger.cc',
774         'quic/quic_connection_logger.h',
775         'quic/quic_data_reader.cc',
776         'quic/quic_data_reader.h',
777         'quic/quic_data_writer.cc',
778         'quic/quic_data_writer.h',
779         'quic/quic_fec_group.cc',
780         'quic/quic_fec_group.h',
781         'quic/quic_framer.cc',
782         'quic/quic_framer.h',
783         'quic/quic_http_stream.cc',
784         'quic/quic_http_stream.h',
785         'quic/quic_packet_creator.cc',
786         'quic/quic_packet_creator.h',
787         'quic/quic_packet_entropy_manager.cc',
788         'quic/quic_packet_entropy_manager.h',
789         'quic/quic_packet_generator.cc',
790         'quic/quic_packet_generator.h',
791         'quic/quic_protocol.cc',
792         'quic/quic_protocol.h',
793         'quic/quic_reliable_client_stream.cc',
794         'quic/quic_reliable_client_stream.h',
795         'quic/quic_session.cc',
796         'quic/quic_session.h',
797         'quic/quic_spdy_compressor.cc',
798         'quic/quic_spdy_compressor.h',
799         'quic/quic_spdy_decompressor.cc',
800         'quic/quic_spdy_decompressor.h',
801         'quic/quic_stats.cc',
802         'quic/quic_stats.h',
803         'quic/quic_stream_factory.cc',
804         'quic/quic_stream_factory.h',
805         'quic/quic_stream_sequencer.cc',
806         'quic/quic_stream_sequencer.h',
807         'quic/quic_time.cc',
808         'quic/quic_time.h',
809         'quic/quic_utils.cc',
810         'quic/quic_utils.h',
811         'quic/reliable_quic_stream.cc',
812         'quic/reliable_quic_stream.h',
813         'quic/spdy_utils.cc',
814         'quic/spdy_utils.h',
815         'socket/buffered_write_stream_socket.cc',
816         'socket/buffered_write_stream_socket.h',
817         'socket/client_socket_factory.cc',
818         'socket/client_socket_factory.h',
819         'socket/client_socket_handle.cc',
820         'socket/client_socket_handle.h',
821         'socket/client_socket_pool.cc',
822         'socket/client_socket_pool.h',
823         'socket/client_socket_pool_base.cc',
824         'socket/client_socket_pool_base.h',
825         'socket/client_socket_pool_histograms.cc',
826         'socket/client_socket_pool_histograms.h',
827         'socket/client_socket_pool_manager.cc',
828         'socket/client_socket_pool_manager.h',
829         'socket/client_socket_pool_manager_impl.cc',
830         'socket/client_socket_pool_manager_impl.h',
831         'socket/next_proto.h',
832         'socket/nss_ssl_util.cc',
833         'socket/nss_ssl_util.h',
834         'socket/server_socket.h',
835         'socket/socket_net_log_params.cc',
836         'socket/socket_net_log_params.h',
837         'socket/socket.h',
838         'socket/socks5_client_socket.cc',
839         'socket/socks5_client_socket.h',
840         'socket/socks_client_socket.cc',
841         'socket/socks_client_socket.h',
842         'socket/socks_client_socket_pool.cc',
843         'socket/socks_client_socket_pool.h',
844         'socket/ssl_client_socket.cc',
845         'socket/ssl_client_socket.h',
846         'socket/ssl_client_socket_nss.cc',
847         'socket/ssl_client_socket_nss.h',
848         'socket/ssl_client_socket_openssl.cc',
849         'socket/ssl_client_socket_openssl.h',
850         'socket/ssl_client_socket_pool.cc',
851         'socket/ssl_client_socket_pool.h',
852         'socket/ssl_error_params.cc',
853         'socket/ssl_error_params.h',
854         'socket/ssl_server_socket.h',
855         'socket/ssl_server_socket_nss.cc',
856         'socket/ssl_server_socket_nss.h',
857         'socket/ssl_server_socket_openssl.cc',
858         'socket/ssl_socket.h',
859         'socket/stream_listen_socket.cc',
860         'socket/stream_listen_socket.h',
861         'socket/stream_socket.cc',
862         'socket/stream_socket.h',
863         'socket/tcp_client_socket.cc',
864         'socket/tcp_client_socket.h',
865         'socket/tcp_client_socket_libevent.cc',
866         'socket/tcp_client_socket_libevent.h',
867         'socket/tcp_client_socket_win.cc',
868         'socket/tcp_client_socket_win.h',
869         'socket/tcp_listen_socket.cc',
870         'socket/tcp_listen_socket.h',
871         'socket/tcp_server_socket.h',
872         'socket/tcp_server_socket_libevent.cc',
873         'socket/tcp_server_socket_libevent.h',
874         'socket/tcp_server_socket_win.cc',
875         'socket/tcp_server_socket_win.h',
876         'socket/transport_client_socket_pool.cc',
877         'socket/transport_client_socket_pool.h',
878         'socket/unix_domain_socket_posix.cc',
879         'socket/unix_domain_socket_posix.h',
880         'socket_stream/socket_stream.cc',
881         'socket_stream/socket_stream.h',
882         'socket_stream/socket_stream_job.cc',
883         'socket_stream/socket_stream_job.h',
884         'socket_stream/socket_stream_job_manager.cc',
885         'socket_stream/socket_stream_job_manager.h',
886         'socket_stream/socket_stream_metrics.cc',
887         'socket_stream/socket_stream_metrics.h',
888         'spdy/buffered_spdy_framer.cc',
889         'spdy/buffered_spdy_framer.h',
890         'spdy/spdy_bitmasks.h',
891         'spdy/spdy_buffer.cc',
892         'spdy/spdy_buffer.h',
893         'spdy/spdy_buffer_producer.cc',
894         'spdy/spdy_buffer_producer.h',
895         'spdy/spdy_credential_builder.cc',
896         'spdy/spdy_credential_builder.h',
897         'spdy/spdy_credential_state.cc',
898         'spdy/spdy_credential_state.h',
899         'spdy/spdy_frame_builder.cc',
900         'spdy/spdy_frame_builder.h',
901         'spdy/spdy_frame_reader.cc',
902         'spdy/spdy_frame_reader.h',
903         'spdy/spdy_framer.cc',
904         'spdy/spdy_framer.h',
905         'spdy/spdy_header_block.cc',
906         'spdy/spdy_header_block.h',
907         'spdy/spdy_http_stream.cc',
908         'spdy/spdy_http_stream.h',
909         'spdy/spdy_http_utils.cc',
910         'spdy/spdy_http_utils.h',
911         'spdy/spdy_priority_forest.h',
912         'spdy/spdy_protocol.cc',
913         'spdy/spdy_protocol.h',
914         'spdy/spdy_proxy_client_socket.cc',
915         'spdy/spdy_proxy_client_socket.h',
916         'spdy/spdy_read_queue.cc',
917         'spdy/spdy_read_queue.h',
918         'spdy/spdy_session.cc',
919         'spdy/spdy_session.h',
920         'spdy/spdy_session_pool.cc',
921         'spdy/spdy_session_pool.h',
922         'spdy/spdy_stream.cc',
923         'spdy/spdy_stream.h',
924         'spdy/spdy_websocket_stream.cc',
925         'spdy/spdy_websocket_stream.h',
926         'spdy/spdy_write_queue.cc',
927         'spdy/spdy_write_queue.h',
928         'ssl/client_cert_store.h',
929         'ssl/client_cert_store_impl.h',
930         'ssl/client_cert_store_impl_mac.cc',
931         'ssl/client_cert_store_impl_nss.cc',
932         'ssl/client_cert_store_impl_win.cc',
933         'ssl/default_server_bound_cert_store.cc',
934         'ssl/default_server_bound_cert_store.h',
935         'ssl/openssl_client_key_store.cc',
936         'ssl/openssl_client_key_store.h',
937         'ssl/server_bound_cert_service.cc',
938         'ssl/server_bound_cert_service.h',
939         'ssl/server_bound_cert_store.cc',
940         'ssl/server_bound_cert_store.h',
941         'ssl/ssl_cert_request_info.cc',
942         'ssl/ssl_cert_request_info.h',
943         'ssl/ssl_cipher_suite_names.cc',
944         'ssl/ssl_cipher_suite_names.h',
945         'ssl/ssl_client_auth_cache.cc',
946         'ssl/ssl_client_auth_cache.h',
947         'ssl/ssl_client_cert_type.h',
948         'ssl/ssl_config_service.cc',
949         'ssl/ssl_config_service.h',
950         'ssl/ssl_config_service_defaults.cc',
951         'ssl/ssl_config_service_defaults.h',
952         'ssl/ssl_info.cc',
953         'ssl/ssl_info.h',
954         'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
955         'third_party/mozilla_security_manager/nsKeygenHandler.h',
956         'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
957         'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
958         'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
959         'third_party/mozilla_security_manager/nsPKCS12Blob.h',
960         'udp/datagram_client_socket.h',
961         'udp/datagram_server_socket.h',
962         'udp/datagram_socket.h',
963         'udp/udp_client_socket.cc',
964         'udp/udp_client_socket.h',
965         'udp/udp_net_log_parameters.cc',
966         'udp/udp_net_log_parameters.h',
967         'udp/udp_server_socket.cc',
968         'udp/udp_server_socket.h',
969         'udp/udp_socket.h',
970         'udp/udp_socket_libevent.cc',
971         'udp/udp_socket_libevent.h',
972         'udp/udp_socket_win.cc',
973         'udp/udp_socket_win.h',
974         'url_request/data_protocol_handler.cc',
975         'url_request/data_protocol_handler.h',
976         'url_request/file_protocol_handler.cc',
977         'url_request/file_protocol_handler.h',
978         'url_request/fraudulent_certificate_reporter.h',
979         'url_request/ftp_protocol_handler.cc',
980         'url_request/ftp_protocol_handler.h',
981         'url_request/http_user_agent_settings.h',
982         'url_request/protocol_intercept_job_factory.cc',
983         'url_request/protocol_intercept_job_factory.h',
984         'url_request/static_http_user_agent_settings.cc',
985         'url_request/static_http_user_agent_settings.h',
986         'url_request/url_fetcher.cc',
987         'url_request/url_fetcher.h',
988         'url_request/url_fetcher_core.cc',
989         'url_request/url_fetcher_core.h',
990         'url_request/url_fetcher_delegate.cc',
991         'url_request/url_fetcher_delegate.h',
992         'url_request/url_fetcher_factory.h',
993         'url_request/url_fetcher_impl.cc',
994         'url_request/url_fetcher_impl.h',
995         'url_request/url_fetcher_response_writer.cc',
996         'url_request/url_fetcher_response_writer.h',
997         'url_request/url_request.cc',
998         'url_request/url_request.h',
999         'url_request/url_request_about_job.cc',
1000         'url_request/url_request_about_job.h',
1001         'url_request/url_request_context.cc',
1002         'url_request/url_request_context.h',
1003         'url_request/url_request_context_builder.cc',
1004         'url_request/url_request_context_builder.h',
1005         'url_request/url_request_context_getter.cc',
1006         'url_request/url_request_context_getter.h',
1007         'url_request/url_request_context_storage.cc',
1008         'url_request/url_request_context_storage.h',
1009         'url_request/url_request_data_job.cc',
1010         'url_request/url_request_data_job.h',
1011         'url_request/url_request_error_job.cc',
1012         'url_request/url_request_error_job.h',
1013         'url_request/url_request_file_dir_job.cc',
1014         'url_request/url_request_file_dir_job.h',
1015         'url_request/url_request_file_job.cc',
1016         'url_request/url_request_file_job.h',
1017         'url_request/url_request_filter.cc',
1018         'url_request/url_request_filter.h',
1019         'url_request/url_request_ftp_job.cc',
1020         'url_request/url_request_ftp_job.h',
1021         'url_request/url_request_http_job.cc',
1022         'url_request/url_request_http_job.h',
1023         'url_request/url_request_job.cc',
1024         'url_request/url_request_job.h',
1025         'url_request/url_request_job_factory.cc',
1026         'url_request/url_request_job_factory.h',
1027         'url_request/url_request_job_factory_impl.cc',
1028         'url_request/url_request_job_factory_impl.h',
1029         'url_request/url_request_job_manager.cc',
1030         'url_request/url_request_job_manager.h',
1031         'url_request/url_request_netlog_params.cc',
1032         'url_request/url_request_netlog_params.h',
1033         'url_request/url_request_redirect_job.cc',
1034         'url_request/url_request_redirect_job.h',
1035         'url_request/url_request_simple_job.cc',
1036         'url_request/url_request_simple_job.h',
1037         'url_request/url_request_status.h',
1038         'url_request/url_request_test_job.cc',
1039         'url_request/url_request_test_job.h',
1040         'url_request/url_request_throttler_entry.cc',
1041         'url_request/url_request_throttler_entry.h',
1042         'url_request/url_request_throttler_entry_interface.h',
1043         'url_request/url_request_throttler_header_adapter.cc',
1044         'url_request/url_request_throttler_header_adapter.h',
1045         'url_request/url_request_throttler_header_interface.h',
1046         'url_request/url_request_throttler_manager.cc',
1047         'url_request/url_request_throttler_manager.h',
1048         'url_request/view_cache_helper.cc',
1049         'url_request/view_cache_helper.h',
1050         'websockets/websocket_errors.cc',
1051         'websockets/websocket_errors.h',
1052         'websockets/websocket_frame.cc',
1053         'websockets/websocket_frame.h',
1054         'websockets/websocket_frame_parser.cc',
1055         'websockets/websocket_frame_parser.h',
1056         'websockets/websocket_handshake_handler.cc',
1057         'websockets/websocket_handshake_handler.h',
1058         'websockets/websocket_job.cc',
1059         'websockets/websocket_job.h',
1060         'websockets/websocket_net_log_params.cc',
1061         'websockets/websocket_net_log_params.h',
1062         'websockets/websocket_stream.h',
1063         'websockets/websocket_throttle.cc',
1064         'websockets/websocket_throttle.h',
1065       ],
1066       'defines': [
1067         'NET_IMPLEMENTATION',
1068       ],
1069       'export_dependent_settings': [
1070         '../base/base.gyp:base',
1071       ],
1072       'conditions': [
1073         ['chromeos==1', {
1074           'sources!': [
1075              'base/network_change_notifier_linux.cc',
1076              'base/network_change_notifier_linux.h',
1077              'base/network_change_notifier_netlink_linux.cc',
1078              'base/network_change_notifier_netlink_linux.h',
1079              'proxy/proxy_config_service_linux.cc',
1080              'proxy/proxy_config_service_linux.h',
1081           ],
1082         }],
1083         ['use_kerberos==1', {
1084           'defines': [
1085             'USE_KERBEROS',
1086           ],
1087           'conditions': [
1088             ['OS=="openbsd"', {
1089               'include_dirs': [
1090                 '/usr/include/kerberosV'
1091               ],
1092             }],
1093             ['linux_link_kerberos==1', {
1094               'link_settings': {
1095                 'ldflags': [
1096                   '<!@(krb5-config --libs gssapi)',
1097                 ],
1098               },
1099             }, { # linux_link_kerberos==0
1100               'defines': [
1101                 'DLOPEN_KERBEROS',
1102               ],
1103             }],
1104           ],
1105         }, { # use_kerberos == 0
1106           'sources!': [
1107             'http/http_auth_gssapi_posix.cc',
1108             'http/http_auth_gssapi_posix.h',
1109             'http/http_auth_handler_negotiate.h',
1110             'http/http_auth_handler_negotiate.cc',
1111           ],
1112         }],
1113         ['posix_avoid_mmap==1', {
1114           'defines': [
1115             'POSIX_AVOID_MMAP',
1116           ],
1117           'direct_dependent_settings': {
1118             'defines': [
1119               'POSIX_AVOID_MMAP',
1120             ],
1121           },
1122           'sources!': [
1123             'disk_cache/mapped_file_posix.cc',
1124           ],
1125         }, { # else
1126           'sources!': [
1127             'disk_cache/mapped_file_avoid_mmap_posix.cc',
1128           ],
1129         }],
1130         ['disable_ftp_support==1', {
1131           'sources/': [
1132             ['exclude', '^ftp/'],
1133           ],
1134           'sources!': [
1135             'url_request/ftp_protocol_handler.cc',
1136             'url_request/ftp_protocol_handler.h',
1137             'url_request/url_request_ftp_job.cc',
1138             'url_request/url_request_ftp_job.h',
1139           ],
1140         }],
1141         ['enable_built_in_dns==1', {
1142           'defines': [
1143             'ENABLE_BUILT_IN_DNS',
1144           ]
1145         }, { # else
1146           'sources!': [
1147             'dns/address_sorter_posix.cc',
1148             'dns/address_sorter_posix.h',
1149             'dns/dns_client.cc',
1150           ],
1151         }],
1152         ['use_tracing_cache_backend==1', {
1153           'defines': [
1154             'USE_TRACING_CACHE_BACKEND'
1155           ],
1156          }],
1157         ['use_openssl==1', {
1158             'sources!': [
1159               'base/crypto_module_nss.cc',
1160               'base/keygen_handler_nss.cc',
1161               'base/nss_memio.c',
1162               'base/nss_memio.h',
1163               'cert/cert_database_nss.cc',
1164               'cert/cert_verify_proc_nss.cc',
1165               'cert/cert_verify_proc_nss.h',
1166               'cert/nss_cert_database.cc',
1167               'cert/nss_cert_database.h',
1168               'cert/test_root_certs_nss.cc',
1169               'cert/x509_certificate_nss.cc',
1170               'cert/x509_util_nss.cc',
1171               'cert/x509_util_nss.h',
1172               'ocsp/nss_ocsp.cc',
1173               'ocsp/nss_ocsp.h',
1174               'quic/crypto/aes_128_gcm_decrypter_nss.cc',
1175               'quic/crypto/aes_128_gcm_encrypter_nss.cc',
1176               'quic/crypto/p256_key_exchange_nss.cc',
1177               'socket/nss_ssl_util.cc',
1178               'socket/nss_ssl_util.h',
1179               'socket/ssl_client_socket_nss.cc',
1180               'socket/ssl_client_socket_nss.h',
1181               'socket/ssl_server_socket_nss.cc',
1182               'socket/ssl_server_socket_nss.h',
1183               'ssl/client_cert_store_impl_nss.cc',
1184               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1185               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1186               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1187               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1188               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1189               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1190             ],
1191           },
1192           {  # else !use_openssl: remove the unneeded files
1193             'sources!': [
1194               'base/crypto_module_openssl.cc',
1195               'base/keygen_handler_openssl.cc',
1196               'base/openssl_private_key_store.h',
1197               'base/openssl_private_key_store_android.cc',
1198               'base/openssl_private_key_store_memory.cc',
1199               'cert/cert_database_openssl.cc',
1200               'cert/cert_verify_proc_openssl.cc',
1201               'cert/cert_verify_proc_openssl.h',
1202               'cert/test_root_certs_openssl.cc',
1203               'cert/x509_certificate_openssl.cc',
1204               'cert/x509_util_openssl.cc',
1205               'cert/x509_util_openssl.h',
1206               'quic/crypto/aes_128_gcm_decrypter_openssl.cc',
1207               'quic/crypto/aes_128_gcm_encrypter_openssl.cc',
1208               'quic/crypto/p256_key_exchange_openssl.cc',
1209               'quic/crypto/scoped_evp_cipher_ctx.h',
1210               'socket/ssl_client_socket_openssl.cc',
1211               'socket/ssl_client_socket_openssl.h',
1212               'socket/ssl_server_socket_openssl.cc',
1213               'ssl/openssl_client_key_store.cc',
1214               'ssl/openssl_client_key_store.h',
1215             ],
1216           },
1217         ],
1218         [ 'use_glib == 1', {
1219             'dependencies': [
1220               '../build/linux/system.gyp:gconf',
1221               '../build/linux/system.gyp:gio',
1222             ],
1223             'conditions': [
1224               ['use_openssl==1', {
1225                 'dependencies': [
1226                   '../third_party/openssl/openssl.gyp:openssl',
1227                 ],
1228               },
1229               {  # else use_openssl==0, use NSS
1230                 'dependencies': [
1231                   '../build/linux/system.gyp:ssl',
1232                 ],
1233               }],
1234               ['os_bsd==1', {
1235                 'sources!': [
1236                   'base/network_change_notifier_linux.cc',
1237                   'base/network_change_notifier_netlink_linux.cc',
1238                   'proxy/proxy_config_service_linux.cc',
1239                 ],
1240               },{
1241                 'dependencies': [
1242                   '../build/linux/system.gyp:libresolv',
1243                 ],
1244               }],
1245               ['OS=="solaris"', {
1246                 'link_settings': {
1247                   'ldflags': [
1248                     '-R/usr/lib/mps',
1249                   ],
1250                 },
1251               }],
1252             ],
1253           },
1254           {  # else: OS is not in the above list
1255             'sources!': [
1256               'base/crypto_module_nss.cc',
1257               'base/keygen_handler_nss.cc',
1258               'cert/cert_database_nss.cc',
1259               'cert/nss_cert_database.cc',
1260               'cert/nss_cert_database.h',
1261               'cert/test_root_certs_nss.cc',
1262               'cert/x509_certificate_nss.cc',
1263               'ocsp/nss_ocsp.cc',
1264               'ocsp/nss_ocsp.h',
1265               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1266               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1267               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1268               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1269               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1270               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1271             ],
1272           },
1273         ],
1274         [ 'toolkit_uses_gtk == 1', {
1275           'dependencies': [
1276             '../build/linux/system.gyp:gdk',
1277           ],
1278         }],
1279         [ 'use_nss != 1', {
1280             'sources!': [
1281               'cert/cert_verify_proc_nss.cc',
1282               'cert/cert_verify_proc_nss.h',
1283               'ssl/client_cert_store_impl_nss.cc',
1284             ],
1285         }],
1286         [ 'enable_websockets != 1', {
1287             'sources/': [
1288               ['exclude', '^socket_stream/'],
1289               ['exclude', '^websockets/'],
1290             ],
1291             'sources!': [
1292               'spdy/spdy_websocket_stream.cc',
1293               'spdy/spdy_websocket_stream.h',
1294             ],
1295         }],
1296         [ 'enable_mdns != 1', {
1297             'sources!' : [
1298               'dns/record_parsed.cc',
1299               'dns/record_parsed.h',
1300               'dns/record_rdata.cc',
1301               'dns/record_rdata.h',
1302             ]
1303         }],
1304         [ 'OS == "win"', {
1305             'sources!': [
1306               'http/http_auth_handler_ntlm_portable.cc',
1307               'socket/tcp_client_socket_libevent.cc',
1308               'socket/tcp_client_socket_libevent.h',
1309               'socket/tcp_server_socket_libevent.cc',
1310               'socket/tcp_server_socket_libevent.h',
1311               'ssl/client_cert_store_impl_nss.cc',
1312               'udp/udp_socket_libevent.cc',
1313               'udp/udp_socket_libevent.h',
1314             ],
1315             'dependencies': [
1316               '../third_party/nss/nss.gyp:nspr',
1317               '../third_party/nss/nss.gyp:nss',
1318               'third_party/nss/ssl.gyp:libssl',
1319             ],
1320             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1321             'msvs_disabled_warnings': [4267, ],
1322           }, { # else: OS != "win"
1323             'sources!': [
1324               'base/winsock_init.cc',
1325               'base/winsock_init.h',
1326               'base/winsock_util.cc',
1327               'base/winsock_util.h',
1328               'proxy/proxy_resolver_winhttp.cc',
1329               'proxy/proxy_resolver_winhttp.h',
1330             ],
1331           },
1332         ],
1333         [ 'OS == "mac"', {
1334             'sources!': [
1335               'ssl/client_cert_store_impl_nss.cc',
1336             ],
1337             'dependencies': [
1338               '../third_party/nss/nss.gyp:nspr',
1339               '../third_party/nss/nss.gyp:nss',
1340               'third_party/nss/ssl.gyp:libssl',
1341             ],
1342             'link_settings': {
1343               'libraries': [
1344                 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
1345                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1346                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1347                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1348               ]
1349             },
1350           },
1351         ],
1352         [ 'OS == "ios"', {
1353             'dependencies': [
1354               '../third_party/nss/nss.gyp:nss',
1355               'third_party/nss/ssl.gyp:libssl',
1356             ],
1357             'link_settings': {
1358               'libraries': [
1359                 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
1360                 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
1361                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1362                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1363                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1364               ],
1365             },
1366           },
1367         ],
1368         ['OS=="android" and _toolset=="target" and android_webview_build == 0', {
1369           'dependencies': [
1370              'net_java',
1371           ],
1372         }],
1373         [ 'OS == "android"', {
1374             'dependencies': [
1375               '../third_party/openssl/openssl.gyp:openssl',
1376               'net_jni_headers',
1377             ],
1378             'sources!': [
1379               'base/openssl_private_key_store_memory.cc',
1380               'cert/cert_database_openssl.cc',
1381               'cert/cert_verify_proc_openssl.cc',
1382               'cert/test_root_certs_openssl.cc',
1383             ],
1384             # The net/android/keystore_openssl.cc source file needs to
1385             # access an OpenSSL-internal header.
1386             'include_dirs': [
1387               '../third_party/openssl',
1388             ],
1389           }, {  # else OS != "android"
1390             'defines': [
1391               # These are the features Android doesn't support.
1392               'ENABLE_MEDIA_CODEC_THEORA',
1393             ],
1394           },
1395         ],
1396         [ 'OS == "linux"', {
1397             'dependencies': [
1398               '../build/linux/system.gyp:dbus',
1399               '../dbus/dbus.gyp:dbus',
1400             ],
1401           },
1402         ],
1403       ],
1404       'target_conditions': [
1405         # These source files are excluded by default platform rules, but they
1406         # are needed in specific cases on other platforms. Re-including them can
1407         # only be done in target_conditions as it is evaluated after the
1408         # platform rules.
1409         ['OS == "android"', {
1410           'sources/': [
1411             ['include', '^base/platform_mime_util_linux\\.cc$'],
1412           ],
1413         }],
1414         ['OS == "ios"', {
1415           'sources/': [
1416             ['include', '^base/network_change_notifier_mac\\.cc$'],
1417             ['include', '^base/network_config_watcher_mac\\.cc$'],
1418             ['include', '^base/platform_mime_util_mac\\.mm$'],
1419             # The iOS implementation only partially uses NSS and thus does not
1420             # defines |use_nss|. In particular the |USE_NSS| preprocessor
1421             # definition is not used. The following files are needed though:
1422             ['include', '^cert/cert_verify_proc_nss\\.cc$'],
1423             ['include', '^cert/cert_verify_proc_nss\\.h$'],
1424             ['include', '^cert/test_root_certs_nss\\.cc$'],
1425             ['include', '^cert/x509_util_nss\\.cc$'],
1426             ['include', '^cert/x509_util_nss\\.h$'],
1427             ['include', '^dns/notify_watcher_mac\\.cc$'],
1428             ['include', '^proxy/proxy_resolver_mac\\.cc$'],
1429             ['include', '^proxy/proxy_server_mac\\.cc$'],
1430             ['include', '^ocsp/nss_ocsp\\.cc$'],
1431             ['include', '^ocsp/nss_ocsp\\.h$'],
1432           ],
1433         }],
1434       ],
1435     },
1436     {
1437       'target_name': 'net_unittests',
1438       'type': '<(gtest_target_type)',
1439       'dependencies': [
1440         '../base/base.gyp:base',
1441         '../base/base.gyp:base_i18n',
1442         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1443         '../build/temp_gyp/googleurl.gyp:googleurl',
1444         '../crypto/crypto.gyp:crypto',
1445         '../testing/gmock.gyp:gmock',
1446         '../testing/gtest.gyp:gtest',
1447         '../third_party/zlib/zlib.gyp:zlib',
1448         'net',
1449         'net_test_support',
1450       ],
1451       'sources': [
1452         'android/keystore_unittest.cc',
1453         'android/network_change_notifier_android_unittest.cc',
1454         'base/address_list_unittest.cc',
1455         'base/address_tracker_linux_unittest.cc',
1456         'base/backoff_entry_unittest.cc',
1457         'base/big_endian_unittest.cc',
1458         'base/data_url_unittest.cc',
1459         'base/directory_lister_unittest.cc',
1460         'base/dns_util_unittest.cc',
1461         'base/escape_unittest.cc',
1462         'base/expiring_cache_unittest.cc',
1463         'base/file_stream_unittest.cc',
1464         'base/filter_unittest.cc',
1465         'base/int128_unittest.cc',
1466         'base/gzip_filter_unittest.cc',
1467         'base/host_mapping_rules_unittest.cc',
1468         'base/host_port_pair_unittest.cc',
1469         'base/ip_endpoint_unittest.cc',
1470         'base/keygen_handler_unittest.cc',
1471         'base/mime_sniffer_unittest.cc',
1472         'base/mime_util_unittest.cc',
1473         'base/mock_filter_context.cc',
1474         'base/mock_filter_context.h',
1475         'base/net_log_unittest.cc',
1476         'base/net_log_unittest.h',
1477         'base/net_util_unittest.cc',
1478         'base/network_change_notifier_win_unittest.cc',
1479         'base/prioritized_dispatcher_unittest.cc',
1480         'base/priority_queue_unittest.cc',
1481         'base/registry_controlled_domains/registry_controlled_domain_unittest.cc',
1482         'base/sdch_filter_unittest.cc',
1483         'base/static_cookie_policy_unittest.cc',
1484         'base/test_completion_callback_unittest.cc',
1485         'base/upload_bytes_element_reader_unittest.cc',
1486         'base/upload_data_stream_unittest.cc',
1487         'base/upload_file_element_reader_unittest.cc',
1488         'base/url_util_unittest.cc',
1489         'cert/cert_verify_proc_unittest.cc',
1490         'cert/crl_set_unittest.cc',
1491         'cert/ev_root_ca_metadata_unittest.cc',
1492         'cert/multi_threaded_cert_verifier_unittest.cc',
1493         'cert/nss_cert_database_unittest.cc',
1494         'cert/pem_tokenizer_unittest.cc',
1495         'cert/x509_certificate_unittest.cc',
1496         'cert/x509_cert_types_unittest.cc',
1497         'cert/x509_util_unittest.cc',
1498         'cert/x509_util_nss_unittest.cc',
1499         'cert/x509_util_openssl_unittest.cc',
1500         'cookies/canonical_cookie_unittest.cc',
1501         'cookies/cookie_constants_unittest.cc',
1502         'cookies/cookie_monster_unittest.cc',
1503         'cookies/cookie_store_unittest.h',
1504         'cookies/cookie_util_unittest.cc',
1505         'cookies/parsed_cookie_unittest.cc',
1506         'disk_cache/addr_unittest.cc',
1507         'disk_cache/backend_unittest.cc',
1508         'disk_cache/bitmap_unittest.cc',
1509         'disk_cache/block_files_unittest.cc',
1510         'disk_cache/cache_util_unittest.cc',
1511         'disk_cache/entry_unittest.cc',
1512         'disk_cache/mapped_file_unittest.cc',
1513         'disk_cache/simple/simple_index_file_unittest.cc',
1514         'disk_cache/simple/simple_index_unittest.cc',
1515         'disk_cache/simple/simple_util_unittest.cc',
1516         'disk_cache/storage_block_unittest.cc',
1517         'disk_cache/flash/log_store_entry_unittest.cc',
1518         'disk_cache/flash/log_store_unittest.cc',
1519         'disk_cache/flash/segment_unittest.cc',
1520         'disk_cache/flash/storage_unittest.cc',
1521         'dns/address_sorter_posix_unittest.cc',
1522         'dns/address_sorter_unittest.cc',
1523         'dns/dns_config_service_posix_unittest.cc',
1524         'dns/dns_config_service_unittest.cc',
1525         'dns/dns_config_service_win_unittest.cc',
1526         'dns/dns_hosts_unittest.cc',
1527         'dns/dns_query_unittest.cc',
1528         'dns/dns_response_unittest.cc',
1529         'dns/dns_session_unittest.cc',
1530         'dns/dns_transaction_unittest.cc',
1531         'dns/host_cache_unittest.cc',
1532         'dns/host_resolver_impl_unittest.cc',
1533         'dns/mapped_host_resolver_unittest.cc',
1534         'dns/serial_worker_unittest.cc',
1535         'dns/record_parsed_unittest.cc',
1536         'dns/record_rdata_unittest.cc',
1537         'dns/single_request_host_resolver_unittest.cc',
1538         'ftp/ftp_auth_cache_unittest.cc',
1539         'ftp/ftp_ctrl_response_buffer_unittest.cc',
1540         'ftp/ftp_directory_listing_parser_ls_unittest.cc',
1541         'ftp/ftp_directory_listing_parser_netware_unittest.cc',
1542         'ftp/ftp_directory_listing_parser_os2_unittest.cc',
1543         'ftp/ftp_directory_listing_parser_unittest.cc',
1544         'ftp/ftp_directory_listing_parser_unittest.h',
1545         'ftp/ftp_directory_listing_parser_vms_unittest.cc',
1546         'ftp/ftp_directory_listing_parser_windows_unittest.cc',
1547         'ftp/ftp_network_transaction_unittest.cc',
1548         'ftp/ftp_util_unittest.cc',
1549         'http/des_unittest.cc',
1550         'http/http_auth_cache_unittest.cc',
1551         'http/http_auth_controller_unittest.cc',
1552         'http/http_auth_filter_unittest.cc',
1553         'http/http_auth_gssapi_posix_unittest.cc',
1554         'http/http_auth_handler_basic_unittest.cc',
1555         'http/http_auth_handler_digest_unittest.cc',
1556         'http/http_auth_handler_factory_unittest.cc',
1557         'http/http_auth_handler_mock.cc',
1558         'http/http_auth_handler_mock.h',
1559         'http/http_auth_handler_negotiate_unittest.cc',
1560         'http/http_auth_handler_unittest.cc',
1561         'http/http_auth_sspi_win_unittest.cc',
1562         'http/http_auth_unittest.cc',
1563         'http/http_byte_range_unittest.cc',
1564         'http/http_cache_unittest.cc',
1565         'http/http_chunked_decoder_unittest.cc',
1566         'http/http_content_disposition_unittest.cc',
1567         'http/http_network_layer_unittest.cc',
1568         'http/http_network_transaction_spdy3_unittest.cc',
1569         'http/http_network_transaction_spdy2_unittest.cc',
1570         'http/http_network_transaction_ssl_unittest.cc',
1571         'http/http_pipelined_connection_impl_unittest.cc',
1572         'http/http_pipelined_host_forced_unittest.cc',
1573         'http/http_pipelined_host_impl_unittest.cc',
1574         'http/http_pipelined_host_pool_unittest.cc',
1575         'http/http_pipelined_host_test_util.cc',
1576         'http/http_pipelined_host_test_util.h',
1577         'http/http_pipelined_network_transaction_unittest.cc',
1578         'http/http_proxy_client_socket_pool_spdy2_unittest.cc',
1579         'http/http_proxy_client_socket_pool_spdy3_unittest.cc',
1580         'http/http_request_headers_unittest.cc',
1581         'http/http_response_body_drainer_unittest.cc',
1582         'http/http_response_headers_unittest.cc',
1583         'http/http_security_headers_unittest.cc',
1584         'http/http_server_properties_impl_unittest.cc',
1585         'http/http_stream_factory_impl_unittest.cc',
1586         'http/http_stream_parser_unittest.cc',
1587         'http/http_transaction_unittest.cc',
1588         'http/http_transaction_unittest.h',
1589         'http/http_util_unittest.cc',
1590         'http/http_vary_data_unittest.cc',
1591         'http/mock_allow_url_security_manager.cc',
1592         'http/mock_allow_url_security_manager.h',
1593         'http/mock_gssapi_library_posix.cc',
1594         'http/mock_gssapi_library_posix.h',
1595         'http/mock_http_cache.cc',
1596         'http/mock_http_cache.h',
1597         'http/mock_sspi_library_win.cc',
1598         'http/mock_sspi_library_win.h',
1599         'http/transport_security_state_unittest.cc',
1600         'http/url_security_manager_unittest.cc',
1601         'proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc',
1602         'proxy/dhcp_proxy_script_fetcher_factory_unittest.cc',
1603         'proxy/dhcp_proxy_script_fetcher_win_unittest.cc',
1604         'proxy/multi_threaded_proxy_resolver_unittest.cc',
1605         'proxy/network_delegate_error_observer_unittest.cc',
1606         'proxy/proxy_bypass_rules_unittest.cc',
1607         'proxy/proxy_config_service_android_unittest.cc',
1608         'proxy/proxy_config_service_linux_unittest.cc',
1609         'proxy/proxy_config_service_win_unittest.cc',
1610         'proxy/proxy_config_unittest.cc',
1611         'proxy/proxy_info_unittest.cc',
1612         'proxy/proxy_list_unittest.cc',
1613         'proxy/proxy_resolver_v8_tracing_unittest.cc',
1614         'proxy/proxy_resolver_v8_unittest.cc',
1615         'proxy/proxy_script_decider_unittest.cc',
1616         'proxy/proxy_script_fetcher_impl_unittest.cc',
1617         'proxy/proxy_server_unittest.cc',
1618         'proxy/proxy_service_unittest.cc',
1619         'quic/blocked_list_test.cc',
1620         'quic/congestion_control/available_channel_estimator_test.cc',
1621         'quic/congestion_control/channel_estimator_test.cc',
1622         'quic/congestion_control/cube_root_test.cc',
1623         'quic/congestion_control/cubic_test.cc',
1624         'quic/congestion_control/fix_rate_test.cc',
1625         'quic/congestion_control/hybrid_slow_start_test.cc',
1626         'quic/congestion_control/inter_arrival_bitrate_ramp_up_test.cc',
1627         'quic/congestion_control/inter_arrival_overuse_detector_test.cc',
1628         'quic/congestion_control/inter_arrival_probe_test.cc',
1629         'quic/congestion_control/inter_arrival_receiver_test.cc',
1630         'quic/congestion_control/inter_arrival_state_machine_test.cc',
1631         'quic/congestion_control/inter_arrival_sender_test.cc',
1632         'quic/congestion_control/leaky_bucket_test.cc',
1633         'quic/congestion_control/paced_sender_test.cc',
1634         'quic/congestion_control/quic_congestion_control_test.cc',
1635         'quic/congestion_control/quic_congestion_manager_test.cc',
1636         'quic/congestion_control/quic_max_sized_map_test.cc',
1637         'quic/congestion_control/tcp_cubic_sender_test.cc',
1638         'quic/congestion_control/tcp_receiver_test.cc',
1639         'quic/crypto/aes_128_gcm_decrypter_test.cc',
1640         'quic/crypto/aes_128_gcm_encrypter_test.cc',
1641         'quic/crypto/cert_compressor_test.cc',
1642         'quic/crypto/common_cert_set_test.cc',
1643         'quic/crypto/crypto_framer_test.cc',
1644         'quic/crypto/crypto_handshake_test.cc',
1645         'quic/crypto/curve25519_key_exchange_test.cc',
1646         'quic/crypto/null_decrypter_test.cc',
1647         'quic/crypto/null_encrypter_test.cc',
1648         'quic/crypto/p256_key_exchange_test.cc',
1649         'quic/crypto/proof_test.cc',
1650         'quic/crypto/quic_random_test.cc',
1651         'quic/crypto/strike_register_test.cc',
1652         'quic/test_tools/crypto_test_utils.cc',
1653         'quic/test_tools/crypto_test_utils.h',
1654         'quic/test_tools/mock_clock.cc',
1655         'quic/test_tools/mock_clock.h',
1656         'quic/test_tools/mock_crypto_client_stream.cc',
1657         'quic/test_tools/mock_crypto_client_stream.h',
1658         'quic/test_tools/mock_crypto_client_stream_factory.cc',
1659         'quic/test_tools/mock_crypto_client_stream_factory.h',
1660         'quic/test_tools/mock_random.cc',
1661         'quic/test_tools/mock_random.h',
1662         'quic/test_tools/quic_connection_peer.cc',
1663         'quic/test_tools/quic_connection_peer.h',
1664         'quic/test_tools/quic_framer_peer.cc',
1665         'quic/test_tools/quic_framer_peer.h',
1666         'quic/test_tools/quic_packet_creator_peer.cc',
1667         'quic/test_tools/quic_packet_creator_peer.h',
1668         'quic/test_tools/quic_session_peer.cc',
1669         'quic/test_tools/quic_session_peer.h',
1670         'quic/test_tools/quic_test_utils.cc',
1671         'quic/test_tools/quic_test_utils.h',
1672         'quic/test_tools/reliable_quic_stream_peer.cc',
1673         'quic/test_tools/reliable_quic_stream_peer.h',
1674         'quic/test_tools/simple_quic_framer.cc',
1675         'quic/test_tools/simple_quic_framer.h',
1676         'quic/test_tools/test_task_runner.cc',
1677         'quic/test_tools/test_task_runner.h',
1678         'quic/quic_bandwidth_test.cc',
1679         'quic/quic_client_session_test.cc',
1680         'quic/quic_clock_test.cc',
1681         'quic/quic_connection_helper_test.cc',
1682         'quic/quic_connection_test.cc',
1683         'quic/quic_crypto_client_stream_test.cc',
1684         'quic/quic_crypto_server_stream_test.cc',
1685         'quic/quic_crypto_stream_test.cc',
1686         'quic/quic_data_writer_test.cc',
1687         'quic/quic_fec_group_test.cc',
1688         'quic/quic_framer_test.cc',
1689         'quic/quic_http_stream_test.cc',
1690         'quic/quic_network_transaction_unittest.cc',
1691         'quic/quic_packet_creator_test.cc',
1692         'quic/quic_packet_entropy_manager_test.cc',
1693         'quic/quic_packet_generator_test.cc',
1694         'quic/quic_protocol_test.cc',
1695         'quic/quic_reliable_client_stream_test.cc',
1696         'quic/quic_session_test.cc',
1697         'quic/quic_spdy_compressor_test.cc',
1698         'quic/quic_spdy_decompressor_test.cc',
1699         'quic/quic_stream_factory_test.cc',
1700         'quic/quic_stream_sequencer_test.cc',
1701         'quic/quic_time_test.cc',
1702         'quic/quic_utils_test.cc',
1703         'quic/reliable_quic_stream_test.cc',
1704         'socket/buffered_write_stream_socket_unittest.cc',
1705         'socket/client_socket_pool_base_unittest.cc',
1706         'socket/deterministic_socket_data_unittest.cc',
1707         'socket/mock_client_socket_pool_manager.cc',
1708         'socket/mock_client_socket_pool_manager.h',
1709         'socket/socks5_client_socket_unittest.cc',
1710         'socket/socks_client_socket_pool_unittest.cc',
1711         'socket/socks_client_socket_unittest.cc',
1712         'socket/ssl_client_socket_openssl_unittest.cc',
1713         'socket/ssl_client_socket_pool_unittest.cc',
1714         'socket/ssl_client_socket_unittest.cc',
1715         'socket/ssl_server_socket_unittest.cc',
1716         'socket/tcp_client_socket_unittest.cc',
1717         'socket/tcp_listen_socket_unittest.cc',
1718         'socket/tcp_listen_socket_unittest.h',
1719         'socket/tcp_server_socket_unittest.cc',
1720         'socket/transport_client_socket_pool_unittest.cc',
1721         'socket/transport_client_socket_unittest.cc',
1722         'socket/unix_domain_socket_posix_unittest.cc',
1723         'socket_stream/socket_stream_metrics_unittest.cc',
1724         'socket_stream/socket_stream_unittest.cc',
1725         'spdy/buffered_spdy_framer_spdy3_unittest.cc',
1726         'spdy/buffered_spdy_framer_spdy2_unittest.cc',
1727         'spdy/spdy_credential_builder_unittest.cc',
1728         'spdy/spdy_buffer_unittest.cc',
1729         'spdy/spdy_credential_state_unittest.cc',
1730         'spdy/spdy_frame_builder_test.cc',
1731         'spdy/spdy_frame_reader_test.cc',
1732         'spdy/spdy_framer_test.cc',
1733         'spdy/spdy_header_block_unittest.cc',
1734         'spdy/spdy_http_stream_spdy3_unittest.cc',
1735         'spdy/spdy_http_stream_spdy2_unittest.cc',
1736         'spdy/spdy_http_utils_unittest.cc',
1737         'spdy/spdy_network_transaction_spdy3_unittest.cc',
1738         'spdy/spdy_network_transaction_spdy2_unittest.cc',
1739         'spdy/spdy_priority_forest_test.cc',
1740         'spdy/spdy_protocol_test.cc',
1741         'spdy/spdy_proxy_client_socket_spdy3_unittest.cc',
1742         'spdy/spdy_proxy_client_socket_spdy2_unittest.cc',
1743         'spdy/spdy_read_queue_unittest.cc',
1744         'spdy/spdy_session_spdy3_unittest.cc',
1745         'spdy/spdy_session_spdy2_unittest.cc',
1746         'spdy/spdy_session_test_util.cc',
1747         'spdy/spdy_session_test_util.h',
1748         'spdy/spdy_stream_spdy3_unittest.cc',
1749         'spdy/spdy_stream_spdy2_unittest.cc',
1750         'spdy/spdy_stream_test_util.cc',
1751         'spdy/spdy_stream_test_util.h',
1752         'spdy/spdy_test_util_common.cc',
1753         'spdy/spdy_test_util_common.h',
1754         'spdy/spdy_test_util_spdy3.cc',
1755         'spdy/spdy_test_util_spdy3.h',
1756         'spdy/spdy_test_util_spdy2.cc',
1757         'spdy/spdy_test_util_spdy2.h',
1758         'spdy/spdy_test_utils.cc',
1759         'spdy/spdy_test_utils.h',
1760         'spdy/spdy_websocket_stream_spdy2_unittest.cc',
1761         'spdy/spdy_websocket_stream_spdy3_unittest.cc',
1762         'spdy/spdy_websocket_test_util_spdy2.cc',
1763         'spdy/spdy_websocket_test_util_spdy2.h',
1764         'spdy/spdy_websocket_test_util_spdy3.cc',
1765         'spdy/spdy_websocket_test_util_spdy3.h',
1766         'spdy/spdy_write_queue_unittest.cc',
1767         'ssl/client_cert_store_impl_unittest.cc',
1768         'ssl/default_server_bound_cert_store_unittest.cc',
1769         'ssl/openssl_client_key_store_unittest.cc',
1770         'ssl/server_bound_cert_service_unittest.cc',
1771         'ssl/ssl_cipher_suite_names_unittest.cc',
1772         'ssl/ssl_client_auth_cache_unittest.cc',
1773         'ssl/ssl_config_service_unittest.cc',
1774         'test/embedded_test_server/embedded_test_server_unittest.cc',
1775         'test/embedded_test_server/http_request_unittest.cc',
1776         'test/embedded_test_server/http_response_unittest.cc',
1777         'test/python_utils_unittest.cc',
1778         'test/run_all_unittests.cc',
1779         'test/test_certificate_data.h',
1780         'tools/dump_cache/url_to_filename_encoder.cc',
1781         'tools/dump_cache/url_to_filename_encoder.h',
1782         'tools/dump_cache/url_to_filename_encoder_unittest.cc',
1783         'tools/dump_cache/url_utilities.h',
1784         'tools/dump_cache/url_utilities.cc',
1785         'tools/dump_cache/url_utilities_unittest.cc',
1786         'tools/tld_cleanup/tld_cleanup_util_unittest.cc',
1787         'udp/udp_socket_unittest.cc',
1788         'url_request/url_fetcher_impl_unittest.cc',
1789         'url_request/url_request_context_builder_unittest.cc',
1790         'url_request/url_request_filter_unittest.cc',
1791         'url_request/url_request_ftp_job_unittest.cc',
1792         'url_request/url_request_http_job_unittest.cc',
1793         'url_request/url_request_job_factory_impl_unittest.cc',
1794         'url_request/url_request_job_unittest.cc',
1795         'url_request/url_request_throttler_simulation_unittest.cc',
1796         'url_request/url_request_throttler_test_support.cc',
1797         'url_request/url_request_throttler_test_support.h',
1798         'url_request/url_request_throttler_unittest.cc',
1799         'url_request/url_request_unittest.cc',
1800         'url_request/view_cache_helper_unittest.cc',
1801         'websockets/websocket_errors_unittest.cc',
1802         'websockets/websocket_frame_parser_unittest.cc',
1803         'websockets/websocket_frame_unittest.cc',
1804         'websockets/websocket_handshake_handler_unittest.cc',
1805         'websockets/websocket_handshake_handler_spdy2_unittest.cc',
1806         'websockets/websocket_handshake_handler_spdy3_unittest.cc',
1807         'websockets/websocket_job_spdy2_unittest.cc',
1808         'websockets/websocket_job_spdy3_unittest.cc',
1809         'websockets/websocket_net_log_params_unittest.cc',
1810         'websockets/websocket_throttle_unittest.cc',
1811       ],
1812       'conditions': [
1813         ['chromeos==1', {
1814           'sources!': [
1815             'base/network_change_notifier_linux_unittest.cc',
1816             'proxy/proxy_config_service_linux_unittest.cc',
1817           ],
1818         }],
1819         [ 'OS == "android"', {
1820           'sources!': [
1821             # No res_ninit() et al on Android, so this doesn't make a lot of
1822             # sense.
1823             'dns/dns_config_service_posix_unittest.cc',
1824             'ssl/client_cert_store_impl_unittest.cc',
1825           ],
1826           'dependencies': [
1827             'net_javatests',
1828             'net_test_jni_headers',
1829           ],
1830         }],
1831         [ 'use_glib == 1', {
1832             'dependencies': [
1833               '../build/linux/system.gyp:ssl',
1834             ],
1835           }, {  # else use_glib == 0: !posix || mac
1836             'sources!': [
1837               'cert/nss_cert_database_unittest.cc',
1838             ],
1839           },
1840         ],
1841         [ 'toolkit_uses_gtk == 1', {
1842             'dependencies': [
1843               '../build/linux/system.gyp:gtk',
1844             ],
1845           },
1846         ],
1847         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
1848           'conditions': [
1849             ['linux_use_tcmalloc==1', {
1850               'dependencies': [
1851                 '../base/allocator/allocator.gyp:allocator',
1852               ],
1853             }],
1854           ],
1855         }],
1856         [ 'use_kerberos==1', {
1857           'defines': [
1858             'USE_KERBEROS',
1859           ],
1860         }, { # use_kerberos == 0
1861           'sources!': [
1862             'http/http_auth_gssapi_posix_unittest.cc',
1863             'http/http_auth_handler_negotiate_unittest.cc',
1864             'http/mock_gssapi_library_posix.cc',
1865             'http/mock_gssapi_library_posix.h',
1866           ],
1867         }],
1868         [ 'use_openssl==1', {
1869             # When building for OpenSSL, we need to exclude NSS specific tests.
1870             # TODO(bulach): Add equivalent tests when the underlying
1871             #               functionality is ported to OpenSSL.
1872             'sources!': [
1873               'cert/nss_cert_database_unittest.cc',
1874               'cert/x509_util_nss_unittest.cc',
1875               'ssl/client_cert_store_impl_unittest.cc',
1876             ],
1877           }, {  # else !use_openssl: remove the unneeded files
1878             'sources!': [
1879               'cert/x509_util_openssl_unittest.cc',
1880               'socket/ssl_client_socket_openssl_unittest.cc',
1881               'ssl/openssl_client_key_store_unittest.cc',
1882             ],
1883           },
1884         ],
1885         [ 'enable_websockets != 1', {
1886             'sources/': [
1887               ['exclude', '^socket_stream/'],
1888               ['exclude', '^websockets/'],
1889               ['exclude', '^spdy/spdy_websocket_stream_spdy._unittest\\.cc$'],
1890             ],
1891         }],
1892         [ 'disable_ftp_support==1', {
1893             'sources/': [
1894               ['exclude', '^ftp/'],
1895             ],
1896             'sources!': [
1897               'url_request/url_request_ftp_job_unittest.cc',
1898             ],
1899           },
1900         ],
1901         [ 'enable_built_in_dns!=1', {
1902             'sources!': [
1903               'dns/address_sorter_posix_unittest.cc',
1904               'dns/address_sorter_unittest.cc',
1905             ],
1906           },
1907         ],
1908         [ 'use_v8_in_net==1', {
1909             'dependencies': [
1910               'net_with_v8',
1911             ],
1912           }, {  # else: !use_v8_in_net
1913             'sources!': [
1914               'proxy/proxy_resolver_v8_unittest.cc',
1915               'proxy/proxy_resolver_v8_tracing_unittest.cc',
1916             ],
1917           },
1918         ],
1920         [ 'enable_mdns != 1', {
1921             'sources!' : [
1922               'dns/record_parsed_unittest.cc',
1923               'dns/record_rdata_unittest.cc',
1924             ],
1925         }],
1926         [ 'OS == "win"', {
1927             'sources!': [
1928               'dns/dns_config_service_posix_unittest.cc',
1929               'http/http_auth_gssapi_posix_unittest.cc',
1930             ],
1931             # This is needed to trigger the dll copy step on windows.
1932             # TODO(mark): Specifying this here shouldn't be necessary.
1933             'dependencies': [
1934               '../third_party/icu/icu.gyp:icudata',
1935               '../third_party/nss/nss.gyp:nspr',
1936               '../third_party/nss/nss.gyp:nss',
1937               'third_party/nss/ssl.gyp:libssl',
1938             ],
1939             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1940             'msvs_disabled_warnings': [4267, ],
1941           },
1942         ],
1943         [ 'OS == "mac"', {
1944             'dependencies': [
1945               '../third_party/nss/nss.gyp:nspr',
1946               '../third_party/nss/nss.gyp:nss',
1947               'third_party/nss/ssl.gyp:libssl',
1948             ],
1949           },
1950         ],
1951         [ 'OS == "ios"', {
1952             'dependencies': [
1953               '../third_party/nss/nss.gyp:nss',
1954             ],
1955             'actions': [
1956               {
1957                 'action_name': 'copy_test_data',
1958                 'variables': {
1959                   'test_data_files': [
1960                     'data/ssl/certificates/',
1961                     'data/url_request_unittest/',
1962                   ],
1963                   'test_data_prefix': 'net',
1964                 },
1965                 'includes': [ '../build/copy_test_data_ios.gypi' ],
1966               },
1967             ],
1968             'sources!': [
1969               # TODO(droger): The following tests are disabled because the
1970               # implementation is missing or incomplete.
1971               # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1972               'base/keygen_handler_unittest.cc',
1973               # Need to read input data files.
1974               'base/gzip_filter_unittest.cc',
1975               'disk_cache/backend_unittest.cc',
1976               'disk_cache/block_files_unittest.cc',
1977               'socket/ssl_server_socket_unittest.cc',
1978               # Need TestServer.
1979               'proxy/proxy_script_fetcher_impl_unittest.cc',
1980               'socket/ssl_client_socket_unittest.cc',
1981               'ssl/client_cert_store_impl_unittest.cc',
1982               'url_request/url_fetcher_impl_unittest.cc',
1983               'url_request/url_request_context_builder_unittest.cc',
1984               # Needs GetAppOutput().
1985               'test/python_utils_unittest.cc',
1987               # The following tests are disabled because they don't apply to
1988               # iOS.
1989               # OS is not "linux" or "freebsd" or "openbsd".
1990               'socket/unix_domain_socket_posix_unittest.cc',
1991             ],
1992             'conditions': [
1993               ['coverage != 0', {
1994                 'sources!': [
1995                   # These sources can't be built with coverage due to a
1996                   # toolchain bug: http://openradar.appspot.com/radar?id=1499403
1997                   'http/transport_security_state_unittest.cc',
1999                   # These tests crash when run with coverage turned on due to an
2000                   # issue with llvm_gcda_increment_indirect_counter:
2001                   # http://crbug.com/156058
2002                   'cookies/cookie_monster_unittest.cc',
2003                   'cookies/cookie_store_unittest.h',
2004                   'http/http_auth_controller_unittest.cc',
2005                   'http/http_network_layer_unittest.cc',
2006                   'http/http_network_transaction_spdy2_unittest.cc',
2007                   'http/http_network_transaction_spdy3_unittest.cc',
2008                   'spdy/spdy_http_stream_spdy2_unittest.cc',
2009                   'spdy/spdy_http_stream_spdy3_unittest.cc',
2010                   'spdy/spdy_proxy_client_socket_spdy3_unittest.cc',
2011                   'spdy/spdy_session_spdy3_unittest.cc',
2013                   # These tests crash when run with coverage turned on:
2014                   # http://crbug.com/177203
2015                   'proxy/proxy_service_unittest.cc',
2016                 ],
2017               }],
2018             ],
2019         }],
2020         [ 'OS == "linux"', {
2021             'dependencies': [
2022               '../build/linux/system.gyp:dbus',
2023               '../dbus/dbus.gyp:dbus_test_support',
2024             ],
2025           },
2026         ],
2027         [ 'OS == "android"', {
2028             'dependencies': [
2029               '../third_party/openssl/openssl.gyp:openssl',
2030             ],
2031             'sources!': [
2032               'dns/dns_config_service_posix_unittest.cc',
2033             ],
2034           },
2035         ],
2036         ['OS == "android" and gtest_target_type == "shared_library"', {
2037           'dependencies': [
2038             '../testing/android/native_test.gyp:native_test_native_code',
2039           ]
2040         }],
2041         [ 'OS != "win" and OS != "mac"', {
2042           'sources!': [
2043             'cert/x509_cert_types_unittest.cc',
2044           ],
2045         }],
2046       ],
2047     },
2048     {
2049       'target_name': 'net_perftests',
2050       'type': 'executable',
2051       'dependencies': [
2052         '../base/base.gyp:base',
2053         '../base/base.gyp:base_i18n',
2054         '../base/base.gyp:test_support_perf',
2055         '../build/temp_gyp/googleurl.gyp:googleurl',
2056         '../testing/gtest.gyp:gtest',
2057         'net',
2058         'net_test_support',
2059       ],
2060       'sources': [
2061         'cookies/cookie_monster_perftest.cc',
2062         'disk_cache/disk_cache_perftest.cc',
2063         'proxy/proxy_resolver_perftest.cc',
2064       ],
2065       'conditions': [
2066         [ 'use_v8_in_net==1', {
2067             'dependencies': [
2068               'net_with_v8',
2069             ],
2070           }, {  # else: !use_v8_in_net
2071             'sources!': [
2072               'proxy/proxy_resolver_perftest.cc',
2073             ],
2074           },
2075         ],
2076         # This is needed to trigger the dll copy step on windows.
2077         # TODO(mark): Specifying this here shouldn't be necessary.
2078         [ 'OS == "win"', {
2079             'dependencies': [
2080               '../third_party/icu/icu.gyp:icudata',
2081             ],
2082             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2083             'msvs_disabled_warnings': [4267, ],
2084           },
2085         ],
2086       ],
2087     },
2088     {
2089       'target_name': 'net_test_support',
2090       'type': 'static_library',
2091       'dependencies': [
2092         '../base/base.gyp:base',
2093         '../base/base.gyp:test_support_base',
2094         '../build/temp_gyp/googleurl.gyp:googleurl',
2095         '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
2096         '../testing/gtest.gyp:gtest',
2097         'net',
2098       ],
2099       'export_dependent_settings': [
2100         '../base/base.gyp:base',
2101         '../base/base.gyp:test_support_base',
2102         '../testing/gtest.gyp:gtest',
2103       ],
2104       'sources': [
2105         'base/capturing_net_log.cc',
2106         'base/capturing_net_log.h',
2107         'base/load_timing_info_test_util.cc',
2108         'base/load_timing_info_test_util.h',
2109         'base/mock_file_stream.cc',
2110         'base/mock_file_stream.h',
2111         'base/test_completion_callback.cc',
2112         'base/test_completion_callback.h',
2113         'base/test_data_directory.cc',
2114         'base/test_data_directory.h',
2115         'cert/mock_cert_verifier.cc',
2116         'cert/mock_cert_verifier.h',
2117         'cookies/cookie_monster_store_test.cc',
2118         'cookies/cookie_monster_store_test.h',
2119         'cookies/cookie_store_test_callbacks.cc',
2120         'cookies/cookie_store_test_callbacks.h',
2121         'cookies/cookie_store_test_helpers.cc',
2122         'cookies/cookie_store_test_helpers.h',
2123         'disk_cache/disk_cache_test_base.cc',
2124         'disk_cache/disk_cache_test_base.h',
2125         'disk_cache/disk_cache_test_util.cc',
2126         'disk_cache/disk_cache_test_util.h',
2127         'disk_cache/flash/flash_cache_test_base.h',
2128         'disk_cache/flash/flash_cache_test_base.cc',
2129         'dns/dns_test_util.cc',
2130         'dns/dns_test_util.h',
2131         'dns/mock_host_resolver.cc',
2132         'dns/mock_host_resolver.h',
2133         'proxy/mock_proxy_resolver.cc',
2134         'proxy/mock_proxy_resolver.h',
2135         'proxy/mock_proxy_script_fetcher.cc',
2136         'proxy/mock_proxy_script_fetcher.h',
2137         'proxy/proxy_config_service_common_unittest.cc',
2138         'proxy/proxy_config_service_common_unittest.h',
2139         'socket/socket_test_util.cc',
2140         'socket/socket_test_util.h',
2141         'test/cert_test_util.cc',
2142         'test/cert_test_util.h',
2143         'test/embedded_test_server/embedded_test_server.cc',
2144         'test/embedded_test_server/embedded_test_server.h',
2145         'test/embedded_test_server/http_connection.cc',
2146         'test/embedded_test_server/http_connection.h',
2147         'test/embedded_test_server/http_request.cc',
2148         'test/embedded_test_server/http_request.h',
2149         'test/embedded_test_server/http_response.cc',
2150         'test/embedded_test_server/http_response.h',
2151         'test/net_test_suite.cc',
2152         'test/net_test_suite.h',
2153         'test/python_utils.cc',
2154         'test/python_utils.h',
2155         'test/spawned_test_server/base_test_server.cc',
2156         'test/spawned_test_server/base_test_server.h',
2157         'test/spawned_test_server/local_test_server_posix.cc',
2158         'test/spawned_test_server/local_test_server_win.cc',
2159         'test/spawned_test_server/local_test_server.cc',
2160         'test/spawned_test_server/local_test_server.h',
2161         'test/spawned_test_server/remote_test_server.cc',
2162         'test/spawned_test_server/remote_test_server.h',
2163         'test/spawned_test_server/spawned_test_server.h',
2164         'test/spawned_test_server/spawner_communicator.cc',
2165         'test/spawned_test_server/spawner_communicator.h',
2166         'url_request/test_url_fetcher_factory.cc',
2167         'url_request/test_url_fetcher_factory.h',
2168         'url_request/url_request_test_util.cc',
2169         'url_request/url_request_test_util.h',
2170       ],
2171       'conditions': [
2172         ['OS != "ios"', {
2173           'dependencies': [
2174             '../third_party/protobuf/protobuf.gyp:py_proto',
2175           ],
2176         }],
2177         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
2178           'conditions': [
2179             ['use_openssl==1', {
2180               'dependencies': [
2181                 '../third_party/openssl/openssl.gyp:openssl',
2182               ],
2183             }, {
2184               'dependencies': [
2185                 '../build/linux/system.gyp:ssl',
2186               ],
2187             }],
2188           ],
2189         }],
2190         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
2191           'conditions': [
2192             ['linux_use_tcmalloc==1', {
2193               'dependencies': [
2194                 '../base/allocator/allocator.gyp:allocator',
2195               ],
2196             }],
2197           ],
2198         }],
2199         ['OS != "android"', {
2200           'sources!': [
2201             'test/spawned_test_server/remote_test_server.cc',
2202             'test/spawned_test_server/remote_test_server.h',
2203             'test/spawned_test_server/spawner_communicator.cc',
2204             'test/spawned_test_server/spawner_communicator.h',
2205           ],
2206         }],
2207         ['OS == "ios"', {
2208           'dependencies': [
2209             '../third_party/nss/nss.gyp:nss',
2210           ],
2211         }],
2212         [ 'use_v8_in_net==1', {
2213             'dependencies': [
2214               'net_with_v8',
2215             ],
2216           },
2217         ],
2218       ],
2219       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2220       'msvs_disabled_warnings': [4267, ],
2221     },
2222     {
2223       'target_name': 'net_resources',
2224       'type': 'none',
2225       'variables': {
2226         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
2227       },
2228       'actions': [
2229         {
2230           'action_name': 'net_resources',
2231           'variables': {
2232             'grit_grd_file': 'base/net_resources.grd',
2233           },
2234           'includes': [ '../build/grit_action.gypi' ],
2235         },
2236       ],
2237       'includes': [ '../build/grit_target.gypi' ],
2238     },
2239     {
2240       'target_name': 'http_server',
2241       'type': 'static_library',
2242       'variables': { 'enable_wexit_time_destructors': 1, },
2243       'dependencies': [
2244         '../base/base.gyp:base',
2245         'net',
2246       ],
2247       'sources': [
2248         'server/http_connection.cc',
2249         'server/http_connection.h',
2250         'server/http_server.cc',
2251         'server/http_server.h',
2252         'server/http_server_request_info.cc',
2253         'server/http_server_request_info.h',
2254         'server/web_socket.cc',
2255         'server/web_socket.h',
2256       ],
2257       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2258       'msvs_disabled_warnings': [4267, ],
2259     },
2260     {
2261       'target_name': 'dump_cache',
2262       'type': 'executable',
2263       'dependencies': [
2264         '../base/base.gyp:base',
2265         'net',
2266         'net_test_support',
2267       ],
2268       'sources': [
2269         'tools/dump_cache/cache_dumper.cc',
2270         'tools/dump_cache/cache_dumper.h',
2271         'tools/dump_cache/dump_cache.cc',
2272         'tools/dump_cache/dump_files.cc',
2273         'tools/dump_cache/dump_files.h',
2274         'tools/dump_cache/simple_cache_dumper.cc',
2275         'tools/dump_cache/simple_cache_dumper.h',
2276         'tools/dump_cache/upgrade_win.cc',
2277         'tools/dump_cache/upgrade_win.h',
2278         'tools/dump_cache/url_to_filename_encoder.cc',
2279         'tools/dump_cache/url_to_filename_encoder.h',
2280         'tools/dump_cache/url_utilities.h',
2281         'tools/dump_cache/url_utilities.cc',
2282       ],
2283       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2284       'msvs_disabled_warnings': [4267, ],
2285     },
2286   ],
2287   'conditions': [
2288     ['use_v8_in_net == 1', {
2289       'targets': [
2290         {
2291           'target_name': 'net_with_v8',
2292           'type': '<(component)',
2293           'variables': { 'enable_wexit_time_destructors': 1, },
2294           'dependencies': [
2295             '../base/base.gyp:base',
2296             '../build/temp_gyp/googleurl.gyp:googleurl',
2297             '../v8/tools/gyp/v8.gyp:v8',
2298             'net'
2299           ],
2300           'defines': [
2301             'NET_IMPLEMENTATION',
2302           ],
2303           'sources': [
2304             'proxy/proxy_resolver_v8.cc',
2305             'proxy/proxy_resolver_v8.h',
2306             'proxy/proxy_resolver_v8_tracing.cc',
2307             'proxy/proxy_resolver_v8_tracing.h',
2308             'proxy/proxy_service_v8.cc',
2309             'proxy/proxy_service_v8.h',
2310           ],
2311           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2312           'msvs_disabled_warnings': [4267, ],
2313         },
2314       ],
2315     }],
2316     ['OS != "ios"', {
2317       'targets': [
2318         # iOS doesn't have the concept of simple executables, these targets
2319         # can't be compiled on the platform.
2320         {
2321           'target_name': 'crash_cache',
2322           'type': 'executable',
2323           'dependencies': [
2324             '../base/base.gyp:base',
2325             'net',
2326             'net_test_support',
2327           ],
2328           'sources': [
2329             'tools/crash_cache/crash_cache.cc',
2330           ],
2331           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2332           'msvs_disabled_warnings': [4267, ],
2333         },
2334         {
2335           'target_name': 'crl_set_dump',
2336           'type': 'executable',
2337           'dependencies': [
2338             '../base/base.gyp:base',
2339             'net',
2340           ],
2341           'sources': [
2342             'tools/crl_set_dump/crl_set_dump.cc',
2343           ],
2344           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2345           'msvs_disabled_warnings': [4267, ],
2346         },
2347         {
2348           'target_name': 'dns_fuzz_stub',
2349           'type': 'executable',
2350           'dependencies': [
2351             '../base/base.gyp:base',
2352             'net',
2353           ],
2354           'sources': [
2355             'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
2356           ],
2357           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2358           'msvs_disabled_warnings': [4267, ],
2359         },
2360         {
2361           'target_name': 'fetch_client',
2362           'type': 'executable',
2363           'variables': { 'enable_wexit_time_destructors': 1, },
2364           'dependencies': [
2365             '../base/base.gyp:base',
2366             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
2367             '../build/temp_gyp/googleurl.gyp:googleurl',
2368             '../testing/gtest.gyp:gtest',
2369             'net',
2370             'net_with_v8',
2371           ],
2372           'sources': [
2373             'tools/fetch/fetch_client.cc',
2374           ],
2375           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2376           'msvs_disabled_warnings': [4267, ],
2377         },
2378         {
2379           'target_name': 'fetch_server',
2380           'type': 'executable',
2381           'variables': { 'enable_wexit_time_destructors': 1, },
2382           'dependencies': [
2383             '../base/base.gyp:base',
2384             '../build/temp_gyp/googleurl.gyp:googleurl',
2385             'net',
2386           ],
2387           'sources': [
2388             'tools/fetch/fetch_server.cc',
2389             'tools/fetch/http_listen_socket.cc',
2390             'tools/fetch/http_listen_socket.h',
2391             'tools/fetch/http_server.cc',
2392             'tools/fetch/http_server.h',
2393             'tools/fetch/http_server_request_info.cc',
2394             'tools/fetch/http_server_request_info.h',
2395             'tools/fetch/http_server_response_info.cc',
2396             'tools/fetch/http_server_response_info.h',
2397             'tools/fetch/http_session.cc',
2398             'tools/fetch/http_session.h',
2399           ],
2400           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2401           'msvs_disabled_warnings': [4267, ],
2402         },
2403         {
2404           'target_name': 'gdig',
2405           'type': 'executable',
2406           'dependencies': [
2407             '../base/base.gyp:base',
2408             'net',
2409           ],
2410           'sources': [
2411             'tools/gdig/file_net_log.cc',
2412             'tools/gdig/gdig.cc',
2413           ],
2414         },
2415         {
2416           'target_name': 'get_server_time',
2417           'type': 'executable',
2418           'dependencies': [
2419             '../base/base.gyp:base',
2420             '../base/base.gyp:base_i18n',
2421             '../build/temp_gyp/googleurl.gyp:googleurl',
2422             'net',
2423           ],
2424           'sources': [
2425             'tools/get_server_time/get_server_time.cc',
2426           ],
2427           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2428           'msvs_disabled_warnings': [4267, ],
2429         },
2430         {
2431           'target_name': 'net_watcher',
2432           'type': 'executable',
2433           'dependencies': [
2434             '../base/base.gyp:base',
2435             'net',
2436             'net_with_v8',
2437           ],
2438           'conditions': [
2439             [ 'use_glib == 1', {
2440                 'dependencies': [
2441                   '../build/linux/system.gyp:gconf',
2442                   '../build/linux/system.gyp:gio',
2443                 ],
2444               },
2445             ],
2446           ],
2447           'sources': [
2448             'tools/net_watcher/net_watcher.cc',
2449           ],
2450         },
2451         {
2452           'target_name': 'run_testserver',
2453           'type': 'executable',
2454           'dependencies': [
2455             '../base/base.gyp:base',
2456             '../base/base.gyp:test_support_base',
2457             '../testing/gtest.gyp:gtest',
2458             'net_test_support',
2459           ],
2460           'sources': [
2461             'tools/testserver/run_testserver.cc',
2462           ],
2463         },
2464         {
2465           'target_name': 'stress_cache',
2466           'type': 'executable',
2467           'dependencies': [
2468             '../base/base.gyp:base',
2469             'net',
2470             'net_test_support',
2471           ],
2472           'sources': [
2473             'disk_cache/stress_cache.cc',
2474           ],
2475           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2476           'msvs_disabled_warnings': [4267, ],
2477         },
2478         {
2479           'target_name': 'tld_cleanup',
2480           'type': 'executable',
2481           'dependencies': [
2482             '../base/base.gyp:base',
2483             '../base/base.gyp:base_i18n',
2484             '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
2485           ],
2486           'sources': [
2487             'tools/tld_cleanup/tld_cleanup.cc',
2488           ],
2489           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2490           'msvs_disabled_warnings': [4267, ],
2491         },
2492       ],
2493     }],
2494     ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
2495       'targets': [
2496         {
2497           'target_name': 'flip_balsa_and_epoll_library',
2498           'type': 'static_library',
2499           'dependencies': [
2500             '../base/base.gyp:base',
2501             'net',
2502           ],
2503           'sources': [
2504             'tools/flip_server/balsa_enums.h',
2505             'tools/flip_server/balsa_frame.cc',
2506             'tools/flip_server/balsa_frame.h',
2507             'tools/flip_server/balsa_headers.cc',
2508             'tools/flip_server/balsa_headers.h',
2509             'tools/flip_server/balsa_headers_token_utils.cc',
2510             'tools/flip_server/balsa_headers_token_utils.h',
2511             'tools/flip_server/balsa_visitor_interface.h',
2512             'tools/flip_server/constants.h',
2513             'tools/flip_server/epoll_server.cc',
2514             'tools/flip_server/epoll_server.h',
2515             'tools/flip_server/http_message_constants.cc',
2516             'tools/flip_server/http_message_constants.h',
2517             'tools/flip_server/split.h',
2518             'tools/flip_server/split.cc',
2519           ],
2520         },
2521         {
2522           'target_name': 'flip_in_mem_edsm_server',
2523           'type': 'executable',
2524           'cflags': [
2525             '-Wno-deprecated',
2526           ],
2527           'dependencies': [
2528             '../base/base.gyp:base',
2529             '../third_party/openssl/openssl.gyp:openssl',
2530             'flip_balsa_and_epoll_library',
2531             'net',
2532           ],
2533           'sources': [
2534             'tools/dump_cache/url_to_filename_encoder.cc',
2535             'tools/dump_cache/url_to_filename_encoder.h',
2536             'tools/dump_cache/url_utilities.h',
2537             'tools/dump_cache/url_utilities.cc',
2538             'tools/flip_server/acceptor_thread.h',
2539             'tools/flip_server/acceptor_thread.cc',
2540             'tools/flip_server/buffer_interface.h',
2541             'tools/flip_server/create_listener.cc',
2542             'tools/flip_server/create_listener.h',
2543             'tools/flip_server/flip_config.cc',
2544             'tools/flip_server/flip_config.h',
2545             'tools/flip_server/flip_in_mem_edsm_server.cc',
2546             'tools/flip_server/http_interface.cc',
2547             'tools/flip_server/http_interface.h',
2548             'tools/flip_server/loadtime_measurement.h',
2549             'tools/flip_server/mem_cache.h',
2550             'tools/flip_server/mem_cache.cc',
2551             'tools/flip_server/output_ordering.cc',
2552             'tools/flip_server/output_ordering.h',
2553             'tools/flip_server/ring_buffer.cc',
2554             'tools/flip_server/ring_buffer.h',
2555             'tools/flip_server/simple_buffer.cc',
2556             'tools/flip_server/simple_buffer.h',
2557             'tools/flip_server/sm_connection.cc',
2558             'tools/flip_server/sm_connection.h',
2559             'tools/flip_server/sm_interface.h',
2560             'tools/flip_server/spdy_ssl.cc',
2561             'tools/flip_server/spdy_ssl.h',
2562             'tools/flip_server/spdy_interface.cc',
2563             'tools/flip_server/spdy_interface.h',
2564             'tools/flip_server/spdy_util.cc',
2565             'tools/flip_server/spdy_util.h',
2566             'tools/flip_server/streamer_interface.cc',
2567             'tools/flip_server/streamer_interface.h',
2568             'tools/flip_server/string_piece_utils.h',
2569           ],
2570         },
2571         {
2572           'target_name': 'quic_library',
2573           'type': 'static_library',
2574           'dependencies': [
2575             '../base/base.gyp:base',
2576             '../crypto/crypto.gyp:crypto',
2577             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
2578             '../build/temp_gyp/googleurl.gyp:googleurl',
2579             '../third_party/openssl/openssl.gyp:openssl',
2580             'flip_balsa_and_epoll_library',
2581             'net',
2582           ],
2583           'sources': [
2584             'tools/quic/quic_client.cc',
2585             'tools/quic/quic_client.h',
2586             'tools/quic/quic_client_session.cc',
2587             'tools/quic/quic_client_session.h',
2588             'tools/quic/quic_dispatcher.h',
2589             'tools/quic/quic_dispatcher.cc',
2590             'tools/quic/quic_epoll_clock.cc',
2591             'tools/quic/quic_epoll_clock.h',
2592             'tools/quic/quic_epoll_connection_helper.cc',
2593             'tools/quic/quic_epoll_connection_helper.h',
2594             'tools/quic/quic_in_memory_cache.cc',
2595             'tools/quic/quic_in_memory_cache.h',
2596             'tools/quic/quic_packet_writer.h',
2597             'tools/quic/quic_reliable_client_stream.cc',
2598             'tools/quic/quic_reliable_client_stream.h',
2599             'tools/quic/quic_reliable_server_stream.cc',
2600             'tools/quic/quic_reliable_server_stream.h',
2601             'tools/quic/quic_server.cc',
2602             'tools/quic/quic_server.h',
2603             'tools/quic/quic_server_session.cc',
2604             'tools/quic/quic_server_session.h',
2605             'tools/quic/quic_socket_utils.cc',
2606             'tools/quic/quic_socket_utils.h',
2607             'tools/quic/quic_spdy_client_stream.cc',
2608             'tools/quic/quic_spdy_client_stream.h',
2609             'tools/quic/quic_spdy_server_stream.cc',
2610             'tools/quic/quic_spdy_server_stream.h',
2611             'tools/quic/quic_time_wait_list_manager.h',
2612             'tools/quic/quic_time_wait_list_manager.cc',
2613             'tools/quic/spdy_utils.cc',
2614             'tools/quic/spdy_utils.h',
2615           ],
2616         },
2617         {
2618           'target_name': 'quic_client',
2619           'type': 'executable',
2620           'dependencies': [
2621             '../base/base.gyp:base',
2622             '../third_party/openssl/openssl.gyp:openssl',
2623             'net',
2624             'quic_library',
2625           ],
2626           'sources': [
2627             'tools/quic/quic_client_bin.cc',
2628           ],
2629         },
2630         {
2631           'target_name': 'quic_server',
2632           'type': 'executable',
2633           'dependencies': [
2634             '../base/base.gyp:base',
2635             '../third_party/openssl/openssl.gyp:openssl',
2636             'net',
2637             'quic_library',
2638           ],
2639           'sources': [
2640             'tools/quic/quic_server_bin.cc',
2641           ],
2642         },
2643         {
2644           'target_name': 'quic_unittests',
2645           'type': '<(gtest_target_type)',
2646           'dependencies': [
2647             '../base/base.gyp:test_support_base',
2648             '../crypto/crypto.gyp:crypto',
2649             '../testing/gmock.gyp:gmock',
2650             '../testing/gtest.gyp:gtest',
2651             'net',
2652             'quic_library',
2653           ],
2654           'sources': [
2655             'quic/test_tools/quic_session_peer.cc',
2656             'quic/test_tools/quic_session_peer.h',
2657             'quic/test_tools/crypto_test_utils.cc',
2658             'quic/test_tools/crypto_test_utils.h',
2659             'quic/test_tools/mock_clock.cc',
2660             'quic/test_tools/mock_clock.h',
2661             'quic/test_tools/mock_random.cc',
2662             'quic/test_tools/mock_random.h',
2663             'quic/test_tools/simple_quic_framer.cc',
2664             'quic/test_tools/simple_quic_framer.h',
2665             'quic/test_tools/quic_connection_peer.cc',
2666             'quic/test_tools/quic_connection_peer.h',
2667             'quic/test_tools/quic_framer_peer.cc',
2668             'quic/test_tools/quic_framer_peer.h',
2669             'quic/test_tools/quic_session_peer.cc',
2670             'quic/test_tools/quic_session_peer.h',
2671             'quic/test_tools/quic_test_utils.cc',
2672             'quic/test_tools/quic_test_utils.h',
2673             'quic/test_tools/reliable_quic_stream_peer.cc',
2674             'quic/test_tools/reliable_quic_stream_peer.h',
2675             'tools/flip_server/simple_buffer.cc',
2676             'tools/flip_server/simple_buffer.h',
2677             'tools/quic/end_to_end_test.cc',
2678             'tools/quic/quic_client_session_test.cc',
2679             'tools/quic/quic_dispatcher_test.cc',
2680             'tools/quic/quic_epoll_clock_test.cc',
2681             'tools/quic/quic_epoll_connection_helper_test.cc',
2682             'tools/quic/quic_reliable_client_stream_test.cc',
2683             'tools/quic/quic_reliable_server_stream_test.cc',
2684             'tools/quic/quic_spdy_server_stream_test.cc',
2685             'tools/quic/test_tools/http_message_test_utils.cc',
2686             'tools/quic/test_tools/http_message_test_utils.h',
2687             'tools/quic/test_tools/mock_epoll_server.cc',
2688             'tools/quic/test_tools/mock_epoll_server.h',
2689             'tools/quic/test_tools/quic_test_client.cc',
2690             'tools/quic/test_tools/quic_test_client.h',
2691             'tools/quic/test_tools/quic_test_utils.cc',
2692             'tools/quic/test_tools/quic_test_utils.h',
2693             'tools/quic/test_tools/run_all_unittests.cc',
2694           ],
2695         }
2696       ]
2697     }],
2698     ['OS=="android"', {
2699       'targets': [
2700         {
2701           'target_name': 'net_jni_headers',
2702           'type': 'none',
2703           'sources': [
2704             'android/java/src/org/chromium/net/AndroidKeyStore.java',
2705             'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
2706             'android/java/src/org/chromium/net/GURLUtils.java',
2707             'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
2708             'android/java/src/org/chromium/net/ProxyChangeListener.java',
2709           ],
2710           'variables': {
2711             'jni_gen_package': 'net',
2712           },
2713           'direct_dependent_settings': {
2714             'include_dirs': [
2715               '<(SHARED_INTERMEDIATE_DIR)/net',
2716             ],
2717           },
2718           'includes': [ '../build/jni_generator.gypi' ],
2719         },
2720         {
2721           'target_name': 'net_test_jni_headers',
2722           'type': 'none',
2723           'sources': [
2724             'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
2725           ],
2726           'variables': {
2727             'jni_gen_package': 'net',
2728           },
2729           'direct_dependent_settings': {
2730             'include_dirs': [
2731               '<(SHARED_INTERMEDIATE_DIR)/net',
2732             ],
2733           },
2734           'includes': [ '../build/jni_generator.gypi' ],
2735         },
2736         {
2737           'target_name': 'net_java',
2738           'type': 'none',
2739           'variables': {
2740             'java_in_dir': '../net/android/java',
2741           },
2742           'dependencies': [
2743             '../base/base.gyp:base',
2744             'cert_verify_result_android_java',
2745             'certificate_mime_types_java',
2746             'net_errors_java',
2747             'private_key_types_java',
2748           ],
2749           'includes': [ '../build/java.gypi' ],
2750         },
2751         {
2752           'target_name': 'net_java_test_support',
2753           'type': 'none',
2754           'variables': {
2755             'java_in_dir': '../net/test/android/javatests',
2756           },
2757           'includes': [ '../build/java.gypi' ],
2758         },
2759         {
2760           'target_name': 'net_javatests',
2761           'type': 'none',
2762           'variables': {
2763             'java_in_dir': '../net/android/javatests',
2764           },
2765           'dependencies': [
2766             '../base/base.gyp:base',
2767             '../base/base.gyp:base_java_test_support',
2768             'net_java',
2769           ],
2770           'includes': [ '../build/java.gypi' ],
2771         },
2772         {
2773           'target_name': 'net_errors_java',
2774           'type': 'none',
2775           'sources': [
2776             'android/java/NetError.template',
2777           ],
2778           'variables': {
2779             'package_name': 'org/chromium/net',
2780             'template_deps': ['base/net_error_list.h'],
2781           },
2782           'includes': [ '../build/android/java_cpp_template.gypi' ],
2783         },
2784         {
2785           'target_name': 'certificate_mime_types_java',
2786           'type': 'none',
2787           'sources': [
2788             'android/java/CertificateMimeType.template',
2789           ],
2790           'variables': {
2791             'package_name': 'org/chromium/net',
2792             'template_deps': ['base/mime_util_certificate_type_list.h'],
2793           },
2794           'includes': [ '../build/android/java_cpp_template.gypi' ],
2795         },
2796         {
2797           'target_name': 'cert_verify_result_android_java',
2798           'type': 'none',
2799           'sources': [
2800             'android/java/CertVerifyResultAndroid.template',
2801           ],
2802           'variables': {
2803             'package_name': 'org/chromium/net',
2804             'template_deps': ['android/cert_verify_result_android_list.h'],
2805           },
2806           'includes': [ '../build/android/java_cpp_template.gypi' ],
2807         },
2808         {
2809           'target_name': 'private_key_types_java',
2810           'type': 'none',
2811           'sources': [
2812             'android/java/PrivateKeyType.template',
2813           ],
2814           'variables': {
2815             'package_name': 'org/chromium/net',
2816             'template_deps': ['android/private_key_type_list.h'],
2817           },
2818           'includes': [ '../build/android/java_cpp_template.gypi' ],
2819         },
2820       ],
2821     }],
2822     # Special target to wrap a gtest_target_type==shared_library
2823     # net_unittests into an android apk for execution.
2824     # See base.gyp for TODO(jrg)s about this strategy.
2825     ['OS == "android" and gtest_target_type == "shared_library"', {
2826       'targets': [
2827         {
2828           'target_name': 'net_unittests_apk',
2829           'type': 'none',
2830           'dependencies': [
2831             'net_java',
2832             'net_javatests',
2833             'net_unittests',
2834           ],
2835           'variables': {
2836             'test_suite_name': 'net_unittests',
2837             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)net_unittests<(SHARED_LIB_SUFFIX)',
2838           },
2839           'includes': [ '../build/apk_test.gypi' ],
2840         },
2841       ],
2842     }],
2843     ['test_isolation_mode != "noop"', {
2844       'targets': [
2845         {
2846           'target_name': 'net_unittests_run',
2847           'type': 'none',
2848           'dependencies': [
2849             'net_unittests',
2850           ],
2851           'includes': [
2852             'net_unittests.isolate',
2853           ],
2854           'actions': [
2855             {
2856               'action_name': 'isolate',
2857               'inputs': [
2858                 'net_unittests.isolate',
2859                 '<@(isolate_dependency_tracked)',
2860               ],
2861               'outputs': [
2862                 '<(PRODUCT_DIR)/net_unittests.isolated',
2863               ],
2864               'action': [
2865                 'python',
2866                 '../tools/swarm_client/isolate.py',
2867                 '<(test_isolation_mode)',
2868                 '--outdir', '<(test_isolation_outdir)',
2869                 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
2870                 '--variable', 'OS', '<(OS)',
2871                 '--result', '<@(_outputs)',
2872                 '--isolate', 'net_unittests.isolate',
2873               ],
2874             },
2875           ],
2876         },
2877       ],
2878     }],
2879   ],