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