blob: d19a464b1ff932009398d2c2b18b96764520f41b [file] [log] [blame]
[email protected]4625ade2014-04-15 19:26:441# Copyright (c) 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.
4
mefff34b822016-01-11 15:28:085import("//build/buildflag_header.gni")
slan77bdc2e62015-09-21 17:56:266import("//build/config/chromecast_build.gni")
brettw4cab0f12015-09-14 21:40:017import("//build/config/compiler/compiler.gni")
[email protected]4625ade2014-04-15 19:26:448import("//build/config/crypto.gni")
9import("//build/config/features.gni")
10import("//build/config/ui.gni")
sdefresneeb265862016-09-08 14:27:1211import("//net/features.gni")
eromane6264fd2016-03-02 22:46:3012import("//testing/libfuzzer/fuzzer_test.gni")
qsrfb5251d12015-01-21 15:57:2213import("//testing/test.gni")
rockot9c67e5f2015-03-12 20:01:2114import("//third_party/icu/config.gni")
rtennetib6f1c0d2015-04-03 17:52:0615import("//third_party/protobuf/proto_library.gni")
tfarinae597851a2015-10-06 23:14:4116import("//tools/grit/grit_rule.gni")
kapishnikovabe280e2016-04-14 19:07:1617import("//url/features.gni")
machenbachd65ec5c2016-07-22 09:05:2318import("//v8/gni/v8.gni")
[email protected]26046b52014-07-16 00:11:0319
[email protected]4625ade2014-04-15 19:26:4420if (is_android) {
21 import("//build/config/android/config.gni")
[email protected]ef0eb442014-05-15 09:32:1822 import("//build/config/android/rules.gni")
[email protected]4625ade2014-04-15 19:26:4423} else if (is_mac) {
24 import("//build/config/mac/mac_sdk.gni")
25}
26
27# The list of net files is kept in net.gypi. Read it.
scottmg34fb7e52014-12-03 23:27:2428gypi_values = exec_script("//build/gypi_to_gn.py",
29 [ rebase_path("net.gypi") ],
30 "scope",
31 [ "net.gypi" ])
[email protected]4625ade2014-04-15 19:26:4432
[email protected]4625ade2014-04-15 19:26:4433# The way the cache uses mmap() is inefficient on some Android devices. If
34# this flag is set, we hackily avoid using mmap() in the disk cache. We are
35# pretty confident that mmap-ing the index would not hurt any existing x86
36# android devices, but we cannot be so sure about the variety of ARM devices.
37# So enable it for x86 only for now.
dpranke43276212015-02-20 02:55:1938posix_avoid_mmap = is_android && current_cpu != "x86"
[email protected]4625ade2014-04-15 19:26:4439
[email protected]8a3f8242014-06-05 18:05:1240use_v8_in_net = !is_ios
[email protected]4625ade2014-04-15 19:26:4441enable_built_in_dns = !is_ios
42
[email protected]4625ade2014-04-15 19:26:4443config("net_config") {
44 defines = []
45 if (posix_avoid_mmap) {
46 defines += [ "POSIX_AVOID_MMAP" ]
47 }
[email protected]02494ec2014-05-07 15:05:2948 if (disable_file_support) {
49 defines += [ "DISABLE_FILE_SUPPORT" ]
50 }
tfarinae7c8c3c2015-11-04 15:09:5551 if (disable_ftp_support) {
52 defines += [ "DISABLE_FTP_SUPPORT=1" ]
53 }
mkwst0cb69fc2016-06-21 17:46:2454 if (enable_websockets) {
55 defines += [ "ENABLE_WEBSOCKETS" ]
56 }
[email protected]4625ade2014-04-15 19:26:4457}
58
xunjieli905496a2015-08-31 15:51:1759config("net_internal_config") {
[email protected]8603c5de2014-04-16 20:34:3160 defines = [
[email protected]8603c5de2014-04-16 20:34:3161 "DLOPEN_KERBEROS",
scottmg34fb7e52014-12-03 23:27:2462 "NET_IMPLEMENTATION",
[email protected]8603c5de2014-04-16 20:34:3163 ]
dpranke43276212015-02-20 02:55:1964
[email protected]4625ade2014-04-15 19:26:4465 if (use_kerberos) {
66 defines += [ "USE_KERBEROS" ]
67 if (is_android) {
xunjieli905496a2015-08-31 15:51:1768 include_dirs = [ "/usr/include/kerberosV" ]
[email protected]4625ade2014-04-15 19:26:4469 }
[email protected]4625ade2014-04-15 19:26:4470 }
71
72 if (enable_built_in_dns) {
73 defines += [ "ENABLE_BUILT_IN_DNS" ]
xunjieli905496a2015-08-31 15:51:1774 }
75}
76
kapishnikovabe280e2016-04-14 19:07:1677net_configs = [
xunjieli905496a2015-08-31 15:51:1778 ":net_internal_config",
79 "//build/config:precompiled_headers",
80
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82 "//build/config/compiler:no_size_t_to_int_warning",
rsesek99679aa2016-06-28 21:24:1783 "//build/config/compiler:wexit_time_destructors",
xunjieli905496a2015-08-31 15:51:1784]
85
kapishnikovabe280e2016-04-14 19:07:1686if (use_glib && use_gconf && !is_chromeos) {
agrieve95ba4442016-04-25 15:47:1387 net_configs += [ "//build/config/linux/gconf" ]
kapishnikovabe280e2016-04-14 19:07:1688}
xunjieli905496a2015-08-31 15:51:1789
kapishnikovabe280e2016-04-14 19:07:1690if (is_linux) {
91 net_configs += [ "//build/config/linux:libresolv" ]
xunjieli905496a2015-08-31 15:51:1792}
93
94component("net") {
kapishnikovabe280e2016-04-14 19:07:1695 sources = gypi_values.net_nacl_common_sources
96 net_unfiltered_sources = []
97
98 deps = [
99 ":net_resources",
100 "//base",
101 "//net/base/registry_controlled_domains",
102 "//third_party/protobuf:protobuf_lite",
103 "//url:url_features",
104 ]
105
106 public_deps = [
107 ":net_quic_proto",
108 "//crypto",
109 "//crypto:platform",
110 ]
111
112 if (!is_nacl) {
113 sources += gypi_values.net_non_nacl_sources
114
115 deps += [
116 "//base/third_party/dynamic_annotations",
117 "//components/prefs",
118 "//sdch",
119 "//third_party/zlib",
120 ]
121
122 if (!use_kerberos) {
123 sources -= [
124 "http/http_auth_handler_negotiate.cc",
125 "http/http_auth_handler_negotiate.h",
126 ]
127 }
128
129 if (is_posix) {
130 if (posix_avoid_mmap) {
131 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
132 } else {
133 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
134 }
135 }
136
137 if (!enable_built_in_dns) {
138 sources -= [
139 "dns/address_sorter_posix.cc",
140 "dns/address_sorter_posix.h",
141 "dns/dns_client.cc",
142 ]
143 }
144
kapishnikovabe280e2016-04-14 19:07:16145 if (!use_openssl_certs) {
146 sources -= [
147 "base/crypto_module_openssl.cc",
148 "base/keygen_handler_openssl.cc",
149 "base/openssl_private_key_store.h",
150 "base/openssl_private_key_store_memory.cc",
151 "cert/cert_database_openssl.cc",
152 "cert/cert_verify_proc_openssl.cc",
153 "cert/cert_verify_proc_openssl.h",
154 "cert/test_root_certs_openssl.cc",
155 "cert/x509_certificate_openssl.cc",
156 "ssl/openssl_client_key_store.cc",
157 "ssl/openssl_client_key_store.h",
158 ]
159 if (is_android) {
160 sources -= [ "base/openssl_private_key_store_android.cc" ]
161 }
162 } else {
163 if (is_android) {
164 # Android doesn't use these even when using OpenSSL.
165 sources -= [
166 "base/openssl_private_key_store_memory.cc",
167 "cert/cert_database_openssl.cc",
168 "cert/cert_verify_proc_openssl.cc",
169 "cert/test_root_certs_openssl.cc",
170 ]
171 }
172 }
173
174 if (!use_kerberos || is_android) {
175 sources -= [
176 "http/http_auth_gssapi_posix.cc",
177 "http/http_auth_gssapi_posix.h",
178 ]
179 }
180
mostynb75e8d632016-08-02 16:46:53181 if (use_gio) {
dsinclair8490e052016-05-04 15:33:33182 deps += [ "//build/linux/libgio" ]
kapishnikovabe280e2016-04-14 19:07:16183 }
184
185 if (!use_nss_certs) {
186 sources -= [
187 "base/crypto_module_nss.cc",
188 "base/keygen_handler_nss.cc",
189 "cert/cert_database_nss.cc",
mattm9c63d442016-09-03 00:45:51190 "cert/internal/trust_store_nss.cc",
191 "cert/internal/trust_store_nss.h",
kapishnikovabe280e2016-04-14 19:07:16192 "cert/nss_cert_database.cc",
193 "cert/nss_cert_database.h",
194 "cert/x509_certificate_nss.cc",
195 "ssl/client_cert_store_nss.cc",
196 "ssl/client_cert_store_nss.h",
197 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
198 "third_party/mozilla_security_manager/nsKeygenHandler.h",
199 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
200 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
201 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
202 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
203 ]
204 if (is_chromeos) {
205 # These were already removed on non-ChromeOS.
206 sources -= [
207 "cert/nss_cert_database_chromeos.cc",
208 "cert/nss_cert_database_chromeos.h",
209 "cert/nss_profile_filter_chromeos.cc",
210 "cert/nss_profile_filter_chromeos.h",
211 ]
212 }
213 sources -= [
214 "ssl/client_key_store.cc",
215 "ssl/client_key_store.h",
216 "ssl/ssl_platform_key_nss.cc",
217 ]
svaldez2135be52016-04-20 16:34:53218 } else {
davidben8d569f52016-07-29 16:03:18219 sources += [
220 "third_party/nss/ssl/cmpcert.cc",
221 "third_party/nss/ssl/cmpcert.h",
222 ]
kapishnikovabe280e2016-04-14 19:07:16223 }
224
svaldez2135be52016-04-20 16:34:53225 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16226 # These files are part of the partial implementation of NSS for
227 # cert verification, so keep them in that case.
228 sources -= [
229 "cert/cert_verify_proc_nss.cc",
230 "cert/cert_verify_proc_nss.h",
231 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53232 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16233 "cert_net/nss_ocsp.cc",
234 "cert_net/nss_ocsp.h",
235 ]
236 }
237
kapishnikovabe280e2016-04-14 19:07:16238 if (is_chromecast && use_nss_certs) {
239 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
240 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
241 }
242
243 if (!enable_mdns) {
244 sources -= [
245 "dns/mdns_cache.cc",
246 "dns/mdns_cache.h",
247 "dns/mdns_client.cc",
248 "dns/mdns_client.h",
249 "dns/mdns_client_impl.cc",
250 "dns/mdns_client_impl.h",
kapishnikovabe280e2016-04-14 19:07:16251 ]
252 }
253
254 if (is_win) {
255 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
256 } else { # !is_win
257 sources -= [
258 "base/winsock_init.cc",
259 "base/winsock_init.h",
260 "base/winsock_util.cc",
261 "base/winsock_util.h",
262 "proxy/proxy_resolver_winhttp.cc",
263 "proxy/proxy_resolver_winhttp.h",
264 ]
265 }
266
267 if (is_ios) {
268 # Add back some sources that were otherwise filtered out.
269 # iOS needs some Mac files.
270 net_unfiltered_sources += [
271 "base/mac/url_conversions.h",
272 "base/mac/url_conversions.mm",
273 "base/network_change_notifier_mac.cc",
274 "base/network_config_watcher_mac.cc",
275 "base/network_interfaces_mac.cc",
276 "base/network_interfaces_mac.h",
277 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53278 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16279 "proxy/proxy_resolver_mac.cc",
280 "proxy/proxy_server_mac.cc",
281 ]
282
283 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
284 }
285
kapishnikovabe280e2016-04-14 19:07:16286 if (is_ios || is_mac) {
287 sources += gypi_values.net_base_mac_ios_sources
288 }
289
290 if (is_android) {
291 deps += [ ":net_jni_headers" ]
292
293 # Add some Linux sources that were excluded by the filter, but which
294 # are needed.
295 net_unfiltered_sources += [
296 "base/address_tracker_linux.cc",
297 "base/address_tracker_linux.h",
298 "base/network_interfaces_linux.cc",
299 "base/network_interfaces_linux.h",
300 "base/platform_mime_util_linux.cc",
301 ]
302 }
303 } else {
304 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
305 }
xunjieli905496a2015-08-31 15:51:17306
307 # Add back some sources that were otherwise filtered out.
308 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16309 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17310 set_sources_assignment_filter(sources_assignment_filter)
311
312 cflags = []
kapishnikovabe280e2016-04-14 19:07:16313 configs += net_configs
xunjieli905496a2015-08-31 15:51:17314 public_configs = [ ":net_config" ]
315
kapishnikovabe280e2016-04-14 19:07:16316 public_deps += [ "//url" ]
[email protected]4625ade2014-04-15 19:26:44317
318 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44319 libs = [
rsesek02aa51c2016-05-11 02:13:57320 "CFNetwork.framework",
321 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19322 "Foundation.framework",
323 "Security.framework",
324 "SystemConfiguration.framework",
325 "resolv",
[email protected]4625ade2014-04-15 19:26:44326 ]
327 }
328
329 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44330 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19331 "CFNetwork.framework",
332 "MobileCoreServices.framework",
333 "Security.framework",
334 "SystemConfiguration.framework",
335 "resolv",
[email protected]4625ade2014-04-15 19:26:44336 ]
xunjieli06d93982015-08-27 17:13:02337 }
xunjieli4c8c6922015-08-27 16:02:40338
jam5332a632016-04-01 22:36:05339 if (is_win) {
340 libs = [
341 "crypt32.lib",
342 "dhcpcsvc.lib",
343 "iphlpapi.lib",
344 "rpcrt4.lib",
345 "secur32.lib",
346 "urlmon.lib",
347 "winhttp.lib",
348 ]
349 }
350
sergeyu99d83f92015-09-14 23:03:33351 if (!is_nacl) {
352 if (!disable_file_support) {
353 sources += gypi_values.net_file_support_sources
354 }
xunjieli06d93982015-08-27 17:13:02355
sergeyu99d83f92015-09-14 23:03:33356 if (!disable_ftp_support) {
357 sources += gypi_values.net_ftp_support_sources
358 }
xunjieli905496a2015-08-31 15:51:17359
sergeyu99d83f92015-09-14 23:03:33360 if (enable_websockets) {
361 sources += gypi_values.net_websockets_sources
362 }
xunjieli905496a2015-08-31 15:51:17363
sergeyu99d83f92015-09-14 23:03:33364 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16365 if (use_platform_icu_alternatives) {
366 if (is_android) {
367 # Use ICU alternative on Android.
torned8b7d9252016-08-04 19:41:45368 sources += [ "base/net_string_util_icu_alternatives_android.cc" ]
kapishnikovabe280e2016-04-14 19:07:16369 deps += [ ":net_jni_headers" ]
370 } else if (is_ios) {
371 # Use ICU alternative on iOS.
372 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
373 } else {
374 assert(false,
375 "ICU alternative is not implemented for platform: " + target_os)
376 }
377 } else {
378 # Use ICU.
379 deps += [
380 "//base:i18n",
381 "//third_party/icu",
382 ]
383 sources += [
384 "base/filename_util_icu.cc",
385 "base/net_string_util_icu.cc",
386 ]
387 }
eustasfbec9132015-12-30 14:56:51388
389 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16390 if (!disable_brotli_filter) {
391 sources += [ "filter/brotli_filter.cc" ]
392 deps += [ "//third_party/brotli" ]
393 } else {
394 sources += [ "filter/brotli_filter_disabled.cc" ]
395 }
[email protected]85191ed2014-05-15 00:41:49396 }
[email protected]4625ade2014-04-15 19:26:44397}
398
399grit("net_resources") {
400 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01401 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32402 outputs = [
403 "grit/net_resources.h",
404 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32405 ]
[email protected]4625ade2014-04-15 19:26:44406}
407
rtennetib6f1c0d2015-04-03 17:52:06408proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16409 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17410
rtennetib6f1c0d2015-04-03 17:52:06411 sources = [
rchd4db7c152016-07-29 21:58:12412 "quic/core/proto/cached_network_parameters.proto",
413 "quic/core/proto/source_address_token.proto",
rtennetib6f1c0d2015-04-03 17:52:06414 ]
415 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
416 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18417 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06418
419 defines = [ "NET_IMPLEMENTATION" ]
420
421 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
422}
423
Brett Wilson83fd4242014-09-02 19:45:33424static_library("extras") {
mef327a8e42014-08-29 17:10:03425 sources = gypi_values.net_extras_sources
426 configs += [ "//build/config/compiler:wexit_time_destructors" ]
427 deps = [
428 ":net",
brettwbc44c0a92015-02-20 22:30:39429 "//base",
mef327a8e42014-08-29 17:10:03430 "//sql:sql",
431 ]
432}
433
[email protected]8a3f8242014-06-05 18:05:12434static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44435 sources = [
436 "server/http_connection.cc",
437 "server/http_connection.h",
438 "server/http_server.cc",
439 "server/http_server.h",
440 "server/http_server_request_info.cc",
441 "server/http_server_request_info.h",
442 "server/http_server_response_info.cc",
443 "server/http_server_response_info.h",
444 "server/web_socket.cc",
445 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21446 "server/web_socket_encoder.cc",
447 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44448 ]
jambc6cc8e2014-11-14 17:56:29449 configs += [
brettwd1c719a2015-02-19 23:17:04450 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29451 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29452 ]
[email protected]4625ade2014-04-15 19:26:44453 deps = [
454 ":net",
455 "//base",
456 ]
457}
458
sdefresne3001f172016-03-16 10:30:03459if (!is_ios) {
460 executable("dump_cache") {
461 testonly = true
462 sources = [
463 "tools/dump_cache/dump_cache.cc",
464 "tools/dump_cache/dump_files.cc",
465 "tools/dump_cache/dump_files.h",
466 ]
[email protected]4625ade2014-04-15 19:26:44467
sdefresne3001f172016-03-16 10:30:03468 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
469 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31470
sdefresne3001f172016-03-16 10:30:03471 deps = [
472 ":net",
473 ":test_support",
474 "//base",
475 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07476 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03477 ]
478 }
[email protected]8603c5de2014-04-16 20:34:31479}
480
sdefresneb0a31642016-03-18 11:04:45481bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59482 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45483 testonly = true
sdefresne04f91142016-04-21 08:41:59484 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45485 outputs = [
486 "{{bundle_resources_dir}}/" +
487 "{{source_root_relative_dir}}/{{source_file_part}}",
488 ]
489}
490
brettw3871f522016-07-14 22:08:34491static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24492 testonly = true
[email protected]8603c5de2014-04-16 20:34:31493 sources = [
[email protected]8603c5de2014-04-16 20:34:31494 "base/load_timing_info_test_util.cc",
495 "base/load_timing_info_test_util.h",
496 "base/mock_file_stream.cc",
497 "base/mock_file_stream.h",
498 "base/test_completion_callback.cc",
499 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31500 "cert/mock_cert_verifier.cc",
501 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12502 "cert/mock_client_cert_verifier.cc",
503 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31504 "cookies/cookie_monster_store_test.cc",
505 "cookies/cookie_monster_store_test.h",
506 "cookies/cookie_store_test_callbacks.cc",
507 "cookies/cookie_store_test_callbacks.h",
508 "cookies/cookie_store_test_helpers.cc",
509 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56510 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31511 "disk_cache/disk_cache_test_base.cc",
512 "disk_cache/disk_cache_test_base.h",
513 "disk_cache/disk_cache_test_util.cc",
514 "disk_cache/disk_cache_test_util.h",
515 "dns/dns_test_util.cc",
516 "dns/dns_test_util.h",
517 "dns/mock_host_resolver.cc",
518 "dns/mock_host_resolver.h",
519 "dns/mock_mdns_socket_factory.cc",
520 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30521 "http/http_stream_factory_test_util.cc",
522 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12523 "http/http_transaction_test_util.cc",
524 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51525 "log/test_net_log.cc",
526 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46527 "log/test_net_log_entry.cc",
528 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59529 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46530 "log/test_net_log_util.h",
[email protected]8603c5de2014-04-16 20:34:31531 "proxy/mock_proxy_resolver.cc",
532 "proxy/mock_proxy_resolver.h",
533 "proxy/mock_proxy_script_fetcher.cc",
534 "proxy/mock_proxy_script_fetcher.h",
535 "proxy/proxy_config_service_common_unittest.cc",
536 "proxy/proxy_config_service_common_unittest.h",
537 "socket/socket_test_util.cc",
538 "socket/socket_test_util.h",
539 "test/cert_test_util.cc",
540 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07541 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23542 "test/channel_id_test_util.cc",
543 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31544 "test/ct_test_util.cc",
545 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45546 "test/embedded_test_server/default_handlers.cc",
547 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31548 "test/embedded_test_server/embedded_test_server.cc",
549 "test/embedded_test_server/embedded_test_server.h",
550 "test/embedded_test_server/http_connection.cc",
551 "test/embedded_test_server/http_connection.h",
552 "test/embedded_test_server/http_request.cc",
553 "test/embedded_test_server/http_request.h",
554 "test/embedded_test_server/http_response.cc",
555 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53556 "test/embedded_test_server/request_handler_util.cc",
557 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28558 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24559 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31560 "test/net_test_suite.cc",
561 "test/net_test_suite.h",
562 "test/python_utils.cc",
563 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24564 "test/scoped_disable_exit_on_dfatal.cc",
565 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36566 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43567 "test/test_data_directory.cc",
568 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43569 "test/url_request/ssl_certificate_error_job.cc",
570 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30571 "test/url_request/url_request_failed_job.cc",
572 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34573 "test/url_request/url_request_hanging_read_job.cc",
574 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40575 "test/url_request/url_request_mock_data_job.cc",
576 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44577 "test/url_request/url_request_slow_download_job.cc",
578 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31579 "url_request/test_url_fetcher_factory.cc",
580 "url_request/test_url_fetcher_factory.h",
581 "url_request/url_request_test_util.cc",
582 "url_request/url_request_test_util.h",
583 ]
sherouk3eee4a82015-09-01 10:42:33584 if (!is_ios) {
585 sources += [
586 "test/spawned_test_server/base_test_server.cc",
587 "test/spawned_test_server/base_test_server.h",
588 "test/spawned_test_server/local_test_server.cc",
589 "test/spawned_test_server/local_test_server.h",
590 "test/spawned_test_server/local_test_server_posix.cc",
591 "test/spawned_test_server/local_test_server_win.cc",
592 "test/spawned_test_server/spawned_test_server.h",
593 ]
594 }
[email protected]8603c5de2014-04-16 20:34:31595
brettwbc8b2a22015-07-28 18:24:42596 configs += [
597 "//build/config:precompiled_headers",
598
599 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
600 "//build/config/compiler:no_size_t_to_int_warning",
601 ]
[email protected]8603c5de2014-04-16 20:34:31602
Brett Wilsone53895272014-09-23 23:41:46603 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31604 "//base",
605 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12606 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23607 "//net",
[email protected]8603c5de2014-04-16 20:34:31608 "//net/tools/tld_cleanup",
609 "//testing/gmock",
610 "//testing/gtest",
611 "//url",
612 ]
613
rsesek7d4ab4bc2016-07-22 17:35:13614 deps = []
sdefresne04f91142016-04-21 08:41:59615
jbudorick944eb922016-06-20 15:38:30616 data = [
617 "data/",
618 ]
619
rsesek7d4ab4bc2016-07-22 17:35:13620 if (is_ios) {
621 deps += [ ":test_support_bundle_data" ]
622 } else {
jamb533b7e2015-03-04 17:12:05623 public_deps += [ "//third_party/protobuf:py_proto" ]
624 }
625
svaldez2135be52016-04-20 16:34:53626 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24627 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31628 }
629
sherouk3eee4a82015-09-01 10:42:33630 if (is_android) {
631 sources += [
[email protected]8603c5de2014-04-16 20:34:31632 "test/spawned_test_server/remote_test_server.cc",
633 "test/spawned_test_server/remote_test_server.h",
634 "test/spawned_test_server/spawner_communicator.cc",
635 "test/spawned_test_server/spawner_communicator.h",
636 ]
637 }
638
639 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46640 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31641 }
642
643 if (!enable_mdns) {
644 sources -= [
645 "dns/mock_mdns_socket_factory.cc",
646 "dns/mock_mdns_socket_factory.h",
647 ]
648 }
649
davidben15d69d482014-09-29 18:24:08650 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24651 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07652 }
xunjielia6888202015-04-14 21:34:25653
654 if (!disable_file_support) {
655 sources += [
656 "test/url_request/url_request_mock_http_job.cc",
657 "test/url_request/url_request_mock_http_job.h",
658 "url_request/test_url_request_interceptor.cc",
659 "url_request/test_url_request_interceptor.h",
660 ]
661 }
[email protected]8603c5de2014-04-16 20:34:31662}
663
[email protected]ceeaac792014-06-25 05:14:43664source_set("balsa") {
665 sources = [
666 "tools/balsa/balsa_enums.h",
667 "tools/balsa/balsa_frame.cc",
668 "tools/balsa/balsa_frame.h",
669 "tools/balsa/balsa_headers.cc",
670 "tools/balsa/balsa_headers.h",
671 "tools/balsa/balsa_headers_token_utils.cc",
672 "tools/balsa/balsa_headers_token_utils.h",
673 "tools/balsa/balsa_visitor_interface.h",
674 "tools/balsa/http_message_constants.cc",
675 "tools/balsa/http_message_constants.h",
676 "tools/balsa/noop_balsa_visitor.h",
677 "tools/balsa/simple_buffer.cc",
678 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43679 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09680 "tools/quic/spdy_balsa_utils.cc",
681 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43682 ]
683 deps = [
684 ":net",
685 "//base",
[email protected]22fe91d2014-08-12 17:07:12686 "//url",
[email protected]ceeaac792014-06-25 05:14:43687 ]
688}
689
[email protected]8603c5de2014-04-16 20:34:31690if (use_v8_in_net) {
691 component("net_with_v8") {
692 sources = [
693 "proxy/proxy_resolver_v8.cc",
694 "proxy/proxy_resolver_v8.h",
695 "proxy/proxy_resolver_v8_tracing.cc",
696 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47697 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
698 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31699 "proxy/proxy_service_v8.cc",
700 "proxy/proxy_service_v8.h",
701 ]
702
703 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11704
[email protected]8603c5de2014-04-16 20:34:31705 configs += [
brettwd1c719a2015-02-19 23:17:04706 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31707 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11708 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31709 ]
710
Brett Wilsone53895272014-09-23 23:41:46711 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31712 ":net",
Brett Wilsone53895272014-09-23 23:41:46713 ]
714 deps = [
[email protected]8603c5de2014-04-16 20:34:31715 "//base",
716 "//gin",
717 "//url",
718 "//v8",
719 ]
720 }
721}
722
amistry7e6ebfdc82015-02-13 04:19:11723if (use_v8_in_net && !is_android) {
724 source_set("net_browser_services") {
725 sources = [
726 "dns/mojo_host_resolver_impl.cc",
727 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01728 "proxy/in_process_mojo_proxy_resolver_factory.cc",
729 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17730 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35731 "proxy/proxy_resolver_factory_mojo.cc",
732 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01733 "proxy/proxy_service_mojo.cc",
734 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11735 ]
736
737 public_deps = [
738 ":mojo_type_converters",
tfarina8ac4d17f2015-12-16 02:11:11739 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39740 "//base",
amistry07ff1402015-03-10 07:34:07741 "//mojo/common",
rockot85dce0862015-11-13 01:33:59742 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11743 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01744
745 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
746 # this dependency since in_process_mojo_proxy_resolver_factory creates
747 # the utility process side Mojo services in the browser process.
748 # Ultimately, this will go away when we only support out-of-process.
749 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11750 ]
751 }
752
753 source_set("mojo_type_converters") {
754 sources = [
amistry7ec58112015-02-26 06:03:00755 "dns/mojo_host_type_converters.cc",
756 "dns/mojo_host_type_converters.h",
757 "proxy/mojo_proxy_type_converters.cc",
758 "proxy/mojo_proxy_type_converters.h",
amistry7e6ebfdc82015-02-13 04:19:11759 ]
760
761 public_deps = [
762 ":net",
tfarina8ac4d17f2015-12-16 02:11:11763 "//base",
rockot85dce0862015-11-13 01:33:59764 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11765 "//net/interfaces",
amistry7e6ebfdc82015-02-13 04:19:11766 ]
767 }
sammc5403aa1d2015-02-25 04:59:21768
769 source_set("net_utility_services") {
770 sources = [
sammc6ac3fe52015-02-25 06:00:28771 "dns/host_resolver_mojo.cc",
772 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24773 "proxy/mojo_proxy_resolver_factory_impl.cc",
774 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21775 "proxy/mojo_proxy_resolver_impl.cc",
776 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51777 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21778 ]
779
rockot9509ec82015-04-14 02:50:56780 deps = [
781 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11782 "//base",
rockot9509ec82015-04-14 02:50:56783 ]
784
sammc5403aa1d2015-02-25 04:59:21785 public_deps = [
786 ":mojo_type_converters",
787 ":net",
788 "//mojo/common",
rockot85dce0862015-11-13 01:33:59789 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21790 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21791 ]
792 }
amistry7e6ebfdc82015-02-13 04:19:11793}
794
[email protected]8603c5de2014-04-16 20:34:31795if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40796 executable("cert_verify_tool") {
797 testonly = true
798 sources = [
799 "tools/cert_verify_tool/cert_verify_tool.cc",
800 "tools/cert_verify_tool/cert_verify_tool_util.cc",
801 "tools/cert_verify_tool/cert_verify_tool_util.h",
802 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
803 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42804 "tools/cert_verify_tool/verify_using_path_builder.cc",
805 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40806 ]
807
808 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
809 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
810 deps = [
811 ":net",
812 ":test_support",
813 "//base",
814 "//build/config/sanitizers:deps",
815 "//build/win:default_exe_manifest",
816 ]
817 }
818
[email protected]8603c5de2014-04-16 20:34:31819 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24820 testonly = true
scottmg34fb7e52014-12-03 23:27:24821 sources = [
822 "tools/crash_cache/crash_cache.cc",
823 ]
dpranke43276212015-02-20 02:55:19824
brettwd1c719a2015-02-19 23:17:04825 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
826 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31827 deps = [
828 ":net",
[email protected]b2b2bf52014-05-28 20:26:57829 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31830 "//base",
brettwba7a73d2015-08-31 22:17:39831 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07832 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31833 ]
834 }
835
836 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24837 testonly = true
scottmg34fb7e52014-12-03 23:27:24838 sources = [
839 "tools/crl_set_dump/crl_set_dump.cc",
840 ]
dpranke43276212015-02-20 02:55:19841
brettwd1c719a2015-02-19 23:17:04842 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
843 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31844 deps = [
845 ":net",
846 "//base",
brettwba7a73d2015-08-31 22:17:39847 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07848 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31849 ]
850 }
851
852 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24853 testonly = true
scottmg34fb7e52014-12-03 23:27:24854 sources = [
855 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
856 ]
dpranke43276212015-02-20 02:55:19857
brettwd1c719a2015-02-19 23:17:04858 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
859 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31860 deps = [
861 ":net",
862 "//base",
brettwba7a73d2015-08-31 22:17:39863 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07864 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31865 ]
866 }
867
868 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24869 testonly = true
[email protected]8603c5de2014-04-16 20:34:31870 sources = [
871 "tools/gdig/file_net_log.cc",
872 "tools/gdig/gdig.cc",
873 ]
874 deps = [
875 ":net",
876 "//base",
brettwba7a73d2015-08-31 22:17:39877 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07878 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31879 ]
880 }
881
882 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24883 testonly = true
scottmg34fb7e52014-12-03 23:27:24884 sources = [
885 "tools/get_server_time/get_server_time.cc",
886 ]
dpranke43276212015-02-20 02:55:19887
brettwd1c719a2015-02-19 23:17:04888 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
889 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31890 deps = [
891 ":net",
892 "//base",
893 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39894 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07895 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31896 "//url",
897 ]
898 }
899
rockot9c67e5f2015-03-12 20:01:21900 executable("hpack_example_generator") {
901 testonly = true
902 sources = [
903 "spdy/fuzzing/hpack_example_generator.cc",
904 ]
905
906 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
907 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
908 deps = [
rockot9c67e5f2015-03-12 20:01:21909 ":net",
brettwba7a73d2015-08-31 22:17:39910 "//base",
911 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07912 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21913 ]
914 }
915
916 executable("hpack_fuzz_mutator") {
917 testonly = true
918 sources = [
919 "spdy/fuzzing/hpack_fuzz_mutator.cc",
920 ]
921
922 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
923 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
924 deps = [
rockot9c67e5f2015-03-12 20:01:21925 ":net",
brettwba7a73d2015-08-31 22:17:39926 "//base",
927 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07928 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21929 ]
930 }
931
932 executable("hpack_fuzz_wrapper") {
933 testonly = true
934 sources = [
935 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
936 ]
937
938 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
939 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
940 deps = [
rockot9c67e5f2015-03-12 20:01:21941 ":net",
brettwba7a73d2015-08-31 22:17:39942 "//base",
943 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07944 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21945 ]
946 }
947
[email protected]8603c5de2014-04-16 20:34:31948 if (use_v8_in_net) {
949 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24950 testonly = true
scottmg34fb7e52014-12-03 23:27:24951 sources = [
952 "tools/net_watcher/net_watcher.cc",
953 ]
[email protected]8603c5de2014-04-16 20:34:31954 deps = [
955 ":net",
956 ":net_with_v8",
957 "//base",
brettwba7a73d2015-08-31 22:17:39958 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07959 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31960 ]
[email protected]8603c5de2014-04-16 20:34:31961 }
962 }
963
964 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24965 testonly = true
scottmg34fb7e52014-12-03 23:27:24966 sources = [
967 "tools/testserver/run_testserver.cc",
968 ]
[email protected]8603c5de2014-04-16 20:34:31969 deps = [
[email protected]b2b2bf52014-05-28 20:26:57970 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31971 "//base",
972 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39973 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07974 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31975 "//testing/gtest",
976 ]
977 }
978
979 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24980 testonly = true
scottmg34fb7e52014-12-03 23:27:24981 sources = [
rvargase23fcf652015-03-04 19:59:22982 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:24983 ]
dpranke43276212015-02-20 02:55:19984
brettwd1c719a2015-02-19 23:17:04985 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
986 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31987 deps = [
988 ":net",
[email protected]b2b2bf52014-05-28 20:26:57989 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31990 "//base",
brettwba7a73d2015-08-31 22:17:39991 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07992 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31993 ]
994 }
995
996 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:24997 sources = [
998 "tools/tld_cleanup/tld_cleanup.cc",
999 ]
dpranke43276212015-02-20 02:55:191000
brettwd1c719a2015-02-19 23:17:041001 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1002 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311003 deps = [
1004 "//base",
1005 "//base:i18n",
brettwba7a73d2015-08-31 22:17:391006 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071007 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311008 "//net/tools/tld_cleanup",
1009 ]
1010 }
1011}
1012
gabadie0774bee2016-05-12 14:02:581013if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:421014 executable("cachetool") {
1015 testonly = true
1016 sources = [
1017 "tools/cachetool/cachetool.cc",
1018 ]
1019 deps = [
1020 ":net",
1021 ":test_support",
1022 "//base",
1023 ]
1024 }
1025
1026 executable("content_decoder_tool") {
1027 testonly = true
1028 sources = [
1029 "filter/mock_filter_context.cc",
1030 "filter/mock_filter_context.h",
1031 "tools/content_decoder_tool/content_decoder_tool.cc",
1032 ]
1033 deps = [
1034 ":net",
1035 ":test_support",
1036 "//base",
1037 "//url",
1038 ]
1039 }
gabadie0774bee2016-05-12 14:02:581040}
gabadie64af64a2016-03-29 16:36:421041
gabadie0774bee2016-05-12 14:02:581042if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121043 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311044 sources = [
1045 "tools/epoll_server/epoll_server.cc",
1046 "tools/epoll_server/epoll_server.h",
1047 ]
1048 deps = [
1049 ":net",
1050 "//base",
1051 ]
1052 }
1053
rch216445c2015-03-27 00:23:281054 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311055 sources = [
1056 "tools/quic/quic_client.cc",
1057 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311058 "tools/quic/quic_default_packet_writer.cc",
1059 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071060 "tools/quic/quic_epoll_alarm_factory.cc",
1061 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311062 "tools/quic/quic_epoll_clock.cc",
1063 "tools/quic/quic_epoll_clock.h",
1064 "tools/quic/quic_epoll_connection_helper.cc",
1065 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551066 "tools/quic/quic_packet_reader.cc",
1067 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311068 "tools/quic/quic_packet_writer_wrapper.cc",
1069 "tools/quic/quic_packet_writer_wrapper.h",
1070 "tools/quic/quic_server.cc",
1071 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311072 "tools/quic/quic_socket_utils.cc",
1073 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311074 ]
1075 deps = [
1076 ":balsa",
1077 ":epoll_server",
1078 ":net",
tfarina8ac4d17f2015-12-16 02:11:111079 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311080 "//base",
1081 "//base/third_party/dynamic_annotations",
1082 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371083 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311084 "//url",
1085 ]
1086 }
1087
rch216445c2015-03-27 00:23:281088 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241089 sources = [
1090 "tools/quic/quic_client_bin.cc",
1091 ]
[email protected]8603c5de2014-04-16 20:34:311092 deps = [
brettwbc44c0a92015-02-20 22:30:391093 ":balsa",
rch216445c2015-03-27 00:23:281094 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281095 ":epoll_server",
rch216445c2015-03-27 00:23:281096 ":net",
1097 ":simple_quic_tools",
1098 "//base",
brettwba7a73d2015-08-31 22:17:391099 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281100 "//third_party/boringssl",
1101 ]
1102 }
1103
1104 executable("epoll_quic_server") {
1105 sources = [
1106 "tools/quic/quic_server_bin.cc",
1107 ]
1108 deps = [
1109 ":balsa",
rch216445c2015-03-27 00:23:281110 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281111 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311112 ":net",
rchda78df5a2015-03-22 05:16:371113 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311114 "//base",
brettwba7a73d2015-08-31 22:17:391115 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371116 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311117 ]
1118 }
[email protected]8603c5de2014-04-16 20:34:311119}
1120
[email protected]ef0eb442014-05-15 09:32:181121if (is_android) {
1122 generate_jni("net_jni_headers") {
1123 sources = [
tbansalc04b7aa2016-07-02 06:54:371124 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181125 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1126 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1127 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011128 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181129 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531130 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171131 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181132 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1133 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1134 "android/java/src/org/chromium/net/X509Util.java",
1135 ]
1136 jni_package = "net"
1137 }
cjhopmandad5f4272014-09-05 01:00:551138 generate_jni("net_test_jni_headers") {
1139 sources = [
1140 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531141 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351142 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551143 ]
brettwcdccaf02015-07-27 16:27:091144 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551145 }
[email protected]ef0eb442014-05-15 09:32:181146}
[email protected]8603c5de2014-04-16 20:34:311147
1148if (is_android || is_linux) {
1149 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241150 testonly = true
scottmg34fb7e52014-12-03 23:27:241151 sources = [
1152 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1153 ]
[email protected]8603c5de2014-04-16 20:34:311154 deps = [
1155 ":net",
1156 "//base",
brettwba7a73d2015-08-31 22:17:391157 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311158 ]
1159 }
1160}
[email protected]8a3f8242014-06-05 18:05:121161
rch47ad01f2015-03-20 21:17:231162source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491163 sources = [
ckrasica7fd1242016-05-14 20:36:011164 "tools/quic/chlo_extractor.cc",
1165 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311166 "tools/quic/quic_client_base.cc",
1167 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051168 "tools/quic/quic_client_session.cc",
1169 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561170 "tools/quic/quic_dispatcher.cc",
1171 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211172 "tools/quic/quic_in_memory_cache.cc",
1173 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561174 "tools/quic/quic_per_connection_packet_writer.cc",
1175 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581176 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491177 "tools/quic/quic_simple_client.cc",
1178 "tools/quic/quic_simple_client.h",
alyssara473d6f2016-08-04 16:54:041179 "tools/quic/quic_simple_dispatcher.cc",
1180 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281181 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1182 "tools/quic/quic_simple_per_connection_packet_writer.h",
1183 "tools/quic/quic_simple_server.cc",
1184 "tools/quic/quic_simple_server.h",
1185 "tools/quic/quic_simple_server_packet_writer.cc",
1186 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391187 "tools/quic/quic_simple_server_session.cc",
1188 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311189 "tools/quic/quic_simple_server_session_helper.cc",
1190 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401191 "tools/quic/quic_simple_server_stream.cc",
1192 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051193 "tools/quic/quic_spdy_client_stream.cc",
1194 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211195 "tools/quic/quic_time_wait_list_manager.cc",
1196 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371197 "tools/quic/stateless_rejector.cc",
1198 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371199 "tools/quic/synchronous_host_resolver.cc",
1200 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491201 ]
1202 deps = [
tfarina8ac4d17f2015-12-16 02:11:111203 ":balsa",
rcha9d12ce12015-03-19 23:06:491204 ":net",
1205 "//base",
rch47ad01f2015-03-20 21:17:231206 "//base/third_party/dynamic_annotations",
1207 "//url",
1208 ]
1209}
1210
ricea7afa5232015-12-01 20:55:231211action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
1212 script = "//net/tools/dafsa/make_dafsa.py"
1213 sources = [
1214 "base/stale_while_revalidate_experiment_domains.gperf",
1215 ]
1216 outputs = [
1217 "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1218 ]
1219 args = [
1220 "{{source}}",
1221 rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1222 root_build_dir),
1223 ]
1224}
1225
1226source_set("stale_while_revalidate_experiment_domains") {
1227 sources = [
1228 "base/stale_while_revalidate_experiment_domains.cc",
1229 "base/stale_while_revalidate_experiment_domains.h",
1230 ]
1231 deps = [
1232 ":net",
1233 ":stale_while_revalidate_experiment_domains_dafsa",
1234 "//base",
1235 ]
kapishnikovabe280e2016-04-14 19:07:161236 configs += net_configs
ricea7afa5232015-12-01 20:55:231237}
1238
sherouk51b4b098b2015-08-10 09:00:431239if (!is_ios) {
1240 executable("quic_client") {
1241 sources = [
1242 "tools/quic/quic_simple_client_bin.cc",
1243 ]
1244 deps = [
1245 ":net",
1246 ":simple_quic_tools",
1247 "//base",
brettwba7a73d2015-08-31 22:17:391248 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071249 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431250 "//url",
1251 ]
1252 }
1253 executable("quic_server") {
1254 sources = [
1255 "tools/quic/quic_simple_server_bin.cc",
1256 ]
1257 deps = [
1258 ":net",
1259 ":simple_quic_tools",
1260 "//base",
brettwba7a73d2015-08-31 22:17:391261 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071262 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431263 "//third_party/boringssl",
1264 "//third_party/protobuf:protobuf_lite",
1265 ]
1266 }
rchf80f62d12016-05-11 00:47:311267 executable("quic_packet_printer") {
1268 sources = [
1269 "tools/quic/quic_packet_printer_bin.cc",
1270 ]
1271 deps = [
1272 ":net",
1273 ":simple_quic_tools",
1274 "//base",
1275 "//build/config/sanitizers:deps",
1276 "//build/win:default_exe_manifest",
1277 "//third_party/boringssl",
1278 "//third_party/protobuf:protobuf_lite",
1279 ]
1280 }
mpwbbea85d2016-08-27 14:39:211281 executable("quic_reject_reason_decoder") {
1282 sources = [
1283 "tools/quic/quic_reject_reason_decoder_bin.cc",
1284 ]
1285 deps = [
1286 ":net",
1287 ":simple_quic_tools",
1288 "//base",
1289 "//build/config/sanitizers:deps",
1290 "//build/win:default_exe_manifest",
1291 "//third_party/boringssl",
1292 "//third_party/protobuf:protobuf_lite",
1293 ]
1294 }
danzh1401f0a2016-05-19 13:41:101295 executable("crypto_message_printer") {
1296 sources = [
1297 "tools/quic/crypto_message_printer_bin.cc",
1298 ]
1299 deps = [
1300 ":net",
1301 "//base",
1302 "//build/config/sanitizers:deps",
1303 "//build/win:default_exe_manifest",
1304 ]
1305 }
rch216445c2015-03-27 00:23:281306}
1307
sdefresneb0a31642016-03-18 11:04:451308bundle_data("net_unittests_bundle_data") {
1309 testonly = true
sdefresne04f91142016-04-21 08:41:591310 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451311 outputs = [
1312 "{{bundle_resources_dir}}/" +
1313 "{{source_root_relative_dir}}/{{source_file_part}}",
1314 ]
1315}
1316
dpranke64df2832015-07-31 22:33:361317test("net_unittests") {
1318 sources = gypi_values.net_test_sources
1319
1320 configs += [
1321 "//build/config:precompiled_headers",
1322
1323 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1324 "//build/config/compiler:no_size_t_to_int_warning",
1325 ]
1326 defines = []
1327
1328 deps = [
1329 ":balsa",
1330 ":extras",
dpranke64df2832015-07-31 22:33:361331 ":net",
1332 ":simple_quic_tools",
ricea7afa5232015-12-01 20:55:231333 ":stale_while_revalidate_experiment_domains",
dpranke64df2832015-07-31 22:33:361334 ":test_support",
1335 "//base",
1336 "//base:i18n",
dpranke64df2832015-07-31 22:33:361337 "//base/third_party/dynamic_annotations",
1338 "//crypto",
1339 "//crypto:platform",
1340 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361341 "//net/base/registry_controlled_domains",
1342 "//sql",
1343 "//testing/gmock",
1344 "//testing/gtest",
1345 "//third_party/zlib",
1346 "//url",
kapishnikovabe280e2016-04-14 19:07:161347 "//url:url_features",
dpranke64df2832015-07-31 22:33:361348 ]
1349
jbudorick944eb922016-06-20 15:38:301350 data = []
svaldez2135be52016-04-20 16:34:531351 data_deps = [
1352 "third_party/nist-pkits/",
1353 ]
dpranke64df2832015-07-31 22:33:361354
1355 if (is_linux || is_mac || is_win) {
1356 deps += [
1357 "//third_party/pyftpdlib/",
1358 "//third_party/pywebsocket/",
1359 "//third_party/tlslite/",
1360 ]
mattm6586b432016-02-12 04:52:391361 data_deps += [
dpranke64df2832015-07-31 22:33:361362 "//third_party/pyftpdlib/",
1363 "//third_party/pywebsocket/",
1364 "//third_party/tlslite/",
1365 ]
1366 data += [
1367 "tools/testserver/",
1368 "//third_party/pyftpdlib/",
1369 "//third_party/pywebsocket/",
1370 "//third_party/tlslite/",
1371 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231372 ]
1373 }
1374
dpranke64df2832015-07-31 22:33:361375 if (is_desktop_linux) {
1376 deps += [ ":epoll_quic_tools" ]
1377 }
1378 if (is_linux) {
1379 sources += gypi_values.net_linux_test_sources
1380 deps += [
1381 ":epoll_quic_tools",
1382 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421383 ]
dpranke64df2832015-07-31 22:33:361384 }
[email protected]8a3f8242014-06-05 18:05:121385
dpranke64df2832015-07-31 22:33:361386 if (is_mac || is_ios) {
1387 sources += gypi_values.net_base_test_mac_ios_sources
1388 }
1389
1390 if (is_chromeos) {
1391 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1392 }
1393
1394 if (v8_use_external_startup_data) {
1395 deps += [ "//gin" ]
1396 }
1397
1398 if (!use_nss_certs) {
1399 sources -= [
mattm9c63d442016-09-03 00:45:511400 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361401 "cert/nss_cert_database_unittest.cc",
1402 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121403 ]
dpranke64df2832015-07-31 22:33:361404 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411405 sources -= [
dpranke64df2832015-07-31 22:33:361406 "cert/nss_cert_database_chromeos_unittest.cc",
1407 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411408 ]
brettw43ae0e12015-07-14 22:12:361409 }
[email protected]8a3f8242014-06-05 18:05:121410 }
dpranke64df2832015-07-31 22:33:361411
dpranke64df2832015-07-31 22:33:361412 if (use_kerberos) {
1413 defines += [ "USE_KERBEROS" ]
1414 }
1415
1416 # These are excluded on Android, because the actual Kerberos support, which
1417 # these test, is in a separate app on Android.
1418 if (!use_kerberos || is_android) {
1419 sources -= [
1420 "http/http_auth_gssapi_posix_unittest.cc",
1421 "http/mock_gssapi_library_posix.cc",
1422 "http/mock_gssapi_library_posix.h",
1423 ]
1424 }
1425 if (!use_kerberos) {
1426 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1427 }
1428
svaldez2135be52016-04-20 16:34:531429 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531430 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361431 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1432 }
1433
1434 if (!use_openssl_certs) {
1435 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1436 }
1437
jbudorick1273a842016-04-01 19:50:051438 if (enable_websockets) {
1439 sources += gypi_values.net_websockets_test_sources
1440 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361441 }
1442
1443 if (disable_file_support) {
1444 sources -= [
1445 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161446 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041447 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361448 "url_request/url_request_file_job_unittest.cc",
1449 ]
1450 }
1451
1452 if (disable_ftp_support) {
1453 sources -= [
1454 "ftp/ftp_auth_cache_unittest.cc",
1455 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1456 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361457 "ftp/ftp_directory_listing_parser_unittest.cc",
1458 "ftp/ftp_directory_listing_parser_unittest.h",
1459 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1460 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1461 "ftp/ftp_network_transaction_unittest.cc",
1462 "ftp/ftp_util_unittest.cc",
1463 "url_request/url_request_ftp_job_unittest.cc",
1464 ]
1465 }
1466
1467 if (!enable_built_in_dns) {
1468 sources -= [
1469 "dns/address_sorter_posix_unittest.cc",
1470 "dns/address_sorter_unittest.cc",
1471 ]
1472 }
1473
xunjieli905496a2015-08-31 15:51:171474 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361475 deps += [ ":net_with_v8" ]
1476 } else {
1477 sources -= [
1478 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1479 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1480 "proxy/proxy_resolver_v8_unittest.cc",
1481 ]
1482 }
1483
1484 if (use_v8_in_net && !is_android) {
1485 deps += [
1486 ":net_browser_services",
1487 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081488 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361489 ]
1490 } else {
1491 sources -= [
1492 "dns/host_resolver_mojo_unittest.cc",
1493 "dns/mojo_host_resolver_impl_unittest.cc",
1494 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1495 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1496 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1497 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1498 "proxy/proxy_service_mojo_unittest.cc",
1499 ]
1500 }
1501
1502 if (!enable_mdns) {
1503 sources -= [
1504 "dns/mdns_cache_unittest.cc",
1505 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361506 ]
1507 }
1508
1509 if (is_ios) {
dpranke64df2832015-07-31 22:33:361510 sources -= [
1511 # TODO(droger): The following tests are disabled because the
1512 # implementation is missing or incomplete.
1513 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1514 "base/keygen_handler_unittest.cc",
1515 "disk_cache/backend_unittest.cc",
1516 "disk_cache/blockfile/block_files_unittest.cc",
1517
1518 # Need to read input data files.
1519 "filter/gzip_filter_unittest.cc",
1520 "socket/ssl_server_socket_unittest.cc",
1521 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1522
1523 # Need TestServer.
1524 "cert_net/cert_net_fetcher_impl_unittest.cc",
1525 "proxy/proxy_script_fetcher_impl_unittest.cc",
1526 "socket/ssl_client_socket_unittest.cc",
1527 "url_request/url_fetcher_impl_unittest.cc",
1528 "url_request/url_request_context_builder_unittest.cc",
1529
1530 # Needs GetAppOutput().
1531 "test/python_utils_unittest.cc",
1532
1533 # The following tests are disabled because they don't apply to
1534 # iOS.
1535 # OS is not "linux" or "freebsd" or "openbsd".
1536 "socket/unix_domain_client_socket_posix_unittest.cc",
1537 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361538 ]
rsesek7d4ab4bc2016-07-22 17:35:131539
1540 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361541 }
1542
kapishnikovabe280e2016-04-14 19:07:161543 # Unit tests that aren't supported by the current ICU alternatives on Android.
1544 if (is_android && use_platform_icu_alternatives) {
1545 sources -= [
1546 "base/filename_util_unittest.cc",
1547 "base/url_util_unittest.cc",
1548 "cert/x509_certificate_unittest.cc",
1549 "proxy/proxy_resolver_v8_unittest.cc",
1550 "url_request/url_request_job_unittest.cc",
1551 ]
1552 }
1553
1554 # Unit tests that are not supported by the current ICU alternatives on iOS.
1555 if (is_ios && use_platform_icu_alternatives) {
1556 sources -= [
1557 "base/filename_util_unittest.cc",
1558 "base/url_util_unittest.cc",
1559 "cert/x509_certificate_unittest.cc",
1560 "http/http_auth_handler_basic_unittest.cc",
1561 "http/http_auth_handler_digest_unittest.cc",
1562 "http/http_auth_handler_factory_unittest.cc",
1563 "http/http_auth_unittest.cc",
1564 "http/http_content_disposition_unittest.cc",
1565 "http/http_network_transaction_unittest.cc",
1566 "http/http_proxy_client_socket_pool_unittest.cc",
1567 "socket/ssl_client_socket_pool_unittest.cc",
1568 "spdy/spdy_network_transaction_unittest.cc",
1569 "spdy/spdy_proxy_client_socket_unittest.cc",
1570 "url_request/url_request_job_unittest.cc",
1571 "url_request/url_request_unittest.cc",
1572 ]
1573 }
1574
1575 # Exclude brotli test if the support for brotli is disabled.
1576 # Also, exclude the test from iOS for now (needs to read input data files).
1577 if (disable_brotli_filter || is_ios) {
1578 sources -= [ "filter/brotli_filter_unittest.cc" ]
1579 }
1580
dpranke64df2832015-07-31 22:33:361581 if (is_android) {
agrieve732db3a2016-04-26 19:18:191582 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191583 deps += [
1584 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451585 "//base:base_java_unittest_support",
1586 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451587 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191588 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451589 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191590
1591 # TODO(mmenke): This depends on test_support_base, which depends on
1592 # icu. Figure out a way to remove that dependency.
1593 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071594 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451595 ]
1596 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361597 set_sources_assignment_filter([])
1598 sources += [ "base/address_tracker_linux_unittest.cc" ]
1599 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001600 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361601 }
1602
dpranke64df2832015-07-31 22:33:361603 # Symbols for crashes when running tests on swarming.
1604 if (symbol_level > 0) {
1605 if (is_win) {
1606 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1607 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131608 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1609 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361610 }
1611 }
maksim.sisovc69619d2016-05-20 19:23:551612
1613 if (is_win) {
mmenke91c17162016-06-02 16:03:231614 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551615 }
dpranke64df2832015-07-31 22:33:361616}
1617
1618# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031619if (!is_ios) {
1620 # TODO(crbug.com/594965): this should be converted to "app" template and
1621 # enabled on iOS too.
1622 executable("net_perftests") {
1623 testonly = true
1624 sources = [
1625 "base/mime_sniffer_perftest.cc",
1626 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051627 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031628 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1629 "proxy/proxy_resolver_perftest.cc",
1630 "udp/udp_socket_perftest.cc",
1631 ]
[email protected]8a3f8242014-06-05 18:05:121632
sdefresne3001f172016-03-16 10:30:031633 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1634 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1635 deps = [
1636 ":extras",
1637 ":net",
1638 ":test_support",
1639 "//base",
1640 "//base:i18n",
1641 "//base/test:test_support_perf",
1642 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071643 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031644 "//testing/gtest",
1645 "//url",
1646 ]
rockot9c67e5f2015-03-12 20:01:211647
sdefresne3001f172016-03-16 10:30:031648 if (enable_websockets) {
1649 sources += [ "websockets/websocket_frame_perftest.cc" ]
1650 }
rockot9c67e5f2015-03-12 20:01:211651
sdefresne3001f172016-03-16 10:30:031652 if (use_v8_in_net) {
1653 deps += [ ":net_with_v8" ]
1654 } else {
1655 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1656 }
rockot9c67e5f2015-03-12 20:01:211657 }
rockot9c67e5f2015-03-12 20:01:211658}
mefff34b822016-01-11 15:28:081659
eromanfe8659e2016-03-02 23:47:021660# Fuzzers
1661
mmenke35a30012016-07-15 19:20:121662# This has a global (InitGlobals) that must always be linked in, so
1663# must be a source set instead of a static library.
1664source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161665 testonly = true
1666
1667 sources = [
csharrison37ef9852016-08-23 19:00:191668 "base/fuzzer_test_support.cc",
mmenke99b57172016-04-14 20:44:331669 "socket/fuzzed_socket.cc",
1670 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221671 "socket/fuzzed_socket_factory.cc",
1672 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231673 "udp/fuzzed_datagram_client_socket.cc",
1674 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161675 ]
csharrisonf30fc95f2016-08-19 21:43:441676 public_deps = [
1677 "//base/test:test_support",
1678 ]
eroman02b4fe562016-03-04 12:15:161679 deps = [
1680 "//base",
1681 "//base:i18n",
mmenke99b57172016-04-14 20:44:331682 "//net",
eroman02b4fe562016-03-04 12:15:161683 ]
1684}
1685
csharrisonaa314dc2016-04-29 20:15:371686fuzzer_test("net_data_job_fuzzer") {
1687 sources = [
1688 "url_request/url_request_data_job_fuzzer.cc",
1689 ]
1690 deps = [
1691 ":net_fuzzer_test_support",
1692 ":test_support",
1693 "//base",
1694 "//net",
1695 ]
1696}
1697
mmenke5552a6a2016-03-28 23:11:591698fuzzer_test("net_mime_sniffer_fuzzer") {
1699 sources = [
1700 "base/mime_sniffer_fuzzer.cc",
1701 ]
1702 deps = [
1703 ":net_fuzzer_test_support",
1704 "//base",
1705 "//net",
1706 ]
mmoroz4a561d32016-07-07 17:45:121707 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591708}
1709
mmoroz565e8df22016-03-04 18:17:201710fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301711 sources = [
1712 "proxy/parse_proxy_list_pac_fuzzer.cc",
1713 ]
1714 deps = [
eroman02b4fe562016-03-04 12:15:161715 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301716 "//net",
1717 ]
1718}
1719
mmoroz565e8df22016-03-04 18:17:201720fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301721 sources = [
1722 "proxy/parse_proxy_list_fuzzer.cc",
1723 ]
1724 deps = [
eroman02b4fe562016-03-04 12:15:161725 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301726 "//net",
1727 ]
1728}
1729
mmoroz565e8df22016-03-04 18:17:201730fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301731 sources = [
1732 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1733 ]
1734 deps = [
eroman02b4fe562016-03-04 12:15:161735 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301736 "//net",
1737 ]
1738}
1739
mmoroz565e8df22016-03-04 18:17:201740fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301741 sources = [
1742 "proxy/parse_proxy_rules_fuzzer.cc",
1743 ]
1744 deps = [
eroman02b4fe562016-03-04 12:15:161745 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301746 "//net",
1747 ]
metzman31db75e2016-08-03 22:33:271748 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301749}
1750
mmoroz565e8df22016-03-04 18:17:201751fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301752 sources = [
1753 "base/parse_data_url_fuzzer.cc",
1754 ]
1755 deps = [
eroman02b4fe562016-03-04 12:15:161756 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301757 "//base",
1758 "//net",
1759 ]
mmoroz4a561d32016-07-07 17:45:121760 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301761}
1762
mmoroz565e8df22016-03-04 18:17:201763fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301764 sources = [
1765 "base/parse_ip_pattern_fuzzer.cc",
1766 ]
1767 deps = [
eroman02b4fe562016-03-04 12:15:161768 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301769 "//net",
1770 ]
1771}
1772
mmoroz565e8df22016-03-04 18:17:201773fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301774 sources = [
1775 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1776 ]
1777 deps = [
eroman02b4fe562016-03-04 12:15:161778 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301779 "//base",
eromane6264fd2016-03-02 22:46:301780 "//net",
1781 ]
mmoroz4a561d32016-07-07 17:45:121782 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301783}
1784
mattmafe43b82016-04-28 20:40:541785fuzzer_test("net_cert_verify_name_match_fuzzer") {
1786 sources = [
1787 "cert/internal/verify_name_match_fuzzer.cc",
1788 ]
1789 deps = [
1790 ":net_fuzzer_test_support",
1791 "//base",
1792 "//net",
1793 ]
1794}
1795
mattm2c637da42016-04-28 02:55:591796fuzzer_test("net_cert_normalize_name_fuzzer") {
1797 sources = [
1798 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1799 ]
1800 deps = [
1801 "//base",
1802 "//net",
1803 ]
1804}
1805
mattmafe43b82016-04-28 20:40:541806fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1807 sources = [
1808 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1809 ]
1810 deps = [
1811 ":net_fuzzer_test_support",
1812 "//base",
1813 "//net",
1814 ]
1815}
1816
nharper85d3b6f2016-04-28 20:58:191817fuzzer_test("net_cert_parse_certificate_fuzzer") {
1818 sources = [
1819 "cert/internal/parse_certificate_fuzzer.cc",
1820 ]
1821 deps = [
1822 "//base",
1823 "//net",
1824 ]
1825}
1826
mmoroz565e8df22016-03-04 18:17:201827fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301828 sources = [
1829 "cookies/parse_cookie_line_fuzzer.cc",
1830 ]
1831 deps = [
eroman02b4fe562016-03-04 12:15:161832 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301833 "//net",
1834 ]
1835}
1836
mmoroz565e8df22016-03-04 18:17:201837fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021838 sources = [
1839 "dns/dns_record_fuzzer.cc",
1840 ]
1841 deps = [
eroman02b4fe562016-03-04 12:15:161842 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021843 "//base",
1844 "//net",
1845 ]
mmoroz4a561d32016-07-07 17:45:121846 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021847}
1848
zhongyi273af9f2016-04-28 18:46:341849fuzzer_test("net_dns_hosts_parse_fuzzer") {
1850 sources = [
1851 "dns/dns_hosts_parse_fuzzer.cc",
1852 ]
1853 deps = [
1854 ":net_fuzzer_test_support",
1855 "//base",
1856 "//net",
1857 ]
mmoroz4a561d32016-07-07 17:45:121858 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341859}
1860
mmenke91c17162016-06-02 16:03:231861fuzzer_test("net_host_resolver_impl_fuzzer") {
1862 sources = [
1863 "dns/fuzzed_host_resolver.cc",
1864 "dns/fuzzed_host_resolver.h",
1865 "dns/host_resolver_impl_fuzzer.cc",
1866 ]
1867 deps = [
1868 ":net_fuzzer_test_support",
1869 ":test_support",
1870 "//base",
1871 "//net",
1872 ]
mmoroz4a561d32016-07-07 17:45:121873 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231874}
1875
mmenke44e8e9c2016-03-29 18:38:571876fuzzer_test("net_http_stream_parser_fuzzer") {
1877 sources = [
1878 "http/http_stream_parser_fuzzer.cc",
1879 ]
1880 deps = [
1881 ":net_fuzzer_test_support",
1882 ":test_support",
1883 "//base",
1884 "//net",
1885 ]
mmoroz4a561d32016-07-07 17:45:121886 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571887}
1888
mmoroz565e8df22016-03-04 18:17:201889fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021890 sources = [
1891 "ftp/ftp_ctrl_response_fuzzer.cc",
1892 ]
1893 deps = [
eroman02b4fe562016-03-04 12:15:161894 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021895 "//base",
1896 "//net",
1897 ]
1898}
1899
mmoroz565e8df22016-03-04 18:17:201900fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021901 sources = [
1902 "ftp/ftp_directory_listing_fuzzer.cc",
1903 ]
1904 deps = [
eroman02b4fe562016-03-04 12:15:161905 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021906 "//base",
eromanfe8659e2016-03-02 23:47:021907 "//net",
1908 ]
1909}
1910
mmoroz565e8df22016-03-04 18:17:201911fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021912 sources = [
1913 "base/unescape_url_component_fuzzer.cc",
1914 ]
1915 deps = [
eroman02b4fe562016-03-04 12:15:161916 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021917 "//base",
1918 "//net",
1919 ]
mmoroz34eb0082016-03-11 14:32:011920 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331921 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021922}
1923
ricea7b870e72016-09-01 04:41:041924fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1925 sources = [
1926 "websockets/websocket_deflate_stream_fuzzer.cc",
1927 ]
1928 deps = [
1929 ":net_fuzzer_test_support",
1930 "//net",
1931 ]
1932 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1933 libfuzzer_options = [ "max_len=512" ]
1934}
1935
mmoroz565e8df22016-03-04 18:17:201936fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021937 sources = [
1938 "websockets/websocket_frame_parser_fuzzer.cc",
1939 ]
1940 deps = [
eroman02b4fe562016-03-04 12:15:161941 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021942 "//net",
1943 ]
mmoroz4a561d32016-07-07 17:45:121944 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071945 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021946}
1947
mmoroz565e8df22016-03-04 18:17:201948fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021949 sources = [
1950 "http/http_chunked_decoder_fuzzer.cc",
1951 ]
1952 deps = [
eroman02b4fe562016-03-04 12:15:161953 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021954 "//net",
1955 ]
1956}
1957
mmenke8e9314bc2016-04-15 21:45:021958fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1959 sources = [
1960 "http/http_proxy_client_socket_fuzzer.cc",
1961 ]
1962 deps = [
1963 ":net_fuzzer_test_support",
1964 ":test_support",
1965 "//base",
1966 "//net",
1967 ]
mmoroz4a561d32016-07-07 17:45:121968 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021969}
1970
mmoroz9299ef9b2016-09-01 17:37:091971fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1972 sources = [
1973 "base/parse_url_hostname_to_address_fuzzer.cc",
1974 ]
1975 deps = [
1976 ":net_fuzzer_test_support",
1977 "//base",
1978 "//net",
1979 ]
1980 libfuzzer_options = [ "max_len=512" ]
1981 seed_corpus = "data/fuzzer_data/hostnames/"
1982}
1983
mmoroz565e8df22016-03-04 18:17:201984fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021985 sources = [
rchd4db7c152016-07-29 21:58:121986 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021987 ]
1988 deps = [
eroman02b4fe562016-03-04 12:15:161989 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021990 "//base",
1991 "//net",
1992 ]
1993}
mmenke99b57172016-04-14 20:44:331994
1995fuzzer_test("net_socks_client_socket_fuzzer") {
1996 sources = [
1997 "socket/socks_client_socket_fuzzer.cc",
1998 ]
1999 deps = [
2000 ":net_fuzzer_test_support",
2001 ":test_support",
2002 "//base",
2003 "//net",
2004 ]
2005}
2006
2007fuzzer_test("net_socks5_client_socket_fuzzer") {
2008 sources = [
2009 "socket/socks5_client_socket_fuzzer.cc",
2010 ]
2011 deps = [
2012 ":net_fuzzer_test_support",
2013 ":test_support",
2014 "//base",
2015 "//net",
2016 ]
2017}
mmenkec951d412016-04-28 19:05:222018
2019fuzzer_test("net_url_request_fuzzer") {
2020 sources = [
2021 "url_request/url_request_fuzzer.cc",
2022 ]
2023 deps = [
2024 ":net_fuzzer_test_support",
2025 ":test_support",
2026 "//base",
2027 "//net",
2028 ]
mmoroz4a561d32016-07-07 17:45:122029 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222030}
csharrison88d2a612016-09-09 16:58:542031
2032fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
2033 sources = [
2034 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2035 ]
2036 deps = [
2037 ":net_fuzzer_test_support",
2038 ":test_support",
2039 "//base",
2040 "//net",
2041 ]
2042}