blob: e59ce18f44719852036a8b383c7a742e9e18a52a [file] [log] [blame]
[email protected]e4c029f2013-01-20 01:10:241# Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
[email protected]6acbd8dd2011-08-24 21:19:208 'linux_link_kerberos%': 0,
9 'conditions': [
aberentec894a52015-07-09 14:45:5310 ['chromeos==1 or embedded==1 or OS=="ios"', {
11 # Disable Kerberos on ChromeOS and iOS, at least for now.
[email protected]6acbd8dd2011-08-24 21:19:2012 # It needs configuration (krb5.conf and so on).
13 'use_kerberos%': 0,
aberentec894a52015-07-09 14:45:5314 }, { # chromeos == 0 and embedded==0 and OS!="ios"
[email protected]6acbd8dd2011-08-24 21:19:2015 'use_kerberos%': 1,
16 }],
[email protected]7b265e8d2013-02-20 20:35:4517 ['OS=="android" and target_arch != "ia32"', {
[email protected]9e079cb2012-06-26 13:38:0218 # The way the cache uses mmap() is inefficient on some Android devices.
19 # If this flag is set, we hackily avoid using mmap() in the disk cache.
[email protected]7b265e8d2013-02-20 20:35:4520 # We are pretty confident that mmap-ing the index would not hurt any
21 # existing x86 android devices, but we cannot be so sure about the
22 # variety of ARM devices. So enable it for x86 only for now.
[email protected]9e079cb2012-06-26 13:38:0223 'posix_avoid_mmap%': 1,
24 }, {
25 'posix_avoid_mmap%': 0,
26 }],
[email protected]fe380ae2012-08-30 10:05:5127 ['OS=="ios"', {
28 # Websockets and socket stream are not used on iOS.
29 'enable_websockets%': 0,
[email protected]ba7866b82012-09-07 14:22:2730 # iOS does not use V8.
31 'use_v8_in_net%': 0,
[email protected]33c814862012-09-18 15:16:0332 'enable_built_in_dns%': 0,
[email protected]fe380ae2012-08-30 10:05:5133 }, {
34 'enable_websockets%': 1,
[email protected]ba7866b82012-09-07 14:22:2735 'use_v8_in_net%': 1,
[email protected]33c814862012-09-18 15:16:0336 'enable_built_in_dns%': 1,
[email protected]fe380ae2012-08-30 10:05:5137 }],
[email protected]6acbd8dd2011-08-24 21:19:2038 ],
[email protected]2f80c312009-02-25 21:26:5539 },
[email protected]99ff9932011-09-07 14:14:5440 'includes': [
41 '../build/win_precompile.gypi',
[email protected]18f840652014-04-10 20:31:3742 'net.gypi',
[email protected]99ff9932011-09-07 14:14:5443 ],
[email protected]2f80c312009-02-25 21:26:5544 'targets': [
45 {
[email protected]d7f04492014-05-13 07:01:3446 'target_name': 'net_derived_sources',
47 'type': 'none',
48 'sources': [
49 'base/registry_controlled_domains/effective_tld_names.gperf',
50 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
51 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
52 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
53 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
54 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
55 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
ricea7afa5232015-12-01 20:55:2356 'base/stale_while_revalidate_experiment_domains.gperf',
[email protected]d7f04492014-05-13 07:01:3457 ],
58 'rules': [
59 {
60 'rule_name': 'dafsa',
61 'extension': 'gperf',
62 'outputs': [
63 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
64 ],
65 'inputs': [
ricea3f054c22015-11-13 06:48:2266 'tools/dafsa/make_dafsa.py',
[email protected]d7f04492014-05-13 07:01:3467 ],
68 'action': [
69 'python',
ricea3f054c22015-11-13 06:48:2270 'tools/dafsa/make_dafsa.py',
[email protected]d7f04492014-05-13 07:01:3471 '<(RULE_INPUT_PATH)',
72 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
73 ],
74 },
75 ],
76 'direct_dependent_settings': {
77 'include_dirs': [
78 '<(SHARED_INTERMEDIATE_DIR)'
79 ],
80 },
81 },
82 {
rtennetib6f1c0d2015-04-03 17:52:0683 # Protobuf compiler / generator for QUIC crypto protocol buffer.
pkotwicz92e2e2312015-12-15 22:29:4684 # GN version: //net:net_quic_proto
rtennetib6f1c0d2015-04-03 17:52:0685 'target_name': 'net_quic_proto',
86 'type': 'static_library',
87 'sources': [
88 'quic/proto/cached_network_parameters.proto',
89 'quic/proto/source_address_token.proto',
90 ],
91 'variables': {
92 'enable_wexit_time_destructors': 1,
93 'proto_in_dir': 'quic/proto',
94 'proto_out_dir': 'net/quic/proto',
95 'cc_generator_options': 'dllexport_decl=NET_EXPORT_PRIVATE:',
96 'cc_include': 'net/base/net_export.h',
97 },
98 'includes': [
99 '../build/protoc.gypi',
100 ],
101 'defines': [
102 'NET_IMPLEMENTATION',
103 ],
104 },
105 {
brettw690c96672015-04-21 16:19:54106 # GN version: //net
[email protected]8858a11f42011-05-04 17:55:53107 'target_name': 'net',
[email protected]2f80c312009-02-25 21:26:55108 'dependencies': [
[email protected]002cc08f2013-06-03 05:40:29109 '../url/url.gyp:url_lib',
[email protected]2f80c312009-02-25 21:26:55110 ],
mefdc8e94b2015-03-11 19:49:05111 'includes': [ 'net_common.gypi' ],
kapishnikovabe280e2016-04-14 19:07:16112
113 'conditions': [
114 # ICU Alternatives
115 ['use_platform_icu_alternatives == 1', {
116 'conditions': [
117 ['OS == "android"', {
118 'sources': [
119 'base/net_string_util_icu_alternatives_android.cc',
120 'base/net_string_util_icu_alternatives_android.h',
121 ],
122 }],
123 ['OS == "ios"', {
124 'sources': [
125 'base/net_string_util_icu_alternatives_ios.mm',
126 ],
127 }],
128 ],
129 },
130 # 'use_platform_icu_alternatives != 1'
131 {
132 'sources': [
133 'base/filename_util_icu.cc',
134 'base/net_string_util_icu.cc',
135 ],
136 'dependencies': [
137 '../base/base.gyp:base_i18n',
138 '../third_party/icu/icu.gyp:icui18n',
139 '../third_party/icu/icu.gyp:icuuc',
140 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
141 'net_quic_proto',
142 ],
143 }],
144 # Brotli support.
145 ['disable_brotli_filter == 1', {
146 'sources': [
147 'filter/brotli_filter_disabled.cc',
148 ],
149 },
150 # 'disable_brotli_filter != 1'
151 {
152 'sources': [
153 'filter/brotli_filter.cc',
154 ],
155 'dependencies': [
156 '../third_party/brotli/brotli.gyp:brotli',
157 ],
158 }],
159 ],
[email protected]2f80c312009-02-25 21:26:55160 },
161 {
brettw690c96672015-04-21 16:19:54162 # GN version: //net:net_unittests
[email protected]2f80c312009-02-25 21:26:55163 'target_name': 'net_unittests',
[email protected]a44d1212012-05-25 20:17:49164 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55165 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55166 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14167 '../base/base.gyp:base_i18n',
[email protected]67875f512011-05-21 00:18:30168 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]828a7a812012-09-05 10:12:35169 '../crypto/crypto.gyp:crypto',
[email protected]190933f2014-07-28 09:56:51170 '../crypto/crypto.gyp:crypto_test_support',
[email protected]06489a012009-12-10 08:12:54171 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55172 '../testing/gtest.gyp:gtest',
[email protected]e86aaca2009-08-12 17:58:57173 '../third_party/zlib/zlib.gyp:zlib',
kapishnikovabe280e2016-04-14 19:07:16174 '../url/url.gyp:url_url_features',
[email protected]002cc08f2013-06-03 05:40:29175 '../url/url.gyp:url_lib',
[email protected]8f6594202014-06-11 14:44:25176 'balsa',
[email protected]eb6d2392012-08-02 11:28:23177 'net',
rtennetib6f1c0d2015-04-03 17:52:06178 'net_quic_proto',
[email protected]d7f04492014-05-13 07:01:34179 'net_derived_sources',
mef327a8e42014-08-29 17:10:03180 'net_extras',
[email protected]d7f04492014-05-13 07:01:34181 'net_test_support',
rcha6d42cd2015-03-22 05:13:58182 'simple_quic_tools',
ricea7afa5232015-12-01 20:55:23183 'stale_while_revalidate_experiment_domains',
[email protected]2f80c312009-02-25 21:26:55184 ],
185 'sources': [
[email protected]7f8afda2014-04-12 05:18:55186 '<@(net_test_sources)',
[email protected]2f80c312009-02-25 21:26:55187 ],
188 'conditions': [
[email protected]453cdac12013-07-23 14:53:58189 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
190 'dependencies': [
rch216445c2015-03-27 00:23:28191 'epoll_quic_tools',
[email protected]6c7e6522013-09-29 15:27:44192 'epoll_server',
193 'flip_in_mem_edsm_server_base',
[email protected]453cdac12013-07-23 14:53:58194 ],
195 'sources': [
[email protected]7f8afda2014-04-12 05:18:55196 '<@(net_linux_test_sources)',
[email protected]453cdac12013-07-23 14:53:58197 ],
198 }],
erikchen006a7cf2014-12-03 22:27:11199 ['OS == "mac" or OS == "ios"', {
200 'sources': [
201 '<@(net_base_test_mac_ios_sources)',
202 ],
203 }],
[email protected]f50278cd2010-08-24 17:34:08204 ['chromeos==1', {
205 'sources!': [
[email protected]fcd1e762012-07-11 14:43:50206 'proxy/proxy_config_service_linux_unittest.cc',
[email protected]f50278cd2010-08-24 17:34:08207 ],
208 }],
[email protected]2e530582012-10-20 00:28:35209 [ 'OS == "android"', {
210 'sources!': [
[email protected]8fddf1d2014-03-27 18:08:06211 # See bug http://crbug.com/344533.
212 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]2e530582012-10-20 00:28:35213 ],
[email protected]03a07b2e2013-02-11 20:13:45214 'dependencies': [
215 'net_javatests',
[email protected]03a07b2e2013-02-11 20:13:45216 ],
[email protected]2e530582012-10-20 00:28:35217 }],
davidben0ee13e372015-04-16 23:23:10218 [ 'use_nss_certs != 1', {
[email protected]5482ef9e2013-12-11 04:27:43219 'sources!': [
davidben2bcbc6bc2015-04-22 02:36:41220 'cert/nss_cert_database_unittest.cc',
221 'cert/nss_cert_database_chromeos_unittest.cc',
222 'cert/nss_profile_filter_chromeos_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26223 'ssl/client_cert_store_nss_unittest.cc',
[email protected]5482ef9e2013-12-11 04:27:43224 ],
225 }],
[email protected]1279de12013-12-03 15:13:32226 [ 'use_openssl == 1', {
227 # Avoid compiling/linking with the system library.
228 'dependencies': [
[email protected]edfd0f42014-07-22 18:20:37229 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]1279de12013-12-03 15:13:32230 ],
davidben2bcbc6bc2015-04-22 02:36:41231 }],
svaldeza1714ab2016-03-18 20:47:53232 [ 'use_nss_verifier == 1', {
[email protected]1279de12013-12-03 15:13:32233 'conditions': [
234 [ 'desktop_linux == 1 or chromeos == 1', {
235 'dependencies': [
236 '../build/linux/system.gyp:ssl',
237 ],
238 }, { # desktop_linux == 0 and chromeos == 0
davidben15d69d482014-09-29 18:24:08239 'dependencies': [
240 '../third_party/nss/nss.gyp:nspr',
241 '../third_party/nss/nss.gyp:nss',
242 'third_party/nss/ssl.gyp:libssl',
243 ],
[email protected]1279de12013-12-03 15:13:32244 }],
245 ],
246 }],
[email protected]9c210d92011-08-15 17:34:01247 [ 'use_kerberos==1', {
248 'defines': [
249 'USE_KERBEROS',
250 ],
aberentec894a52015-07-09 14:45:53251 }],
252 [ 'use_kerberos==0 or OS == "android"', {
253 # These are excluded on Android, because the actual Kerberos support,
254 # which these test, is in a separate app on Android.
[email protected]9c210d92011-08-15 17:34:01255 'sources!': [
256 'http/http_auth_gssapi_posix_unittest.cc',
[email protected]9c210d92011-08-15 17:34:01257 'http/mock_gssapi_library_posix.cc',
258 'http/mock_gssapi_library_posix.h',
259 ],
260 }],
kapishnikovabe280e2016-04-14 19:07:16261 [ 'use_kerberos==0', {
aberentec894a52015-07-09 14:45:53262 'sources!': [
263 'http/http_auth_handler_negotiate_unittest.cc',
264 ],
265 }],
svaldeza1714ab2016-03-18 20:47:53266 [ 'use_nss_verifier == 0', {
267 # Only include this test when using NSS for cert verification.
[email protected]b3270fe2013-05-24 06:34:55268 'sources!': [
eromaned744f32015-04-09 06:35:49269 'cert_net/nss_ocsp_unittest.cc',
[email protected]b3270fe2013-05-24 06:34:55270 ],
271 }],
svaldeza1714ab2016-03-18 20:47:53272 [ 'use_nss_verifier == 0 and OS == "ios"', {
273 # Only include these files on iOS when using NSS for cert
274 # verification.
275 'sources!': [
276 'cert/x509_util_ios.cc',
277 'cert/x509_util_ios.h',
278 ],
279 }],
svaldez303d7d42016-03-25 20:37:13280 [ 'use_nss_verifier == 1 and OS == "ios"', {
281 'sources!': [
282 'cert/cert_verify_proc_ios.cc',
283 'cert/cert_verify_proc_ios.h',
284 'cert/x509_certificate_openssl_ios.cc',
285 ],
286 }],
[email protected]70372d42010-10-22 13:12:34287 [ 'use_openssl==1', {
[email protected]b1c2a5542010-10-08 12:44:40288 'sources!': [
[email protected]b064310782013-05-30 21:12:17289 'quic/test_tools/crypto_test_utils_nss.cc',
[email protected]b1c2a5542010-10-08 12:44:40290 ],
davidben15d69d482014-09-29 18:24:08291 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
[email protected]3c5f6db2011-10-18 01:47:04292 'sources!': [
[email protected]b064310782013-05-30 21:12:17293 'quic/test_tools/crypto_test_utils_openssl.cc',
davidbendafe4e52015-04-08 22:53:52294 'ssl/ssl_client_session_cache_openssl_unittest.cc',
[email protected]3c5f6db2011-10-18 01:47:04295 ],
[email protected]b1c2a5542010-10-08 12:44:40296 },
297 ],
[email protected]e1b2d732014-03-28 16:20:32298 [ 'use_openssl_certs == 0', {
299 'sources!': [
300 'ssl/openssl_client_key_store_unittest.cc',
301 ],
302 }],
jbudorick1273a842016-04-01 19:50:05303 [ 'enable_websockets == 1', {
304 'sources': [
305 '<@(net_websockets_test_sources)',
dgozmana6e70092014-12-12 14:46:21306 ],
jbudorick1273a842016-04-01 19:50:05307 'dependencies': [
dgozmana6e70092014-12-12 14:46:21308 'http_server',
[email protected]fe380ae2012-08-30 10:05:51309 ],
310 }],
[email protected]02494ec2014-05-07 15:05:29311 ['disable_file_support==1', {
312 'sources!': [
313 'base/directory_lister_unittest.cc',
Thiago Farinad673bb122016-01-06 23:18:16314 'base/directory_listing_unittest.cc',
svaldeza1714ab2016-03-18 20:47:53315 'url_request/url_request_file_dir_job_unittest.cc',
[email protected]02494ec2014-05-07 15:05:29316 'url_request/url_request_file_job_unittest.cc',
317 ],
318 }],
[email protected]9bfe0ab2012-08-30 13:18:11319 [ 'disable_ftp_support==1', {
320 'sources/': [
321 ['exclude', '^ftp/'],
322 ],
323 'sources!': [
324 'url_request/url_request_ftp_job_unittest.cc',
325 ],
326 },
327 ],
[email protected]33c814862012-09-18 15:16:03328 [ 'enable_built_in_dns!=1', {
329 'sources!': [
330 'dns/address_sorter_posix_unittest.cc',
331 'dns/address_sorter_unittest.cc',
332 ],
333 },
334 ],
xunjieli729cd1f72015-08-31 21:26:50335 [ 'use_v8_in_net==1', {
[email protected]ba7866b82012-09-07 14:22:27336 'dependencies': [
337 'net_with_v8',
338 ],
339 }, { # else: !use_v8_in_net
340 'sources!': [
[email protected]501e2d42013-01-30 22:30:49341 'proxy/proxy_resolver_v8_tracing_unittest.cc',
sammcf2d1ea02015-06-29 02:58:47342 'proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26343 'proxy/proxy_resolver_v8_unittest.cc',
[email protected]ba7866b82012-09-07 14:22:27344 ],
345 },
346 ],
[email protected]4e09d242013-05-02 03:19:35347
amistry7e6ebfdc82015-02-13 04:19:11348 [ 'use_v8_in_net==1 and OS != "android"', {
349 'dependencies': [
350 'net_with_v8',
351 'net_browser_services',
sammc5403aa1d2015-02-25 04:59:21352 'net_utility_services',
rockotc637caf9b2016-02-10 09:57:08353 '../mojo/mojo_edk.gyp:mojo_system_impl',
amistry7e6ebfdc82015-02-13 04:19:11354 ],
355 }, { # else
356 'sources!': [
sammc6ac3fe52015-02-25 06:00:28357 'dns/host_resolver_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11358 'dns/mojo_host_resolver_impl_unittest.cc',
sammc352f7492015-02-25 09:45:24359 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
sammc5403aa1d2015-02-25 04:59:21360 'proxy/mojo_proxy_resolver_impl_unittest.cc',
sammca3242c92015-07-10 02:38:51361 'proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc',
eromandcacef22015-06-01 19:36:35362 'proxy/proxy_resolver_factory_mojo_unittest.cc',
amistry6e1ed1b2015-03-12 05:24:01363 'proxy/proxy_service_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11364 ],
365 },
366 ],
367
[email protected]4e09d242013-05-02 03:19:35368 [ 'enable_mdns != 1', {
369 'sources!' : [
[email protected]f6a9add2013-05-23 00:56:36370 'dns/mdns_cache_unittest.cc',
[email protected]245b164e2013-06-13 22:31:42371 'dns/mdns_client_unittest.cc',
372 'dns/mdns_query_unittest.cc',
[email protected]4e09d242013-05-02 03:19:35373 'dns/record_parsed_unittest.cc',
374 'dns/record_rdata_unittest.cc',
375 ],
376 }],
[email protected]2f80c312009-02-25 21:26:55377 [ 'OS == "win"', {
[email protected]83727172010-06-04 17:58:08378 'sources!': [
[email protected]d84316a2011-08-18 04:41:21379 'dns/dns_config_service_posix_unittest.cc',
[email protected]83727172010-06-04 17:58:08380 'http/http_auth_gssapi_posix_unittest.cc',
381 ],
davidben1b53bf6ea2014-11-05 22:38:41382 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
383 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41384 'conditions': [
385 [ 'icu_use_data_file_flag == 0', {
386 # This is needed to trigger the dll copy step on windows.
387 # TODO(mark): Specifying this here shouldn't be necessary.
388 'dependencies': [
389 '../third_party/icu/icu.gyp:icudata',
390 ],
391 }],
392 ],
[email protected]2f80c312009-02-25 21:26:55393 },
394 ],
[email protected]d4158952012-09-18 09:04:33395 [ 'OS == "ios"', {
[email protected]a414acf92012-10-02 11:25:57396 'actions': [
397 {
398 'action_name': 'copy_test_data',
399 'variables': {
400 'test_data_files': [
mattm61c80732015-11-02 22:35:44401 'data/certificate_policies_unittest/',
mattm2c59d262015-10-29 05:33:21402 'data/name_constraints_unittest/',
eromanc1aac5a2015-12-18 02:23:06403 'data/parse_certificate_unittest/',
svaldezbe481782016-03-24 17:16:32404 'data/parse_ocsp_unittest/',
[email protected]a414acf92012-10-02 11:25:57405 'data/ssl/certificates/',
[email protected]938347e2013-05-20 16:45:38406 'data/test.html',
[email protected]a414acf92012-10-02 11:25:57407 'data/url_request_unittest/',
eromanc1aac5a2015-12-18 02:23:06408 'data/verify_certificate_chain_unittest/',
mattm057b0152015-08-11 00:26:24409 'data/verify_name_match_unittest/names/',
svaldeza1714ab2016-03-18 20:47:53410 'data/verify_signed_data_unittest/',
svaldezb7f886b32016-04-12 21:56:06411 'third_party/nist-pkits/certs/',
412 'third_party/nist-pkits/crls/',
[email protected]a414acf92012-10-02 11:25:57413 ],
414 'test_data_prefix': 'net',
415 },
416 'includes': [ '../build/copy_test_data_ios.gypi' ],
417 },
418 ],
419 'sources!': [
420 # TODO(droger): The following tests are disabled because the
421 # implementation is missing or incomplete.
422 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
423 'base/keygen_handler_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57424 'disk_cache/backend_unittest.cc',
[email protected]80422f322014-03-03 20:28:14425 'disk_cache/blockfile/block_files_unittest.cc',
[email protected]ed60cb32014-02-04 00:57:28426 # Need to read input data files.
eustasfbec9132015-12-30 14:56:51427 'filter/brotli_filter_unittest.cc',
[email protected]ed60cb32014-02-04 00:57:28428 'filter/gzip_filter_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57429 # Need TestServer.
eroman0fad62b2015-04-08 18:54:11430 "cert_net/cert_net_fetcher_impl_unittest.cc",
[email protected]a414acf92012-10-02 11:25:57431 'proxy/proxy_script_fetcher_impl_unittest.cc',
432 'socket/ssl_client_socket_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34433 'socket/ssl_server_socket_unittest.cc',
434 'spdy/fuzzing/hpack_fuzz_util_test.cc',
[email protected]a414acf92012-10-02 11:25:57435 # Needs GetAppOutput().
436 'test/python_utils_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34437 'url_request/url_fetcher_impl_unittest.cc',
438 'url_request/url_request_context_builder_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57439
440 # The following tests are disabled because they don't apply to
441 # iOS.
442 # OS is not "linux" or "freebsd" or "openbsd".
[email protected]518c63a2014-07-24 03:51:23443 'socket/unix_domain_client_socket_posix_unittest.cc',
[email protected]518c63a2014-07-24 03:51:23444 'socket/unix_domain_server_socket_posix_unittest.cc',
[email protected]df53da82014-02-18 22:27:17445
[email protected]8fddf1d2014-03-27 18:08:06446 # See bug http://crbug.com/344533.
447 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]d4158952012-09-18 09:04:33448 ],
[email protected]eb6d2392012-08-02 11:28:23449 }],
[email protected]87a80852014-05-17 16:09:58450 ['OS == "android"', {
[email protected]5ecf7cb282014-05-11 01:49:55451 # TODO(mmenke): This depends on test_support_base, which depends on
452 # icu. Figure out a way to remove that dependency.
[email protected]a44d1212012-05-25 20:17:49453 'dependencies': [
454 '../testing/android/native_test.gyp:native_test_native_code',
[email protected]b397b062012-06-26 19:33:28455 ]
[email protected]a44d1212012-05-25 20:17:49456 }],
rmcilroyffe89b42015-04-10 11:00:15457 ['use_v8_in_net==1 and v8_use_external_startup_data==1', {
baixo3a3c88a2014-10-28 11:52:21458 'dependencies': [
459 '../gin/gin.gyp:gin',
460 ]
461 }],
kapishnikovabe280e2016-04-14 19:07:16462 # Unit tests that are not supported by the current ICU alternatives on Android.
463 ['OS == "android" and use_platform_icu_alternatives == 1', {
464 'sources!': [
465 'base/filename_util_unittest.cc',
466 'url_request/url_request_job_unittest.cc',
467 ],
468 }],
469 # Unit tests that are not supported by the current ICU alternatives on iOS.
470 ['OS == "ios" and use_platform_icu_alternatives == 1', {
471 'sources!': [
472 'base/filename_util_unittest.cc',
473 'base/url_util_unittest.cc',
474 'cert/x509_certificate_unittest.cc',
475 'socket/ssl_client_socket_pool_unittest.cc',
476 'http/http_auth_handler_basic_unittest.cc',
477 'http/http_auth_handler_digest_unittest.cc',
478 'http/http_auth_handler_factory_unittest.cc',
479 'http/http_auth_unittest.cc',
480 'http/http_content_disposition_unittest.cc',
481 'http/http_network_transaction_unittest.cc',
482 'http/http_proxy_client_socket_pool_unittest.cc',
483 'spdy/spdy_network_transaction_unittest.cc',
484 'spdy/spdy_proxy_client_socket_unittest.cc',
485 'url_request/url_request_job_unittest.cc',
486 'url_request/url_request_unittest.cc',
487 ],
488 }],
489 # Exclude brotli test if the support for brotli is disabled.
490 ['disable_brotli_filter == 1', {
491 'sources!': [
492 'filter/brotli_filter_unittest.cc',
493 ],
494 }],
[email protected]2f80c312009-02-25 21:26:55495 ],
[email protected]b1874a8782014-02-10 21:36:25496 'target_conditions': [
497 # These source files are excluded by default platform rules, but they
498 # are needed in specific cases on other platforms. Re-including them can
499 # only be done in target_conditions as it is evaluated after the
500 # platform rules.
501 ['OS == "android"', {
502 'sources/': [
503 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
504 ],
505 }],
drogerf83b91262015-03-05 19:45:19506 ['OS == "ios"', {
507 'sources/': [
508 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
509 ],
510 }],
[email protected]b1874a8782014-02-10 21:36:25511 ],
[email protected]2f80c312009-02-25 21:26:55512 },
513 {
514 'target_name': 'net_perftests',
515 'type': 'executable',
516 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55517 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14518 '../base/base.gyp:base_i18n',
[email protected]7d1ba9392009-08-03 18:35:06519 '../base/base.gyp:test_support_perf',
[email protected]2f80c312009-02-25 21:26:55520 '../testing/gtest.gyp:gtest',
[email protected]002cc08f2013-06-03 05:40:29521 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23522 'net',
rohitrao1860223c2015-05-16 01:07:14523 'net_extras',
[email protected]eb6d2392012-08-02 11:28:23524 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55525 ],
526 'sources': [
ricea10eb9f5e2015-05-19 18:51:57527 'base/mime_sniffer_perftest.cc',
[email protected]63ee33bd2012-03-15 09:29:58528 'cookies/cookie_monster_perftest.cc',
[email protected]c2c5cfc2014-03-03 16:35:28529 'disk_cache/blockfile/disk_cache_perftest.cc',
rohitrao1860223c2015-05-16 01:07:14530 'extras/sqlite/sqlite_persistent_cookie_store_perftest.cc',
[email protected]448cfef82009-03-06 01:44:33531 'proxy/proxy_resolver_perftest.cc',
hclam5a5ee682015-02-05 04:18:22532 'udp/udp_socket_perftest.cc',
riceab2ab0062014-09-01 09:59:59533 'websockets/websocket_frame_perftest.cc',
[email protected]2f80c312009-02-25 21:26:55534 ],
535 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27536 [ 'use_v8_in_net==1', {
537 'dependencies': [
538 'net_with_v8',
539 ],
540 }, { # else: !use_v8_in_net
541 'sources!': [
542 'proxy/proxy_resolver_perftest.cc',
543 ],
544 },
545 ],
[email protected]2f80c312009-02-25 21:26:55546 [ 'OS == "win"', {
[email protected]27be5062014-01-24 01:00:41547 'conditions': [
548 [ 'icu_use_data_file_flag == 0', {
549 # This is needed to trigger the dll copy step on windows.
550 # TODO(mark): Specifying this here shouldn't be necessary.
551 'dependencies': [
552 '../third_party/icu/icu.gyp:icudata',
553 ],
554 }],
[email protected]2f80c312009-02-25 21:26:55555 ],
[email protected]9dcec242013-01-10 23:24:28556 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
557 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41558 }],
riceab2ab0062014-09-01 09:59:59559 [ 'enable_websockets != 1', {
560 'sources!': [
561 'websockets/websocket_frame_perftest.cc',
562 ],
563 }],
[email protected]f9ff629f2010-09-03 23:54:36564 ],
565 },
566 {
[email protected]6718b412009-03-04 18:26:00567 'target_name': 'net_test_support',
[email protected]5a547332011-05-19 23:18:53568 'type': 'static_library',
[email protected]6718b412009-03-04 18:26:00569 'dependencies': [
[email protected]6718b412009-03-04 18:26:00570 '../base/base.gyp:base',
[email protected]5f38d712010-10-26 06:46:59571 '../base/base.gyp:test_support_base',
Nico Weberab3090302015-01-19 06:14:43572 '../crypto/crypto.gyp:crypto',
[email protected]ed32c212013-05-14 20:49:29573 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]ff007e162009-05-23 09:13:15574 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18575 '../testing/gmock.gyp:gmock',
[email protected]002cc08f2013-06-03 05:40:29576 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23577 'net',
[email protected]6718b412009-03-04 18:26:00578 ],
[email protected]44738602012-03-02 22:56:01579 'export_dependent_settings': [
580 '../base/base.gyp:base',
[email protected]5ecf7cb282014-05-11 01:49:55581 # TODO(mmenke): This depends on icu, figure out a way to build tests
582 # without icu.
[email protected]44738602012-03-02 22:56:01583 '../base/base.gyp:test_support_base',
davidben85bad9e2015-05-11 20:20:10584 '../crypto/crypto.gyp:crypto',
[email protected]44738602012-03-02 22:56:01585 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18586 '../testing/gmock.gyp:gmock',
[email protected]44738602012-03-02 22:56:01587 ],
[email protected]6718b412009-03-04 18:26:00588 'sources': [
[email protected]b258e0792013-01-12 07:11:59589 'base/load_timing_info_test_util.cc',
590 'base/load_timing_info_test_util.h',
[email protected]47a881b2011-08-29 22:59:21591 'base/mock_file_stream.cc',
592 'base/mock_file_stream.h',
[email protected]ad74a592011-01-21 18:40:55593 'base/test_completion_callback.cc',
594 'base/test_completion_callback.h',
[email protected]42fdb452012-11-01 12:44:40595 'base/test_data_directory.cc',
596 'base/test_data_directory.h',
[email protected]6e7845ae2013-03-29 21:48:11597 'cert/mock_cert_verifier.cc',
598 'cert/mock_cert_verifier.h',
ryanchung987b2ff2016-02-19 00:17:12599 'cert/mock_client_cert_verifier.cc',
600 'cert/mock_client_cert_verifier.h',
[email protected]63ee33bd2012-03-15 09:29:58601 'cookies/cookie_monster_store_test.cc',
602 'cookies/cookie_monster_store_test.h',
603 'cookies/cookie_store_test_callbacks.cc',
604 'cookies/cookie_store_test_callbacks.h',
605 'cookies/cookie_store_test_helpers.cc',
606 'cookies/cookie_store_test_helpers.h',
drogerfd8b2772015-12-04 14:34:56607 'cookies/cookie_store_unittest.h',
[email protected]79b3fec2011-11-15 22:33:47608 'disk_cache/disk_cache_test_base.cc',
609 'disk_cache/disk_cache_test_base.h',
[email protected]2f80c312009-02-25 21:26:55610 'disk_cache/disk_cache_test_util.cc',
[email protected]6718b412009-03-04 18:26:00611 'disk_cache/disk_cache_test_util.h',
[email protected]78eac2a2012-03-14 19:09:27612 'dns/dns_test_util.cc',
[email protected]4b0112ab2011-07-22 15:58:20613 'dns/dns_test_util.h',
[email protected]f2cb3cf2013-03-21 01:40:53614 'dns/mock_host_resolver.cc',
615 'dns/mock_host_resolver.h',
[email protected]f22f316b2013-06-21 05:26:18616 'dns/mock_mdns_socket_factory.cc',
617 'dns/mock_mdns_socket_factory.h',
[email protected]c41737d2014-05-14 07:47:19618 'http/http_transaction_test_util.cc',
619 'http/http_transaction_test_util.h',
vishal.b62985ca92015-04-17 08:45:51620 'log/test_net_log.cc',
621 'log/test_net_log.h',
mmenke43758e62015-05-04 21:09:46622 'log/test_net_log_entry.cc',
623 'log/test_net_log_entry.h',
mmenke0034c542015-05-05 22:34:59624 'log/test_net_log_util.cc',
mmenke43758e62015-05-04 21:09:46625 'log/test_net_log_util.h',
[email protected]b6ce91b2011-02-10 21:30:50626 'proxy/mock_proxy_resolver.cc',
627 'proxy/mock_proxy_resolver.h',
[email protected]7258def2011-05-17 19:53:00628 'proxy/mock_proxy_script_fetcher.cc',
629 'proxy/mock_proxy_script_fetcher.h',
[email protected]ab501a6a2009-05-12 15:07:50630 'proxy/proxy_config_service_common_unittest.cc',
631 'proxy/proxy_config_service_common_unittest.h',
[email protected]f7984fc62009-06-22 23:26:44632 'socket/socket_test_util.cc',
633 'socket/socket_test_util.h',
[email protected]6e7845ae2013-03-29 21:48:11634 'test/cert_test_util.cc',
635 'test/cert_test_util.h',
[email protected]83e1ae32014-07-18 10:57:07636 'test/cert_test_util_nss.cc',
nharper2e171cf2015-06-01 20:29:23637 'test/channel_id_test_util.cc',
638 'test/channel_id_test_util.h',
[email protected]95ac16b2013-11-01 01:42:03639 'test/ct_test_util.cc',
640 'test/ct_test_util.h',
svaldez7d25c562015-10-30 19:09:45641 'test/embedded_test_server/default_handlers.cc',
642 'test/embedded_test_server/default_handlers.h',
[email protected]eb7388f2013-05-09 17:00:26643 'test/embedded_test_server/embedded_test_server.cc',
644 'test/embedded_test_server/embedded_test_server.h',
[email protected]b6e5b6c62013-05-07 17:50:26645 'test/embedded_test_server/http_connection.cc',
646 'test/embedded_test_server/http_connection.h',
647 'test/embedded_test_server/http_request.cc',
648 'test/embedded_test_server/http_request.h',
649 'test/embedded_test_server/http_response.cc',
650 'test/embedded_test_server/http_response.h',
svaldez6e7e82a22015-10-28 19:39:53651 'test/embedded_test_server/request_handler_util.cc',
652 'test/embedded_test_server/request_handler_util.h',
sammc6ac3fe52015-02-25 06:00:28653 'test/event_waiter.h',
[email protected]8efa4ba42013-03-18 21:14:14654 'test/net_test_suite.cc',
655 'test/net_test_suite.h',
[email protected]9af13ce2010-09-16 21:45:48656 'test/python_utils.cc',
[email protected]a44d1212012-05-25 20:17:49657 'test/python_utils.h',
[email protected]89b32522013-05-07 20:04:21658 'test/spawned_test_server/base_test_server.cc',
659 'test/spawned_test_server/base_test_server.h',
[email protected]89b32522013-05-07 20:04:21660 'test/spawned_test_server/local_test_server.cc',
661 'test/spawned_test_server/local_test_server.h',
satoruxdd0840d32015-02-12 19:10:26662 'test/spawned_test_server/local_test_server_posix.cc',
663 'test/spawned_test_server/local_test_server_win.cc',
[email protected]89b32522013-05-07 20:04:21664 'test/spawned_test_server/spawned_test_server.h',
brettw6315e032015-11-27 18:38:36665 'test/test_certificate_data.h',
xunjieli885de312015-07-20 16:18:51666 'test/url_request/ssl_certificate_error_job.cc',
667 'test/url_request/ssl_certificate_error_job.h',
xunjieli2906f152014-09-12 00:08:23668 'test/url_request/url_request_failed_job.cc',
669 'test/url_request/url_request_failed_job.h',
mef3e826cf2014-12-13 18:40:40670 'test/url_request/url_request_mock_data_job.cc',
671 'test/url_request/url_request_mock_data_job.h',
jam8e45cd72015-01-20 16:33:44672 'test/url_request/url_request_slow_download_job.cc',
673 'test/url_request/url_request_slow_download_job.h',
[email protected]8f2d8bdd2012-06-19 23:44:05674 'url_request/test_url_fetcher_factory.cc',
675 'url_request/test_url_fetcher_factory.h',
[email protected]d2db0292011-01-26 20:23:44676 'url_request/url_request_test_util.cc',
677 'url_request/url_request_test_util.h',
[email protected]702a6a722010-03-17 18:24:51678 ],
679 'conditions': [
[email protected]0dc310a32013-05-08 23:52:44680 ['OS != "ios"', {
[email protected]6c2046562010-05-07 23:47:50681 'dependencies': [
[email protected]9cac94e2010-10-01 16:35:12682 '../third_party/protobuf/protobuf.gyp:py_proto',
[email protected]6c2046562010-05-07 23:47:50683 ],
sherouk3eee4a82015-09-01 10:42:33684 }, {
685 'sources!': [
686 'test/spawned_test_server/base_test_server.cc',
687 'test/spawned_test_server/base_test_server.h',
688 'test/spawned_test_server/local_test_server.cc',
689 'test/spawned_test_server/local_test_server.h',
690 'test/spawned_test_server/local_test_server_posix.cc',
691 'test/spawned_test_server/local_test_server_win.cc',
692 'test/spawned_test_server/spawned_test_server.h',
693 ],
[email protected]6c2046562010-05-07 23:47:50694 }],
svaldeza1714ab2016-03-18 20:47:53695 ['use_nss_verifier == 1', {
[email protected]70372d42010-10-22 13:12:34696 'conditions': [
davidben15d69d482014-09-29 18:24:08697 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]70372d42010-10-22 13:12:34698 'dependencies': [
[email protected]638e9df42011-05-31 17:19:30699 '../build/linux/system.gyp:ssl',
[email protected]70372d42010-10-22 13:12:34700 ],
davidben15d69d482014-09-29 18:24:08701 }, { # desktop_linux == 0 and chromeos == 0
702 'dependencies': [
703 '../third_party/nss/nss.gyp:nspr',
704 '../third_party/nss/nss.gyp:nss',
705 'third_party/nss/ssl.gyp:libssl',
706 ],
[email protected]70372d42010-10-22 13:12:34707 }],
[email protected]702a6a722010-03-17 18:24:51708 ],
709 }],
jbudorickb7043d82015-06-27 01:43:03710 ['OS == "android"', {
711 'dependencies': [
712 'net_test_jni_headers',
713 ],
714 'sources': [
jbudorickb7043d82015-06-27 01:43:03715 'test/embedded_test_server/android/embedded_test_server_android.cc',
716 'test/embedded_test_server/android/embedded_test_server_android.h',
[email protected]89b32522013-05-07 20:04:21717 'test/spawned_test_server/remote_test_server.cc',
718 'test/spawned_test_server/remote_test_server.h',
719 'test/spawned_test_server/spawner_communicator.cc',
720 'test/spawned_test_server/spawner_communicator.h',
[email protected]31526822012-03-12 06:04:43721 ],
722 }],
[email protected]ba7866b82012-09-07 14:22:27723 [ 'use_v8_in_net==1', {
724 'dependencies': [
725 'net_with_v8',
726 ],
727 },
728 ],
[email protected]f22f316b2013-06-21 05:26:18729 [ 'enable_mdns != 1', {
730 'sources!' : [
731 'dns/mock_mdns_socket_factory.cc',
732 'dns/mock_mdns_socket_factory.h'
733 ]
734 }],
davidben0ee13e372015-04-16 23:23:10735 [ 'use_nss_certs != 1', {
[email protected]83e1ae32014-07-18 10:57:07736 'sources!': [
737 'test/cert_test_util_nss.cc',
738 ],
739 }],
xunjielia6888202015-04-14 21:34:25740 ['disable_file_support != 1', {
741 'sources': [
742 'test/url_request/url_request_mock_http_job.cc',
743 'test/url_request/url_request_mock_http_job.h',
744 'url_request/test_url_request_interceptor.cc',
745 'url_request/test_url_request_interceptor.h',
746 ],
747 }],
[email protected]2f80c312009-02-25 21:26:55748 ],
[email protected]9dcec242013-01-10 23:24:28749 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
750 'msvs_disabled_warnings': [4267, ],
[email protected]2f80c312009-02-25 21:26:55751 },
[email protected]ef36c74c2009-03-11 13:32:22752 {
753 'target_name': 'net_resources',
754 'type': 'none',
[email protected]5b910872010-02-09 01:03:02755 'variables': {
[email protected]4de39f82011-03-28 12:01:29756 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
[email protected]5b910872010-02-09 01:03:02757 },
[email protected]4de39f82011-03-28 12:01:29758 'actions': [
[email protected]2f80c312009-02-25 21:26:55759 {
[email protected]4de39f82011-03-28 12:01:29760 'action_name': 'net_resources',
761 'variables': {
762 'grit_grd_file': 'base/net_resources.grd',
763 },
764 'includes': [ '../build/grit_action.gypi' ],
[email protected]2f80c312009-02-25 21:26:55765 },
[email protected]6718b412009-03-04 18:26:00766 ],
[email protected]ef36c74c2009-03-11 13:32:22767 },
[email protected]75b91f92009-06-17 07:28:48768 {
mef327a8e42014-08-29 17:10:03769 'target_name': 'net_extras',
770 'type': 'static_library',
771 'variables': { 'enable_wexit_time_destructors': 1, },
772 'dependencies': [
773 '../base/base.gyp:base',
774 '../sql/sql.gyp:sql',
775 'net',
776 ],
777 'sources': [
778 '<@(net_extras_sources)',
779 ],
780 },
781 {
[email protected]a33721a2011-02-03 17:23:24782 'target_name': 'http_server',
[email protected]5a547332011-05-19 23:18:53783 'type': 'static_library',
[email protected]8df769e2011-11-09 23:08:54784 'variables': { 'enable_wexit_time_destructors': 1, },
[email protected]0569d862010-07-05 11:32:40785 'dependencies': [
[email protected]0569d862010-07-05 11:32:40786 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:23787 'net',
[email protected]0569d862010-07-05 11:32:40788 ],
[email protected]0569d862010-07-05 11:32:40789 'sources': [
[email protected]86c6a0b52011-08-02 19:49:25790 'server/http_connection.cc',
791 'server/http_connection.h',
[email protected]a33721a2011-02-03 17:23:24792 'server/http_server.cc',
793 'server/http_server.h',
[email protected]1889dc1b2010-10-14 22:03:13794 'server/http_server_request_info.cc',
[email protected]0569d862010-07-05 11:32:40795 'server/http_server_request_info.h',
[email protected]c700fd152013-07-23 21:29:11796 'server/http_server_response_info.cc',
797 'server/http_server_response_info.h',
[email protected]86c6a0b52011-08-02 19:49:25798 'server/web_socket.cc',
799 'server/web_socket.h',
dgozmana6e70092014-12-12 14:46:21800 'server/web_socket_encoder.cc',
801 'server/web_socket_encoder.h',
[email protected]0569d862010-07-05 11:32:40802 ],
[email protected]9dcec242013-01-10 23:24:28803 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
804 'msvs_disabled_warnings': [4267, ],
[email protected]0569d862010-07-05 11:32:40805 },
brettw690c96672015-04-21 16:19:54806 { # GN version: //net:balsa
[email protected]8f6594202014-06-11 14:44:25807 'target_name': 'balsa',
808 'type': 'static_library',
809 'dependencies': [
810 '../base/base.gyp:base',
811 'net',
812 ],
813 'sources': [
814 'tools/balsa/balsa_enums.h',
815 'tools/balsa/balsa_frame.cc',
816 'tools/balsa/balsa_frame.h',
817 'tools/balsa/balsa_headers.cc',
818 'tools/balsa/balsa_headers.h',
819 'tools/balsa/balsa_headers_token_utils.cc',
820 'tools/balsa/balsa_headers_token_utils.h',
821 'tools/balsa/balsa_visitor_interface.h',
822 'tools/balsa/http_message_constants.cc',
823 'tools/balsa/http_message_constants.h',
824 'tools/balsa/noop_balsa_visitor.h',
825 'tools/balsa/simple_buffer.cc',
826 'tools/balsa/simple_buffer.h',
[email protected]8f6594202014-06-11 14:44:25827 'tools/balsa/string_piece_utils.h',
rtennetie0ee6eb2015-05-01 00:55:09828 'tools/quic/spdy_balsa_utils.cc',
829 'tools/quic/spdy_balsa_utils.h',
[email protected]8f6594202014-06-11 14:44:25830 ],
831 },
832 {
[email protected]27675c82012-11-29 16:34:45833 'target_name': 'dump_cache',
834 'type': 'executable',
835 'dependencies': [
836 '../base/base.gyp:base',
837 'net',
838 'net_test_support',
839 ],
840 'sources': [
[email protected]27675c82012-11-29 16:34:45841 'tools/dump_cache/dump_cache.cc',
842 'tools/dump_cache/dump_files.cc',
843 'tools/dump_cache/dump_files.h',
[email protected]27675c82012-11-29 16:34:45844 ],
[email protected]9dcec242013-01-10 23:24:28845 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
846 'msvs_disabled_warnings': [4267, ],
[email protected]27675c82012-11-29 16:34:45847 },
[email protected]ceeaac792014-06-25 05:14:43848 {
rch47ad01f2015-03-20 21:17:23849 'target_name': 'simple_quic_tools',
850 'type': 'static_library',
851 'dependencies': [
852 '../base/base.gyp:base',
853 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
854 '../url/url.gyp:url_lib',
855 'net',
rtennetib6f1c0d2015-04-03 17:52:06856 'net_quic_proto',
rch47ad01f2015-03-20 21:17:23857 ],
858 'sources': [
rtennetid67b3a722015-08-18 05:15:31859 'tools/quic/quic_client_base.cc',
860 'tools/quic/quic_client_base.h',
rchc99f380c2015-03-26 19:50:56861 'tools/quic/quic_client_session.cc',
862 'tools/quic/quic_client_session.h',
863 'tools/quic/quic_dispatcher.cc',
864 'tools/quic/quic_dispatcher.h',
rch0e945472015-03-26 15:19:21865 'tools/quic/quic_in_memory_cache.cc',
866 'tools/quic/quic_in_memory_cache.h',
rchc99f380c2015-03-26 19:50:56867 'tools/quic/quic_per_connection_packet_writer.cc',
868 'tools/quic/quic_per_connection_packet_writer.h',
brettw25ca8922016-03-18 22:59:58869 'tools/quic/quic_process_packet_interface.h',
jokulikc971baf92016-01-06 00:36:39870 'tools/quic/quic_server_session_base.cc',
871 'tools/quic/quic_server_session_base.h',
rch47ad01f2015-03-20 21:17:23872 'tools/quic/quic_simple_client.cc',
873 'tools/quic/quic_simple_client.h',
rch216445c2015-03-27 00:23:28874 'tools/quic/quic_simple_per_connection_packet_writer.cc',
875 'tools/quic/quic_simple_per_connection_packet_writer.h',
876 'tools/quic/quic_simple_server.cc',
877 'tools/quic/quic_simple_server.h',
878 'tools/quic/quic_simple_server_packet_writer.cc',
879 'tools/quic/quic_simple_server_packet_writer.h',
jokulikc971baf92016-01-06 00:36:39880 'tools/quic/quic_simple_server_session.cc',
881 'tools/quic/quic_simple_server_session.h',
rched113b22015-03-26 04:54:05882 'tools/quic/quic_spdy_client_stream.cc',
883 'tools/quic/quic_spdy_client_stream.h',
danzhb7551342015-12-18 02:06:40884 'tools/quic/quic_simple_server_stream.cc',
885 'tools/quic/quic_simple_server_stream.h',
rch0e945472015-03-26 15:19:21886 'tools/quic/quic_time_wait_list_manager.cc',
887 'tools/quic/quic_time_wait_list_manager.h',
rchda78df5a2015-03-22 05:16:37888 'tools/quic/synchronous_host_resolver.cc',
889 'tools/quic/synchronous_host_resolver.h',
rch47ad01f2015-03-20 21:17:23890 ],
891 },
ricea7afa5232015-12-01 20:55:23892 {
893 # GN version: //net:stale_while_revalidate_experiment_domains
894 'target_name': 'stale_while_revalidate_experiment_domains',
ricea5eb7fe32015-12-16 23:20:30895 'type': 'static_library',
ricea7afa5232015-12-01 20:55:23896 'dependencies': [
897 '../base/base.gyp:base',
898 'net',
899 'net_derived_sources',
900 ],
ricea7afa5232015-12-01 20:55:23901 'sources': [
902 'base/stale_while_revalidate_experiment_domains.cc',
903 'base/stale_while_revalidate_experiment_domains.h',
904 ],
905 },
[email protected]ef36c74c2009-03-11 13:32:22906 ],
907 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27908 ['use_v8_in_net == 1', {
909 'targets': [
910 {
911 'target_name': 'net_with_v8',
912 'type': '<(component)',
913 'variables': { 'enable_wexit_time_destructors': 1, },
914 'dependencies': [
915 '../base/base.gyp:base',
[email protected]6b395fe2014-04-08 23:58:15916 '../gin/gin.gyp:gin',
[email protected]002cc08f2013-06-03 05:40:29917 '../url/url.gyp:url_lib',
[email protected]ba7866b82012-09-07 14:22:27918 '../v8/tools/gyp/v8.gyp:v8',
919 'net'
920 ],
921 'defines': [
922 'NET_IMPLEMENTATION',
923 ],
924 'sources': [
925 'proxy/proxy_resolver_v8.cc',
926 'proxy/proxy_resolver_v8.h',
[email protected]501e2d42013-01-30 22:30:49927 'proxy/proxy_resolver_v8_tracing.cc',
928 'proxy/proxy_resolver_v8_tracing.h',
sammcf2d1ea02015-06-29 02:58:47929 'proxy/proxy_resolver_v8_tracing_wrapper.cc',
930 'proxy/proxy_resolver_v8_tracing_wrapper.h',
[email protected]ba7866b82012-09-07 14:22:27931 'proxy/proxy_service_v8.cc',
932 'proxy/proxy_service_v8.h',
933 ],
[email protected]9dcec242013-01-10 23:24:28934 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
935 'msvs_disabled_warnings': [4267, ],
[email protected]ba7866b82012-09-07 14:22:27936 },
937 ],
938 }],
amistryaa16ad22015-02-04 09:01:47939 ['use_v8_in_net == 1 and OS != "android"', {
940 'targets': [
941 {
942 # GN version: //net/interfaces
943 'target_name': 'net_interfaces',
944 'type': 'static_library',
945 'sources': [
946 'interfaces/host_resolver_service.mojom',
947 'interfaces/proxy_resolver_service.mojom',
948 ],
949 'includes': [
rockotc637caf9b2016-02-10 09:57:08950 '../mojo/mojom_bindings_generator.gypi',
amistryaa16ad22015-02-04 09:01:47951 ],
952 },
amistry7e6ebfdc82015-02-13 04:19:11953 {
954 # GN version: //net:net_browser_services
955 'target_name': 'net_browser_services',
956 'type': 'static_library',
957 'sources': [
958 'dns/mojo_host_resolver_impl.cc',
959 'dns/mojo_host_resolver_impl.h',
amistry6e1ed1b2015-03-12 05:24:01960 'proxy/in_process_mojo_proxy_resolver_factory.cc',
961 'proxy/in_process_mojo_proxy_resolver_factory.h',
sammc1d5df4d2015-05-05 05:06:17962 'proxy/mojo_proxy_resolver_factory.h',
eromandcacef22015-06-01 19:36:35963 'proxy/proxy_resolver_factory_mojo.cc',
964 'proxy/proxy_resolver_factory_mojo.h',
amistry6e1ed1b2015-03-12 05:24:01965 'proxy/proxy_service_mojo.cc',
966 'proxy/proxy_service_mojo.h',
amistry7e6ebfdc82015-02-13 04:19:11967 ],
968 'dependencies': [
969 'mojo_type_converters',
970 'net',
971 'net_interfaces',
amistry07ff1402015-03-10 07:34:07972 '../mojo/mojo_base.gyp:mojo_common_lib',
amistry07ff1402015-03-10 07:34:07973 '../mojo/mojo_base.gyp:mojo_url_type_converters',
rockotc637caf9b2016-02-10 09:57:08974 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
amistry6e1ed1b2015-03-12 05:24:01975
976 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
977 # need this dependency since in_process_mojo_proxy_resolver_factory
978 # creates the utility process side Mojo services in the browser
979 # process. Ultimately, this will go away when we only support
980 # out-of-process.
981 'net_utility_services',
amistry7e6ebfdc82015-02-13 04:19:11982 ],
983 },
984 {
sammc5403aa1d2015-02-25 04:59:21985 # GN version: //net:net_utility_services
986 'target_name': 'net_utility_services',
987 'type': 'static_library',
988 'sources': [
sammc6ac3fe52015-02-25 06:00:28989 'dns/host_resolver_mojo.cc',
990 'dns/host_resolver_mojo.h',
sammc352f7492015-02-25 09:45:24991 'proxy/mojo_proxy_resolver_factory_impl.cc',
992 'proxy/mojo_proxy_resolver_factory_impl.h',
sammc5403aa1d2015-02-25 04:59:21993 'proxy/mojo_proxy_resolver_impl.cc',
994 'proxy/mojo_proxy_resolver_impl.h',
sammca3242c92015-07-10 02:38:51995 'proxy/mojo_proxy_resolver_v8_tracing_bindings.h',
sammc5403aa1d2015-02-25 04:59:21996 ],
997 'dependencies': [
998 'mojo_type_converters',
sammc5403aa1d2015-02-25 04:59:21999 'net_interfaces',
amistryb91865c2015-03-06 08:50:361000 'net_with_v8',
morrita9e8f56a2015-03-05 20:30:051001 '../mojo/mojo_base.gyp:mojo_url_type_converters',
rockotc637caf9b2016-02-10 09:57:081002 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
sammc5403aa1d2015-02-25 04:59:211003 ],
1004 },
1005 {
amistry7e6ebfdc82015-02-13 04:19:111006 # GN version: //net:mojo_type_converters
1007 'target_name': 'mojo_type_converters',
1008 'type': 'static_library',
1009 'sources': [
amistry7ec58112015-02-26 06:03:001010 'dns/mojo_host_type_converters.cc',
1011 'dns/mojo_host_type_converters.h',
1012 'proxy/mojo_proxy_type_converters.cc',
1013 'proxy/mojo_proxy_type_converters.h',
amistry7e6ebfdc82015-02-13 04:19:111014 ],
1015 'dependencies': [
1016 'net',
1017 'net_interfaces',
rockotc637caf9b2016-02-10 09:57:081018 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
amistry7e6ebfdc82015-02-13 04:19:111019 ],
1020 },
amistryaa16ad22015-02-04 09:01:471021 ],
1022 }],
[email protected]3f55cf82014-01-24 04:32:181023 ['OS != "ios" and OS != "android"', {
[email protected]10246a02012-07-30 15:15:011024 'targets': [
1025 # iOS doesn't have the concept of simple executables, these targets
1026 # can't be compiled on the platform.
1027 {
[email protected]eb6d2392012-08-02 11:28:231028 'target_name': 'crash_cache',
1029 'type': 'executable',
1030 'dependencies': [
1031 '../base/base.gyp:base',
1032 'net',
1033 'net_test_support',
1034 ],
1035 'sources': [
1036 'tools/crash_cache/crash_cache.cc',
1037 ],
[email protected]9dcec242013-01-10 23:24:281038 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1039 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:231040 },
1041 {
1042 'target_name': 'crl_set_dump',
1043 'type': 'executable',
1044 'dependencies': [
1045 '../base/base.gyp:base',
1046 'net',
1047 ],
1048 'sources': [
1049 'tools/crl_set_dump/crl_set_dump.cc',
1050 ],
[email protected]9dcec242013-01-10 23:24:281051 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1052 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:231053 },
1054 {
1055 'target_name': 'dns_fuzz_stub',
1056 'type': 'executable',
1057 'dependencies': [
1058 '../base/base.gyp:base',
1059 'net',
1060 ],
1061 'sources': [
1062 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
1063 ],
[email protected]9dcec242013-01-10 23:24:281064 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1065 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:231066 },
1067 {
[email protected]10246a02012-07-30 15:15:011068 'target_name': 'gdig',
1069 'type': 'executable',
1070 'dependencies': [
1071 '../base/base.gyp:base',
1072 'net',
1073 ],
1074 'sources': [
1075 'tools/gdig/file_net_log.cc',
1076 'tools/gdig/gdig.cc',
1077 ],
1078 },
1079 {
[email protected]cd31c7f2012-09-05 00:43:311080 'target_name': 'get_server_time',
1081 'type': 'executable',
1082 'dependencies': [
1083 '../base/base.gyp:base',
1084 '../base/base.gyp:base_i18n',
[email protected]002cc08f2013-06-03 05:40:291085 '../url/url.gyp:url_lib',
[email protected]cd31c7f2012-09-05 00:43:311086 'net',
1087 ],
1088 'sources': [
1089 'tools/get_server_time/get_server_time.cc',
1090 ],
[email protected]9dcec242013-01-10 23:24:281091 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1092 'msvs_disabled_warnings': [4267, ],
[email protected]cd31c7f2012-09-05 00:43:311093 },
1094 {
[email protected]19b4fa52014-05-05 22:03:151095 'target_name': 'hpack_example_generator',
1096 'type': 'executable',
1097 'dependencies': [
1098 '../base/base.gyp:base',
1099 'net',
1100 ],
1101 'sources': [
1102 'spdy/fuzzing/hpack_example_generator.cc',
1103 ],
1104 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1105 'msvs_disabled_warnings': [4267, ],
1106 },
1107 {
1108 'target_name': 'hpack_fuzz_mutator',
1109 'type': 'executable',
1110 'dependencies': [
1111 '../base/base.gyp:base',
1112 'net',
1113 ],
1114 'sources': [
1115 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1116 ],
1117 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1118 'msvs_disabled_warnings': [4267, ],
1119 },
1120 {
1121 'target_name': 'hpack_fuzz_wrapper',
1122 'type': 'executable',
1123 'dependencies': [
1124 '../base/base.gyp:base',
1125 'net',
1126 ],
1127 'sources': [
1128 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1129 ],
1130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1131 'msvs_disabled_warnings': [4267, ],
1132 },
1133 {
[email protected]10246a02012-07-30 15:15:011134 'target_name': 'net_watcher',
1135 'type': 'executable',
1136 'dependencies': [
[email protected]10246a02012-07-30 15:15:011137 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:231138 'net',
[email protected]ffd3eff2012-08-31 14:50:481139 'net_with_v8',
[email protected]10246a02012-07-30 15:15:011140 ],
[email protected]a6f8cb732012-11-19 19:22:151141 'conditions': [
1142 [ 'use_glib == 1', {
1143 'dependencies': [
1144 '../build/linux/system.gyp:gconf',
1145 '../build/linux/system.gyp:gio',
1146 ],
1147 },
1148 ],
1149 ],
[email protected]10246a02012-07-30 15:15:011150 'sources': [
1151 'tools/net_watcher/net_watcher.cc',
1152 ],
1153 },
1154 {
[email protected]eb6d2392012-08-02 11:28:231155 'target_name': 'run_testserver',
[email protected]10246a02012-07-30 15:15:011156 'type': 'executable',
1157 'dependencies': [
[email protected]10246a02012-07-30 15:15:011158 '../base/base.gyp:base',
[email protected]e4c029f2013-01-20 01:10:241159 '../base/base.gyp:test_support_base',
[email protected]eb6d2392012-08-02 11:28:231160 '../testing/gtest.gyp:gtest',
[email protected]eb6d2392012-08-02 11:28:231161 'net_test_support',
[email protected]10246a02012-07-30 15:15:011162 ],
1163 'sources': [
[email protected]eb6d2392012-08-02 11:28:231164 'tools/testserver/run_testserver.cc',
1165 ],
1166 },
1167 {
rch216445c2015-03-27 00:23:281168 'target_name': 'quic_client',
rcha9d12ce12015-03-19 23:06:491169 'type': 'executable',
1170 'dependencies': [
1171 '../base/base.gyp:base',
1172 '../url/url.gyp:url_lib',
1173 'net',
rch47ad01f2015-03-20 21:17:231174 'simple_quic_tools',
rcha9d12ce12015-03-19 23:06:491175 ],
1176 'sources': [
rcha9d12ce12015-03-19 23:06:491177 'tools/quic/quic_simple_client_bin.cc',
rcha9d12ce12015-03-19 23:06:491178 ],
1179 },
1180 {
rch216445c2015-03-27 00:23:281181 'target_name': 'quic_server',
1182 'type': 'executable',
1183 'dependencies': [
1184 '../base/base.gyp:base',
1185 'net',
rtennetib6f1c0d2015-04-03 17:52:061186 'net_quic_proto',
rch216445c2015-03-27 00:23:281187 'simple_quic_tools',
1188 ],
1189 'sources': [
1190 'tools/quic/quic_simple_server_bin.cc',
1191 ],
1192 },
1193 {
[email protected]eb6d2392012-08-02 11:28:231194 'target_name': 'stress_cache',
1195 'type': 'executable',
1196 'dependencies': [
1197 '../base/base.gyp:base',
1198 'net',
1199 'net_test_support',
1200 ],
1201 'sources': [
rvargase23fcf652015-03-04 19:59:221202 'tools/stress_cache/stress_cache.cc',
[email protected]10246a02012-07-30 15:15:011203 ],
[email protected]9dcec242013-01-10 23:24:281204 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1205 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011206 },
1207 {
1208 'target_name': 'tld_cleanup',
1209 'type': 'executable',
1210 'dependencies': [
1211 '../base/base.gyp:base',
1212 '../base/base.gyp:base_i18n',
[email protected]ed32c212013-05-14 20:49:291213 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]10246a02012-07-30 15:15:011214 ],
1215 'sources': [
1216 'tools/tld_cleanup/tld_cleanup.cc',
1217 ],
[email protected]9dcec242013-01-10 23:24:281218 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1219 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011220 },
[email protected]10246a02012-07-30 15:15:011221 ],
1222 }],
[email protected]10246a02012-07-30 15:15:011223 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]72322c52012-07-13 21:22:551224 'targets': [
1225 {
[email protected]6c7e6522013-09-29 15:27:441226 'target_name': 'epoll_server',
1227 'type': 'static_library',
1228 'dependencies': [
1229 '../base/base.gyp:base',
1230 'net',
1231 ],
1232 'sources': [
1233 'tools/epoll_server/epoll_server.cc',
1234 'tools/epoll_server/epoll_server.h',
1235 ],
1236 },
1237 {
1238 'target_name': 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511239 'type': 'static_library',
[email protected]72322c52012-07-13 21:22:551240 'cflags': [
1241 '-Wno-deprecated',
1242 ],
1243 'dependencies': [
1244 '../base/base.gyp:base',
[email protected]edfd0f42014-07-22 18:20:371245 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]6c7e6522013-09-29 15:27:441246 'balsa',
1247 'epoll_server',
[email protected]eb6d2392012-08-02 11:28:231248 'net',
[email protected]72322c52012-07-13 21:22:551249 ],
1250 'sources': [
[email protected]72322c52012-07-13 21:22:551251 'tools/flip_server/acceptor_thread.cc',
satoruxdd0840d32015-02-12 19:10:261252 'tools/flip_server/acceptor_thread.h',
1253 'tools/flip_server/constants.h',
[email protected]72322c52012-07-13 21:22:551254 'tools/flip_server/flip_config.cc',
1255 'tools/flip_server/flip_config.h',
[email protected]72322c52012-07-13 21:22:551256 'tools/flip_server/http_interface.cc',
1257 'tools/flip_server/http_interface.h',
[email protected]72322c52012-07-13 21:22:551258 'tools/flip_server/mem_cache.cc',
satoruxdd0840d32015-02-12 19:10:261259 'tools/flip_server/mem_cache.h',
[email protected]72322c52012-07-13 21:22:551260 'tools/flip_server/output_ordering.cc',
1261 'tools/flip_server/output_ordering.h',
1262 'tools/flip_server/ring_buffer.cc',
1263 'tools/flip_server/ring_buffer.h',
[email protected]72322c52012-07-13 21:22:551264 'tools/flip_server/sm_connection.cc',
1265 'tools/flip_server/sm_connection.h',
1266 'tools/flip_server/sm_interface.h',
[email protected]72322c52012-07-13 21:22:551267 'tools/flip_server/spdy_interface.cc',
1268 'tools/flip_server/spdy_interface.h',
satoruxdd0840d32015-02-12 19:10:261269 'tools/flip_server/spdy_ssl.cc',
1270 'tools/flip_server/spdy_ssl.h',
[email protected]72322c52012-07-13 21:22:551271 'tools/flip_server/spdy_util.cc',
1272 'tools/flip_server/spdy_util.h',
1273 'tools/flip_server/streamer_interface.cc',
1274 'tools/flip_server/streamer_interface.h',
tfarinafb3c78c2016-02-09 22:13:521275 'tools/flip_server/tcp_socket_util.cc',
1276 'tools/flip_server/tcp_socket_util.h',
rvargas145310f2015-08-14 18:09:041277 'tools/flip_server/url_to_filename_encoder.cc',
1278 'tools/flip_server/url_to_filename_encoder.h',
1279 'tools/flip_server/url_utilities.cc',
1280 'tools/flip_server/url_utilities.h',
[email protected]72322c52012-07-13 21:22:551281 ],
1282 },
[email protected]519e49882013-03-27 08:45:321283 {
[email protected]673ec5d2013-11-12 02:54:251284 'target_name': 'flip_in_mem_edsm_server_unittests',
1285 'type': 'executable',
1286 'dependencies': [
1287 '../testing/gtest.gyp:gtest',
1288 '../testing/gmock.gyp:gmock',
[email protected]edfd0f42014-07-22 18:20:371289 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]673ec5d2013-11-12 02:54:251290 'flip_in_mem_edsm_server_base',
1291 'net',
1292 'net_test_support',
1293 ],
1294 'sources': [
1295 'tools/flip_server/flip_test_utils.cc',
1296 'tools/flip_server/flip_test_utils.h',
1297 'tools/flip_server/http_interface_test.cc',
1298 'tools/flip_server/mem_cache_test.cc',
1299 'tools/flip_server/run_all_tests.cc',
1300 'tools/flip_server/spdy_interface_test.cc',
rvargas145310f2015-08-14 18:09:041301 'tools/flip_server/url_to_filename_encoder_unittest.cc',
1302 'tools/flip_server/url_utilities_unittest.cc',
[email protected]673ec5d2013-11-12 02:54:251303 ],
1304 },
1305 {
[email protected]29e052312013-08-06 05:44:511306 'target_name': 'flip_in_mem_edsm_server',
1307 'type': 'executable',
1308 'cflags': [
1309 '-Wno-deprecated',
1310 ],
1311 'dependencies': [
1312 '../base/base.gyp:base',
[email protected]6c7e6522013-09-29 15:27:441313 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511314 'net',
1315 ],
1316 'sources': [
1317 'tools/flip_server/flip_in_mem_edsm_server.cc',
1318 ],
1319 },
1320 {
rch216445c2015-03-27 00:23:281321 'target_name': 'epoll_quic_tools',
[email protected]519e49882013-03-27 08:45:321322 'type': 'static_library',
1323 'dependencies': [
1324 '../base/base.gyp:base',
1325 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]002cc08f2013-06-03 05:40:291326 '../url/url.gyp:url_lib',
[email protected]6c7e6522013-09-29 15:27:441327 'balsa',
1328 'epoll_server',
[email protected]519e49882013-03-27 08:45:321329 'net',
rtennetib6f1c0d2015-04-03 17:52:061330 'net_quic_proto',
[email protected]519e49882013-03-27 08:45:321331 ],
1332 'sources': [
[email protected]e45d68892013-03-30 17:50:101333 'tools/quic/quic_client.cc',
1334 'tools/quic/quic_client.h',
[email protected]cbd731e2013-10-24 00:20:391335 'tools/quic/quic_default_packet_writer.cc',
1336 'tools/quic/quic_default_packet_writer.h',
[email protected]519e49882013-03-27 08:45:321337 'tools/quic/quic_epoll_clock.cc',
1338 'tools/quic/quic_epoll_clock.h',
1339 'tools/quic/quic_epoll_connection_helper.cc',
1340 'tools/quic/quic_epoll_connection_helper.h',
rtennetifb3fa6c2015-03-16 23:04:551341 'tools/quic/quic_packet_reader.cc',
1342 'tools/quic/quic_packet_reader.h',
[email protected]9f0dcd4e2014-01-16 15:58:141343 'tools/quic/quic_packet_writer_wrapper.cc',
1344 'tools/quic/quic_packet_writer_wrapper.h',
[email protected]e45d68892013-03-30 17:50:101345 'tools/quic/quic_server.cc',
1346 'tools/quic/quic_server.h',
[email protected]519e49882013-03-27 08:45:321347 'tools/quic/quic_socket_utils.cc',
1348 'tools/quic/quic_socket_utils.h',
[email protected]519e49882013-03-27 08:45:321349 ],
1350 },
1351 {
rch216445c2015-03-27 00:23:281352 'target_name': 'epoll_quic_client',
[email protected]519e49882013-03-27 08:45:321353 'type': 'executable',
1354 'dependencies': [
1355 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321356 'net',
rch216445c2015-03-27 00:23:281357 'epoll_quic_tools',
rchda78df5a2015-03-22 05:16:371358 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321359 ],
1360 'sources': [
[email protected]519e49882013-03-27 08:45:321361 'tools/quic/quic_client_bin.cc',
[email protected]519e49882013-03-27 08:45:321362 ],
1363 },
1364 {
rch216445c2015-03-27 00:23:281365 'target_name': 'epoll_quic_server',
[email protected]519e49882013-03-27 08:45:321366 'type': 'executable',
1367 'dependencies': [
1368 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321369 'net',
rtennetib6f1c0d2015-04-03 17:52:061370 'net_quic_proto',
rch216445c2015-03-27 00:23:281371 'epoll_quic_tools',
rch0e945472015-03-26 15:19:211372 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321373 ],
1374 'sources': [
rch216445c2015-03-27 00:23:281375 'tools/quic/quic_server_bin.cc',
[email protected]519e49882013-03-27 08:45:321376 ],
[email protected]7499f22fe2014-04-30 21:58:501377 },
[email protected]72322c52012-07-13 21:22:551378 ]
1379 }],
[email protected]ad116b2e82012-04-20 03:24:071380 ['OS=="android"', {
1381 'targets': [
1382 {
1383 'target_name': 'net_jni_headers',
1384 'type': 'none',
[email protected]e46f66152012-07-19 20:02:551385 'sources': [
[email protected]23073f92014-01-17 22:52:171386 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
[email protected]03a07b2e2013-02-11 20:13:451387 'android/java/src/org/chromium/net/AndroidKeyStore.java',
[email protected]e46f66152012-07-19 20:02:551388 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
tbansal59a1ddc2015-09-14 17:35:011389 'android/java/src/org/chromium/net/AndroidTrafficStats.java',
[email protected]d72acb02012-12-15 22:19:441390 'android/java/src/org/chromium/net/GURLUtils.java',
aberentec894a52015-07-09 14:45:531391 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
mefdc8e94b2015-03-11 19:49:051392 'android/java/src/org/chromium/net/NetStringUtil.java',
[email protected]e46f66152012-07-19 20:02:551393 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1394 'android/java/src/org/chromium/net/ProxyChangeListener.java',
[email protected]18c360a2013-10-22 14:35:151395 'android/java/src/org/chromium/net/X509Util.java',
[email protected]e46f66152012-07-19 20:02:551396 ],
[email protected]ad116b2e82012-04-20 03:24:071397 'variables': {
[email protected]521cd942013-03-07 22:34:051398 'jni_gen_package': 'net',
[email protected]ad116b2e82012-04-20 03:24:071399 },
[email protected]03a07b2e2013-02-11 20:13:451400 'includes': [ '../build/jni_generator.gypi' ],
1401 },
1402 {
1403 'target_name': 'net_test_jni_headers',
1404 'type': 'none',
1405 'sources': [
1406 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
jbudorickccffb982015-12-22 01:21:351407 'test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java',
aberentec894a52015-07-09 14:45:531408 'test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java',
[email protected]03a07b2e2013-02-11 20:13:451409 ],
1410 'variables': {
jbudorickb7043d82015-06-27 01:43:031411 'jni_gen_package': 'net/test',
[email protected]03a07b2e2013-02-11 20:13:451412 },
[email protected]ad116b2e82012-04-20 03:24:071413 'includes': [ '../build/jni_generator.gypi' ],
1414 },
1415 {
1416 'target_name': 'net_java',
1417 'type': 'none',
1418 'variables': {
[email protected]ad116b2e82012-04-20 03:24:071419 'java_in_dir': '../net/android/java',
1420 },
1421 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471422 '../base/base.gyp:base',
[email protected]23073f92014-01-17 22:52:171423 'cert_verify_status_android_java',
[email protected]3b455502012-12-11 18:22:581424 'certificate_mime_types_java',
jkarlin0818d5252014-12-02 21:06:021425 'network_change_notifier_types_java',
pauljensenbe5bc3232015-10-05 20:39:271426 'network_change_notifier_android_types_java',
[email protected]71f4b272013-02-13 19:13:491427 'net_errors_java',
[email protected]03a07b2e2013-02-11 20:13:451428 'private_key_types_java',
tbansal59a1ddc2015-09-14 17:35:011429 'traffic_stats_error_java',
[email protected]ad116b2e82012-04-20 03:24:071430 ],
1431 'includes': [ '../build/java.gypi' ],
1432 },
[email protected]d29ba6c2012-08-15 23:10:181433 {
jbudorickccffb982015-12-22 01:21:351434 'target_name': 'embedded_test_server_aidl',
1435 'type': 'none',
1436 'variables': {
1437 'aidl_interface_file': '../net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerInterface.aidl',
1438 },
1439 'sources': [
1440 '../net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerImpl.aidl',
1441 ],
1442 'includes': [ '../build/java_aidl.gypi' ],
1443 },
1444 {
[email protected]f36fb172012-11-07 19:40:411445 'target_name': 'net_java_test_support',
1446 'type': 'none',
1447 'variables': {
[email protected]f36fb172012-11-07 19:40:411448 'java_in_dir': '../net/test/android/javatests',
aurimas088bb6b2015-10-01 00:56:201449 # TODO(jbudorick): remove chromium_code: 0 line once crbug.com/488192 is fixed.
1450 'chromium_code': 0,
[email protected]f36fb172012-11-07 19:40:411451 },
xunjielid26defc02015-05-07 16:48:141452 'dependencies': [
jbudorickccffb982015-12-22 01:21:351453 'embedded_test_server_aidl',
jbudorick0d414de12015-08-20 02:23:341454 'net_java',
xunjielid26defc02015-05-07 16:48:141455 'url_request_failed_job_java',
yfriedman05fc8302015-05-15 16:31:321456 '../base/base.gyp:base_java',
jbudorickccffb982015-12-22 01:21:351457 '../base/base.gyp:base_java_test_support',
jbudorick0d414de12015-08-20 02:23:341458 '../third_party/android_tools/android_tools.gyp:legacy_http_javalib',
xunjielid26defc02015-05-07 16:48:141459 ],
[email protected]f36fb172012-11-07 19:40:411460 'includes': [ '../build/java.gypi' ],
1461 },
1462 {
jbudorickccffb982015-12-22 01:21:351463 'target_name': 'libnet_java_test_support',
1464 'type': 'shared_library',
1465 'dependencies': [
1466 'net_test_support',
1467 '../base/base.gyp:base',
1468 ],
1469 'sources': [
1470 'test/android/net_test_entry_point.cc',
1471 'test/android/net_test_jni_onload.cc',
1472 'test/android/net_test_jni_onload.h',
1473 ],
1474 },
1475 {
1476 'target_name': 'net_test_support_apk',
1477 'type': 'none',
1478 'dependencies': [
1479 'net_java_test_support',
1480 ],
1481 'variables': {
1482 'android_manifest_path': 'test/android/javatests/AndroidManifest.xml',
1483 'apk_name': 'ChromiumNetTestSupport',
1484 'is_test_apk': 1,
1485 'java_in_dir': 'test/android/javatests',
1486 'java_in_dir_suffix': '/src_dummy',
1487 'native_lib_target': 'libnet_java_test_support',
jbudorick2082ffe2016-03-14 19:17:521488 'never_lint': 1,
jbudorickccffb982015-12-22 01:21:351489 },
1490 'includes': [
1491 '../build/java_apk.gypi',
1492 ],
1493 },
1494 {
1495 # Targets that need the net test support APK should depend on this
1496 # target. It ensures that the APK is built without passing the
1497 # classpath on to dependent targets.
1498 'target_name': 'require_net_test_support_apk',
1499 'type': 'none',
1500 'actions': [
1501 {
1502 'action_name': 'require_ChromiumNetTestSupport',
1503 'variables': {
1504 'required_file': '<(PRODUCT_DIR)/net_test_support_apk/ChromiumNetTestSupport.apk.required',
1505 },
1506 'inputs': [
1507 '<(PRODUCT_DIR)/apks/ChromiumNetTestSupport.apk',
1508 ],
1509 'outputs': [
1510 '<(required_file)',
1511 ],
1512 'action': [
1513 'python', '../build/android/gyp/touch.py', '<(required_file)',
1514 ],
1515 },
1516 ],
1517 },
1518 {
xunjielid26defc02015-05-07 16:48:141519 'target_name': 'url_request_failed_job_java',
1520 'type': 'none',
1521 'variables': {
1522 'source_file': 'test/url_request/url_request_failed_job.h',
1523 },
1524 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1525 },
1526 {
[email protected]d29ba6c2012-08-15 23:10:181527 'target_name': 'net_javatests',
1528 'type': 'none',
1529 'variables': {
[email protected]d29ba6c2012-08-15 23:10:181530 'java_in_dir': '../net/android/javatests',
1531 },
1532 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471533 '../base/base.gyp:base',
[email protected]d29ba6c2012-08-15 23:10:181534 '../base/base.gyp:base_java_test_support',
[email protected]bb6bd1f2012-09-10 15:52:471535 'net_java',
pauljensen373bed92015-10-23 13:18:421536 'net_java_test_support',
[email protected]d29ba6c2012-08-15 23:10:181537 ],
[email protected]d29ba6c2012-08-15 23:10:181538 'includes': [ '../build/java.gypi' ],
1539 },
[email protected]2fa30912012-09-10 19:22:501540 {
[email protected]2fa30912012-09-10 19:22:501541 'target_name': 'net_errors_java',
1542 'type': 'none',
[email protected]4d491712012-12-10 12:38:241543 'sources': [
[email protected]4d491712012-12-10 12:38:241544 'android/java/NetError.template',
[email protected]2fa30912012-09-10 19:22:501545 ],
[email protected]4d491712012-12-10 12:38:241546 'variables': {
[email protected]1b19c9a1e2013-03-02 16:39:081547 'package_name': 'org/chromium/net',
[email protected]2716d84e2013-01-19 04:05:481548 'template_deps': ['base/net_error_list.h'],
[email protected]4d491712012-12-10 12:38:241549 },
1550 'includes': [ '../build/android/java_cpp_template.gypi' ],
[email protected]3b455502012-12-11 18:22:581551 },
1552 {
1553 'target_name': 'certificate_mime_types_java',
1554 'type': 'none',
[email protected]3b455502012-12-11 18:22:581555 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391556 'source_file': 'base/mime_util.h',
[email protected]3b455502012-12-11 18:22:581557 },
mkosibaf6ebbf6b2014-09-30 14:42:391558 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]3b455502012-12-11 18:22:581559 },
[email protected]03a07b2e2013-02-11 20:13:451560 {
[email protected]23073f92014-01-17 22:52:171561 'target_name': 'cert_verify_status_android_java',
[email protected]71f4b272013-02-13 19:13:491562 'type': 'none',
[email protected]71f4b272013-02-13 19:13:491563 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391564 'source_file': 'android/cert_verify_result_android.h',
[email protected]71f4b272013-02-13 19:13:491565 },
mkosibaf6ebbf6b2014-09-30 14:42:391566 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]71f4b272013-02-13 19:13:491567 },
1568 {
jkarlin0818d5252014-12-02 21:06:021569 'target_name': 'network_change_notifier_types_java',
1570 'type': 'none',
1571 'variables': {
1572 'source_file': 'base/network_change_notifier.h',
1573 },
1574 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1575 },
1576 {
pauljensenbe5bc3232015-10-05 20:39:271577 'target_name': 'network_change_notifier_android_types_java',
1578 'type': 'none',
1579 'variables': {
1580 'source_file': 'android/network_change_notifier_android.cc',
1581 },
1582 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1583 },
1584 {
[email protected]03a07b2e2013-02-11 20:13:451585 'target_name': 'private_key_types_java',
1586 'type': 'none',
[email protected]03a07b2e2013-02-11 20:13:451587 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391588 'source_file': 'android/keystore.h',
[email protected]03a07b2e2013-02-11 20:13:451589 },
mkosibaf6ebbf6b2014-09-30 14:42:391590 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]03a07b2e2013-02-11 20:13:451591 },
[email protected]a44d1212012-05-25 20:17:491592 {
tbansal59a1ddc2015-09-14 17:35:011593 'target_name': 'traffic_stats_error_java',
1594 'type': 'none',
1595 'variables': {
1596 'source_file': 'android/traffic_stats.cc',
1597 },
1598 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1599 },
1600 {
[email protected]a44d1212012-05-25 20:17:491601 'target_name': 'net_unittests_apk',
1602 'type': 'none',
1603 'dependencies': [
[email protected]a44d1212012-05-25 20:17:491604 'net_java',
[email protected]03a07b2e2013-02-11 20:13:451605 'net_javatests',
aberentec894a52015-07-09 14:45:531606 'net_java_test_support',
[email protected]a44d1212012-05-25 20:17:491607 'net_unittests',
1608 ],
baixo5431a0dd2014-11-13 17:00:321609 'conditions': [
1610 ['v8_use_external_startup_data==1', {
1611 'dependencies': [
1612 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1613 ],
michaelbai0cd95d02015-10-30 02:16:571614 'variables': {
1615 'dest_path': '<(asset_location)',
michaelbai016306732015-11-03 19:48:001616 'renaming_sources': [
michaelbai0cd95d02015-10-30 02:16:571617 '<(PRODUCT_DIR)/natives_blob.bin',
1618 '<(PRODUCT_DIR)/snapshot_blob.bin',
1619 ],
michaelbai016306732015-11-03 19:48:001620 'renaming_destinations': [
1621 'natives_blob_<(arch_suffix).bin',
1622 'snapshot_blob_<(arch_suffix).bin',
1623 ],
michaelbai0cd95d02015-10-30 02:16:571624 'clear': 1,
1625 },
1626 'includes': ['../build/android/copy_ex.gypi'],
baixo5431a0dd2014-11-13 17:00:321627 }],
1628 ],
[email protected]a44d1212012-05-25 20:17:491629 'variables': {
1630 'test_suite_name': 'net_unittests',
mikecase56d80d72015-06-03 00:57:261631 'isolate_file': 'net_unittests.isolate',
aberentec894a52015-07-09 14:45:531632 'android_manifest_path': 'android/unittest_support/AndroidManifest.xml',
1633 'resource_dir': 'android/unittest_support/res',
agrieve3ac557f02016-04-12 15:52:001634 'shard_timeout': 300,
baixo3a3c88a2014-10-28 11:52:211635 'conditions': [
1636 ['v8_use_external_startup_data==1', {
baixo5431a0dd2014-11-13 17:00:321637 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
baixo3a3c88a2014-10-28 11:52:211638 'additional_input_paths': [
michaelbai016306732015-11-03 19:48:001639 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob_<(arch_suffix).bin',
1640 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob_<(arch_suffix).bin',
baixo5431a0dd2014-11-13 17:00:321641 ],
baixo3a3c88a2014-10-28 11:52:211642 }],
1643 ],
[email protected]a44d1212012-05-25 20:17:491644 },
michaelbai016306732015-11-03 19:48:001645 'includes': [
1646 '../build/apk_test.gypi',
1647 '../build/android/v8_external_startup_data_arch_suffix.gypi',
1648 ],
[email protected]a44d1212012-05-25 20:17:491649 },
aberentec894a52015-07-09 14:45:531650 {
1651 'target_name': 'net_junit_tests',
1652 'type': 'none',
1653 'dependencies': [
1654 'net_java',
1655 '../base/base.gyp:base',
1656 '../base/base.gyp:base_java_test_support',
jbudorickf091dcb2015-08-25 21:36:591657 '../base/base.gyp:base_junit_test_support',
aberentec894a52015-07-09 14:45:531658 '../testing/android/junit/junit_test.gyp:junit_test_support',
1659 ],
1660 'variables': {
1661 'main_class': 'org.chromium.testing.local.JunitTestMain',
1662 'src_paths': [
1663 'android/junit/',
1664 ],
mikecase713185d22016-02-16 17:43:411665 'test_type': 'junit',
mikecase4868bb072016-02-19 20:44:411666 'wrapper_script_name': 'helper/<(_target_name)',
aberentec894a52015-07-09 14:45:531667 },
1668 'includes': [
mikecase713185d22016-02-16 17:43:411669 '../build/android/test_runner.gypi',
aberentec894a52015-07-09 14:45:531670 '../build/host_jar.gypi',
1671 ],
1672 },
stipbf7e1482015-10-12 22:31:001673 ],
1674 'conditions': [
1675 ['test_isolation_mode != "noop"',
1676 {
1677 'targets': [
1678 {
1679 'target_name': 'net_unittests_apk_run',
1680 'type': 'none',
1681 'dependencies': [
1682 'net_unittests_apk',
1683 ],
1684 'includes': [
1685 '../build/isolate.gypi',
1686 ],
1687 'sources': [
1688 'net_unittests_apk.isolate',
1689 ],
1690 },
1691 ]
1692 }
1693 ],
[email protected]a44d1212012-05-25 20:17:491694 ],
1695 }],
[email protected]28af1232013-08-26 18:49:291696 ['OS == "android" or OS == "linux"', {
1697 'targets': [
1698 {
1699 'target_name': 'disk_cache_memory_test',
1700 'type': 'executable',
1701 'dependencies': [
1702 '../base/base.gyp:base',
1703 'net',
1704 ],
1705 'sources': [
1706 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1707 ],
1708 },
1709 ],
1710 }],
gabadie6222f262016-03-23 12:00:291711 ['OS == "linux"', {
1712 'targets': [
1713 {
gabadie64af64a2016-03-29 16:36:421714 'target_name': 'cachetool',
1715 'type': 'executable',
1716 'dependencies': [
1717 '../base/base.gyp:base',
1718 'net',
1719 'net_test_support',
1720 ],
1721 'sources': [
1722 'tools/cachetool/cachetool.cc',
1723 ],
1724 },
1725 {
gabadie6222f262016-03-23 12:00:291726 'target_name': 'content_decoder_tool',
1727 'type': 'executable',
1728 'dependencies': [
1729 '../base/base.gyp:base',
Hans Wennborgf369bd12016-03-25 00:46:271730 '../url/url.gyp:url_lib',
gabadie6222f262016-03-23 12:00:291731 'net',
1732 ],
1733 'sources': [
gabadie6222f262016-03-23 12:00:291734 'filter/mock_filter_context.cc',
gabadie64af64a2016-03-29 16:36:421735 'tools/content_decoder_tool/content_decoder_tool.cc',
gabadie6222f262016-03-23 12:00:291736 ],
1737 }
1738 ],
1739 }],
[email protected]d34eb412012-07-28 00:03:411740 ['test_isolation_mode != "noop"', {
1741 'targets': [
1742 {
1743 'target_name': 'net_unittests_run',
1744 'type': 'none',
1745 'dependencies': [
1746 'net_unittests',
1747 ],
1748 'includes': [
[email protected]cc902cb2013-07-12 00:54:491749 '../build/isolate.gypi',
[email protected]d34eb412012-07-28 00:03:411750 ],
[email protected]cc902cb2013-07-12 00:54:491751 'sources': [
1752 'net_unittests.isolate',
[email protected]d34eb412012-07-28 00:03:411753 ],
1754 },
1755 ],
1756 }],
[email protected]2f80c312009-02-25 21:26:551757 ],
1758}