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