blob: b17c8ad9e5e8b6a69070a60a17464707549febc3 [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")
dpranked4da5ab42015-10-13 06:20:3311import("//build_overrides/v8.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")
[email protected]26046b52014-07-16 00:11:0318
[email protected]4625ade2014-04-15 19:26:4419if (is_android) {
20 import("//build/config/android/config.gni")
[email protected]ef0eb442014-05-15 09:32:1821 import("//build/config/android/rules.gni")
[email protected]4625ade2014-04-15 19:26:4422} else if (is_mac) {
23 import("//build/config/mac/mac_sdk.gni")
24}
25
26# The list of net files is kept in net.gypi. Read it.
scottmg34fb7e52014-12-03 23:27:2427gypi_values = exec_script("//build/gypi_to_gn.py",
28 [ rebase_path("net.gypi") ],
29 "scope",
30 [ "net.gypi" ])
[email protected]4625ade2014-04-15 19:26:4431
[email protected]4625ade2014-04-15 19:26:4432# The way the cache uses mmap() is inefficient on some Android devices. If
33# this flag is set, we hackily avoid using mmap() in the disk cache. We are
34# pretty confident that mmap-ing the index would not hurt any existing x86
35# android devices, but we cannot be so sure about the variety of ARM devices.
36# So enable it for x86 only for now.
dpranke43276212015-02-20 02:55:1937posix_avoid_mmap = is_android && current_cpu != "x86"
[email protected]4625ade2014-04-15 19:26:4438
[email protected]8a3f8242014-06-05 18:05:1239use_v8_in_net = !is_ios
[email protected]4625ade2014-04-15 19:26:4440enable_built_in_dns = !is_ios
41
[email protected]384dab92014-06-04 20:26:0842declare_args() {
43 # Disables support for file URLs. File URL support requires use of icu.
44 disable_file_support = false
mefff34b822016-01-11 15:28:0845
agrieve56240df2015-12-22 22:20:2146 # WebSockets and socket stream code are not used on iOS and are optional in
47 # cronet.
48 enable_websockets = !is_ios
antz1110ea9ac2016-07-07 00:25:5749 disable_ftp_support = is_ios || is_chromecast
skyostil2df951b2016-04-01 11:33:4350
51 # Enable Kerberos authentication. It is disabled by default on ChromeOS, iOS,
52 # Chromecast, at least for now. This feature needs configuration (krb5.conf
53 # and so on).
54 use_kerberos = !is_chromeos && !is_ios && !is_chromecast
kapishnikovabe280e2016-04-14 19:07:1655
56 # Do not disable brotli filter by default.
57 disable_brotli_filter = false
[email protected]384dab92014-06-04 20:26:0858}
[email protected]02494ec2014-05-07 15:05:2959
[email protected]4625ade2014-04-15 19:26:4460config("net_config") {
61 defines = []
62 if (posix_avoid_mmap) {
63 defines += [ "POSIX_AVOID_MMAP" ]
64 }
[email protected]02494ec2014-05-07 15:05:2965 if (disable_file_support) {
66 defines += [ "DISABLE_FILE_SUPPORT" ]
67 }
tfarinae7c8c3c2015-11-04 15:09:5568 if (disable_ftp_support) {
69 defines += [ "DISABLE_FTP_SUPPORT=1" ]
70 }
mkwst0cb69fc2016-06-21 17:46:2471 if (enable_websockets) {
72 defines += [ "ENABLE_WEBSOCKETS" ]
73 }
[email protected]4625ade2014-04-15 19:26:4474}
75
xunjieli905496a2015-08-31 15:51:1776config("net_internal_config") {
[email protected]8603c5de2014-04-16 20:34:3177 defines = [
[email protected]8603c5de2014-04-16 20:34:3178 "DLOPEN_KERBEROS",
scottmg34fb7e52014-12-03 23:27:2479 "NET_IMPLEMENTATION",
[email protected]8603c5de2014-04-16 20:34:3180 ]
dpranke43276212015-02-20 02:55:1981
[email protected]4625ade2014-04-15 19:26:4482 if (use_kerberos) {
83 defines += [ "USE_KERBEROS" ]
84 if (is_android) {
xunjieli905496a2015-08-31 15:51:1785 include_dirs = [ "/usr/include/kerberosV" ]
[email protected]4625ade2014-04-15 19:26:4486 }
[email protected]4625ade2014-04-15 19:26:4487 }
88
89 if (enable_built_in_dns) {
90 defines += [ "ENABLE_BUILT_IN_DNS" ]
xunjieli905496a2015-08-31 15:51:1791 }
92}
93
kapishnikovabe280e2016-04-14 19:07:1694net_configs = [
xunjieli905496a2015-08-31 15:51:1795 ":net_internal_config",
96 "//build/config:precompiled_headers",
97
98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
99 "//build/config/compiler:no_size_t_to_int_warning",
rsesek99679aa2016-06-28 21:24:17100 "//build/config/compiler:wexit_time_destructors",
xunjieli905496a2015-08-31 15:51:17101]
102
kapishnikovabe280e2016-04-14 19:07:16103if (use_glib && use_gconf && !is_chromeos) {
agrieve95ba4442016-04-25 15:47:13104 net_configs += [ "//build/config/linux/gconf" ]
kapishnikovabe280e2016-04-14 19:07:16105}
xunjieli905496a2015-08-31 15:51:17106
kapishnikovabe280e2016-04-14 19:07:16107if (is_linux) {
108 net_configs += [ "//build/config/linux:libresolv" ]
xunjieli905496a2015-08-31 15:51:17109}
110
111component("net") {
kapishnikovabe280e2016-04-14 19:07:16112 sources = gypi_values.net_nacl_common_sources
113 net_unfiltered_sources = []
114
115 deps = [
116 ":net_resources",
117 "//base",
118 "//net/base/registry_controlled_domains",
119 "//third_party/protobuf:protobuf_lite",
120 "//url:url_features",
121 ]
122
123 public_deps = [
124 ":net_quic_proto",
125 "//crypto",
126 "//crypto:platform",
127 ]
128
129 if (!is_nacl) {
130 sources += gypi_values.net_non_nacl_sources
131
132 deps += [
133 "//base/third_party/dynamic_annotations",
134 "//components/prefs",
135 "//sdch",
136 "//third_party/zlib",
137 ]
138
139 if (!use_kerberos) {
140 sources -= [
141 "http/http_auth_handler_negotiate.cc",
142 "http/http_auth_handler_negotiate.h",
143 ]
144 }
145
146 if (is_posix) {
147 if (posix_avoid_mmap) {
148 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
149 } else {
150 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
151 }
152 }
153
154 if (!enable_built_in_dns) {
155 sources -= [
156 "dns/address_sorter_posix.cc",
157 "dns/address_sorter_posix.h",
158 "dns/dns_client.cc",
159 ]
160 }
161
kapishnikovabe280e2016-04-14 19:07:16162 if (!use_openssl_certs) {
163 sources -= [
164 "base/crypto_module_openssl.cc",
165 "base/keygen_handler_openssl.cc",
166 "base/openssl_private_key_store.h",
167 "base/openssl_private_key_store_memory.cc",
168 "cert/cert_database_openssl.cc",
169 "cert/cert_verify_proc_openssl.cc",
170 "cert/cert_verify_proc_openssl.h",
171 "cert/test_root_certs_openssl.cc",
172 "cert/x509_certificate_openssl.cc",
173 "ssl/openssl_client_key_store.cc",
174 "ssl/openssl_client_key_store.h",
175 ]
176 if (is_android) {
177 sources -= [ "base/openssl_private_key_store_android.cc" ]
178 }
179 } else {
180 if (is_android) {
181 # Android doesn't use these even when using OpenSSL.
182 sources -= [
183 "base/openssl_private_key_store_memory.cc",
184 "cert/cert_database_openssl.cc",
185 "cert/cert_verify_proc_openssl.cc",
186 "cert/test_root_certs_openssl.cc",
187 ]
188 }
189 }
190
191 if (!use_kerberos || is_android) {
192 sources -= [
193 "http/http_auth_gssapi_posix.cc",
194 "http/http_auth_gssapi_posix.h",
195 ]
196 }
197
198 if (use_glib && use_gconf && !is_chromeos) {
dsinclair8490e052016-05-04 15:33:33199 deps += [ "//build/linux/libgio" ]
kapishnikovabe280e2016-04-14 19:07:16200 }
201
202 if (!use_nss_certs) {
203 sources -= [
204 "base/crypto_module_nss.cc",
205 "base/keygen_handler_nss.cc",
206 "cert/cert_database_nss.cc",
207 "cert/nss_cert_database.cc",
208 "cert/nss_cert_database.h",
209 "cert/x509_certificate_nss.cc",
210 "ssl/client_cert_store_nss.cc",
211 "ssl/client_cert_store_nss.h",
212 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
213 "third_party/mozilla_security_manager/nsKeygenHandler.h",
214 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
215 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
216 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
217 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
218 ]
219 if (is_chromeos) {
220 # These were already removed on non-ChromeOS.
221 sources -= [
222 "cert/nss_cert_database_chromeos.cc",
223 "cert/nss_cert_database_chromeos.h",
224 "cert/nss_profile_filter_chromeos.cc",
225 "cert/nss_profile_filter_chromeos.h",
226 ]
227 }
228 sources -= [
229 "ssl/client_key_store.cc",
230 "ssl/client_key_store.h",
231 "ssl/ssl_platform_key_nss.cc",
232 ]
svaldez2135be52016-04-20 16:34:53233 } else {
kapishnikovabe280e2016-04-14 19:07:16234 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's
235 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that
236 # file in directly.
237 sources += [ "third_party/nss/ssl/cmpcert.c" ]
238 }
239
svaldez2135be52016-04-20 16:34:53240 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16241 # These files are part of the partial implementation of NSS for
242 # cert verification, so keep them in that case.
243 sources -= [
244 "cert/cert_verify_proc_nss.cc",
245 "cert/cert_verify_proc_nss.h",
246 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53247 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16248 "cert_net/nss_ocsp.cc",
249 "cert_net/nss_ocsp.h",
250 ]
251 }
252
kapishnikovabe280e2016-04-14 19:07:16253 if (is_chromecast && use_nss_certs) {
254 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
255 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
256 }
257
258 if (!enable_mdns) {
259 sources -= [
260 "dns/mdns_cache.cc",
261 "dns/mdns_cache.h",
262 "dns/mdns_client.cc",
263 "dns/mdns_client.h",
264 "dns/mdns_client_impl.cc",
265 "dns/mdns_client_impl.h",
jbromanfc4297b2016-07-05 17:40:56266 "dns/record_parsed.cc",
267 "dns/record_parsed.h",
268 "dns/record_rdata.cc",
269 "dns/record_rdata.h",
kapishnikovabe280e2016-04-14 19:07:16270 ]
271 }
272
273 if (is_win) {
274 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
275 } else { # !is_win
276 sources -= [
277 "base/winsock_init.cc",
278 "base/winsock_init.h",
279 "base/winsock_util.cc",
280 "base/winsock_util.h",
281 "proxy/proxy_resolver_winhttp.cc",
282 "proxy/proxy_resolver_winhttp.h",
283 ]
284 }
285
286 if (is_ios) {
287 # Add back some sources that were otherwise filtered out.
288 # iOS needs some Mac files.
289 net_unfiltered_sources += [
290 "base/mac/url_conversions.h",
291 "base/mac/url_conversions.mm",
292 "base/network_change_notifier_mac.cc",
293 "base/network_config_watcher_mac.cc",
294 "base/network_interfaces_mac.cc",
295 "base/network_interfaces_mac.h",
296 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53297 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16298 "proxy/proxy_resolver_mac.cc",
299 "proxy/proxy_server_mac.cc",
300 ]
301
302 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
303 }
304
kapishnikovabe280e2016-04-14 19:07:16305 if (is_ios || is_mac) {
306 sources += gypi_values.net_base_mac_ios_sources
307 }
308
309 if (is_android) {
310 deps += [ ":net_jni_headers" ]
311
312 # Add some Linux sources that were excluded by the filter, but which
313 # are needed.
314 net_unfiltered_sources += [
315 "base/address_tracker_linux.cc",
316 "base/address_tracker_linux.h",
317 "base/network_interfaces_linux.cc",
318 "base/network_interfaces_linux.h",
319 "base/platform_mime_util_linux.cc",
320 ]
321 }
322 } else {
323 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
324 }
xunjieli905496a2015-08-31 15:51:17325
326 # Add back some sources that were otherwise filtered out.
327 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16328 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17329 set_sources_assignment_filter(sources_assignment_filter)
330
331 cflags = []
kapishnikovabe280e2016-04-14 19:07:16332 configs += net_configs
xunjieli905496a2015-08-31 15:51:17333 public_configs = [ ":net_config" ]
334
kapishnikovabe280e2016-04-14 19:07:16335 public_deps += [ "//url" ]
[email protected]4625ade2014-04-15 19:26:44336
337 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44338 libs = [
rsesek02aa51c2016-05-11 02:13:57339 "CFNetwork.framework",
340 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19341 "Foundation.framework",
342 "Security.framework",
343 "SystemConfiguration.framework",
344 "resolv",
[email protected]4625ade2014-04-15 19:26:44345 ]
346 }
347
348 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44349 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19350 "CFNetwork.framework",
351 "MobileCoreServices.framework",
352 "Security.framework",
353 "SystemConfiguration.framework",
354 "resolv",
[email protected]4625ade2014-04-15 19:26:44355 ]
xunjieli06d93982015-08-27 17:13:02356 }
xunjieli4c8c6922015-08-27 16:02:40357
jam5332a632016-04-01 22:36:05358 if (is_win) {
359 libs = [
360 "crypt32.lib",
361 "dhcpcsvc.lib",
362 "iphlpapi.lib",
363 "rpcrt4.lib",
364 "secur32.lib",
365 "urlmon.lib",
366 "winhttp.lib",
367 ]
368 }
369
sergeyu99d83f92015-09-14 23:03:33370 if (!is_nacl) {
371 if (!disable_file_support) {
372 sources += gypi_values.net_file_support_sources
373 }
xunjieli06d93982015-08-27 17:13:02374
sergeyu99d83f92015-09-14 23:03:33375 if (!disable_ftp_support) {
376 sources += gypi_values.net_ftp_support_sources
377 }
xunjieli905496a2015-08-31 15:51:17378
sergeyu99d83f92015-09-14 23:03:33379 if (enable_websockets) {
380 sources += gypi_values.net_websockets_sources
381 }
xunjieli905496a2015-08-31 15:51:17382
sergeyu99d83f92015-09-14 23:03:33383 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16384 if (use_platform_icu_alternatives) {
385 if (is_android) {
386 # Use ICU alternative on Android.
387 sources += [
388 "base/net_string_util_icu_alternatives_android.cc",
389 "base/net_string_util_icu_alternatives_android.h",
390 ]
391 deps += [ ":net_jni_headers" ]
392 } else if (is_ios) {
393 # Use ICU alternative on iOS.
394 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
395 } else {
396 assert(false,
397 "ICU alternative is not implemented for platform: " + target_os)
398 }
399 } else {
400 # Use ICU.
401 deps += [
402 "//base:i18n",
403 "//third_party/icu",
404 ]
405 sources += [
406 "base/filename_util_icu.cc",
407 "base/net_string_util_icu.cc",
408 ]
409 }
eustasfbec9132015-12-30 14:56:51410
411 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16412 if (!disable_brotli_filter) {
413 sources += [ "filter/brotli_filter.cc" ]
414 deps += [ "//third_party/brotli" ]
415 } else {
416 sources += [ "filter/brotli_filter_disabled.cc" ]
417 }
[email protected]85191ed2014-05-15 00:41:49418 }
[email protected]4625ade2014-04-15 19:26:44419}
420
421grit("net_resources") {
422 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01423 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32424 outputs = [
425 "grit/net_resources.h",
426 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32427 ]
[email protected]4625ade2014-04-15 19:26:44428}
429
rtennetib6f1c0d2015-04-03 17:52:06430proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16431 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17432
rtennetib6f1c0d2015-04-03 17:52:06433 sources = [
434 "quic/proto/cached_network_parameters.proto",
435 "quic/proto/source_address_token.proto",
436 ]
437 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
438 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18439 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06440
441 defines = [ "NET_IMPLEMENTATION" ]
442
443 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
444}
445
Brett Wilson83fd4242014-09-02 19:45:33446static_library("extras") {
mef327a8e42014-08-29 17:10:03447 sources = gypi_values.net_extras_sources
448 configs += [ "//build/config/compiler:wexit_time_destructors" ]
449 deps = [
450 ":net",
brettwbc44c0a92015-02-20 22:30:39451 "//base",
mef327a8e42014-08-29 17:10:03452 "//sql:sql",
453 ]
454}
455
[email protected]8a3f8242014-06-05 18:05:12456static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44457 sources = [
458 "server/http_connection.cc",
459 "server/http_connection.h",
460 "server/http_server.cc",
461 "server/http_server.h",
462 "server/http_server_request_info.cc",
463 "server/http_server_request_info.h",
464 "server/http_server_response_info.cc",
465 "server/http_server_response_info.h",
466 "server/web_socket.cc",
467 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21468 "server/web_socket_encoder.cc",
469 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44470 ]
jambc6cc8e2014-11-14 17:56:29471 configs += [
brettwd1c719a2015-02-19 23:17:04472 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29473 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29474 ]
[email protected]4625ade2014-04-15 19:26:44475 deps = [
476 ":net",
477 "//base",
478 ]
479}
480
sdefresne3001f172016-03-16 10:30:03481if (!is_ios) {
482 executable("dump_cache") {
483 testonly = true
484 sources = [
485 "tools/dump_cache/dump_cache.cc",
486 "tools/dump_cache/dump_files.cc",
487 "tools/dump_cache/dump_files.h",
488 ]
[email protected]4625ade2014-04-15 19:26:44489
sdefresne3001f172016-03-16 10:30:03490 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
491 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31492
sdefresne3001f172016-03-16 10:30:03493 deps = [
494 ":net",
495 ":test_support",
496 "//base",
497 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07498 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03499 ]
500 }
[email protected]8603c5de2014-04-16 20:34:31501}
502
sdefresneb0a31642016-03-18 11:04:45503bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59504 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45505 testonly = true
sdefresne04f91142016-04-21 08:41:59506 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45507 outputs = [
508 "{{bundle_resources_dir}}/" +
509 "{{source_root_relative_dir}}/{{source_file_part}}",
510 ]
511}
512
[email protected]b2b2bf52014-05-28 20:26:57513source_set("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24514 testonly = true
[email protected]8603c5de2014-04-16 20:34:31515 sources = [
[email protected]8603c5de2014-04-16 20:34:31516 "base/load_timing_info_test_util.cc",
517 "base/load_timing_info_test_util.h",
518 "base/mock_file_stream.cc",
519 "base/mock_file_stream.h",
520 "base/test_completion_callback.cc",
521 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31522 "cert/mock_cert_verifier.cc",
523 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12524 "cert/mock_client_cert_verifier.cc",
525 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31526 "cookies/cookie_monster_store_test.cc",
527 "cookies/cookie_monster_store_test.h",
528 "cookies/cookie_store_test_callbacks.cc",
529 "cookies/cookie_store_test_callbacks.h",
530 "cookies/cookie_store_test_helpers.cc",
531 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56532 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31533 "disk_cache/disk_cache_test_base.cc",
534 "disk_cache/disk_cache_test_base.h",
535 "disk_cache/disk_cache_test_util.cc",
536 "disk_cache/disk_cache_test_util.h",
537 "dns/dns_test_util.cc",
538 "dns/dns_test_util.h",
539 "dns/mock_host_resolver.cc",
540 "dns/mock_host_resolver.h",
541 "dns/mock_mdns_socket_factory.cc",
542 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30543 "http/http_stream_factory_test_util.cc",
544 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12545 "http/http_transaction_test_util.cc",
546 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51547 "log/test_net_log.cc",
548 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46549 "log/test_net_log_entry.cc",
550 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59551 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46552 "log/test_net_log_util.h",
[email protected]8603c5de2014-04-16 20:34:31553 "proxy/mock_proxy_resolver.cc",
554 "proxy/mock_proxy_resolver.h",
555 "proxy/mock_proxy_script_fetcher.cc",
556 "proxy/mock_proxy_script_fetcher.h",
557 "proxy/proxy_config_service_common_unittest.cc",
558 "proxy/proxy_config_service_common_unittest.h",
559 "socket/socket_test_util.cc",
560 "socket/socket_test_util.h",
561 "test/cert_test_util.cc",
562 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07563 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23564 "test/channel_id_test_util.cc",
565 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31566 "test/ct_test_util.cc",
567 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45568 "test/embedded_test_server/default_handlers.cc",
569 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31570 "test/embedded_test_server/embedded_test_server.cc",
571 "test/embedded_test_server/embedded_test_server.h",
572 "test/embedded_test_server/http_connection.cc",
573 "test/embedded_test_server/http_connection.h",
574 "test/embedded_test_server/http_request.cc",
575 "test/embedded_test_server/http_request.h",
576 "test/embedded_test_server/http_response.cc",
577 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53578 "test/embedded_test_server/request_handler_util.cc",
579 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28580 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24581 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31582 "test/net_test_suite.cc",
583 "test/net_test_suite.h",
584 "test/python_utils.cc",
585 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24586 "test/scoped_disable_exit_on_dfatal.cc",
587 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36588 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43589 "test/test_data_directory.cc",
590 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43591 "test/url_request/ssl_certificate_error_job.cc",
592 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30593 "test/url_request/url_request_failed_job.cc",
594 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34595 "test/url_request/url_request_hanging_read_job.cc",
596 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40597 "test/url_request/url_request_mock_data_job.cc",
598 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44599 "test/url_request/url_request_slow_download_job.cc",
600 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31601 "url_request/test_url_fetcher_factory.cc",
602 "url_request/test_url_fetcher_factory.h",
603 "url_request/url_request_test_util.cc",
604 "url_request/url_request_test_util.h",
605 ]
sherouk3eee4a82015-09-01 10:42:33606 if (!is_ios) {
607 sources += [
608 "test/spawned_test_server/base_test_server.cc",
609 "test/spawned_test_server/base_test_server.h",
610 "test/spawned_test_server/local_test_server.cc",
611 "test/spawned_test_server/local_test_server.h",
612 "test/spawned_test_server/local_test_server_posix.cc",
613 "test/spawned_test_server/local_test_server_win.cc",
614 "test/spawned_test_server/spawned_test_server.h",
615 ]
616 }
[email protected]8603c5de2014-04-16 20:34:31617
brettwbc8b2a22015-07-28 18:24:42618 configs += [
619 "//build/config:precompiled_headers",
620
621 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
622 "//build/config/compiler:no_size_t_to_int_warning",
623 ]
[email protected]8603c5de2014-04-16 20:34:31624
Brett Wilsone53895272014-09-23 23:41:46625 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31626 "//base",
627 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12628 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23629 "//net",
[email protected]8603c5de2014-04-16 20:34:31630 "//net/tools/tld_cleanup",
631 "//testing/gmock",
632 "//testing/gtest",
633 "//url",
634 ]
635
sdefresne04f91142016-04-21 08:41:59636 deps = [
637 ":test_support_bundle_data",
638 ]
639
jbudorick944eb922016-06-20 15:38:30640 data = [
641 "data/",
642 ]
643
jamb533b7e2015-03-04 17:12:05644 if (!is_ios) {
645 public_deps += [ "//third_party/protobuf:py_proto" ]
646 }
647
svaldez2135be52016-04-20 16:34:53648 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24649 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31650 }
651
sherouk3eee4a82015-09-01 10:42:33652 if (is_android) {
653 sources += [
[email protected]8603c5de2014-04-16 20:34:31654 "test/spawned_test_server/remote_test_server.cc",
655 "test/spawned_test_server/remote_test_server.h",
656 "test/spawned_test_server/spawner_communicator.cc",
657 "test/spawned_test_server/spawner_communicator.h",
658 ]
659 }
660
661 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46662 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31663 }
664
665 if (!enable_mdns) {
666 sources -= [
667 "dns/mock_mdns_socket_factory.cc",
668 "dns/mock_mdns_socket_factory.h",
669 ]
670 }
671
davidben15d69d482014-09-29 18:24:08672 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24673 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07674 }
xunjielia6888202015-04-14 21:34:25675
676 if (!disable_file_support) {
677 sources += [
678 "test/url_request/url_request_mock_http_job.cc",
679 "test/url_request/url_request_mock_http_job.h",
680 "url_request/test_url_request_interceptor.cc",
681 "url_request/test_url_request_interceptor.h",
682 ]
683 }
[email protected]8603c5de2014-04-16 20:34:31684}
685
[email protected]ceeaac792014-06-25 05:14:43686source_set("balsa") {
687 sources = [
688 "tools/balsa/balsa_enums.h",
689 "tools/balsa/balsa_frame.cc",
690 "tools/balsa/balsa_frame.h",
691 "tools/balsa/balsa_headers.cc",
692 "tools/balsa/balsa_headers.h",
693 "tools/balsa/balsa_headers_token_utils.cc",
694 "tools/balsa/balsa_headers_token_utils.h",
695 "tools/balsa/balsa_visitor_interface.h",
696 "tools/balsa/http_message_constants.cc",
697 "tools/balsa/http_message_constants.h",
698 "tools/balsa/noop_balsa_visitor.h",
699 "tools/balsa/simple_buffer.cc",
700 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43701 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09702 "tools/quic/spdy_balsa_utils.cc",
703 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43704 ]
705 deps = [
706 ":net",
707 "//base",
[email protected]22fe91d2014-08-12 17:07:12708 "//url",
[email protected]ceeaac792014-06-25 05:14:43709 ]
710}
711
[email protected]8603c5de2014-04-16 20:34:31712if (use_v8_in_net) {
713 component("net_with_v8") {
714 sources = [
715 "proxy/proxy_resolver_v8.cc",
716 "proxy/proxy_resolver_v8.h",
717 "proxy/proxy_resolver_v8_tracing.cc",
718 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47719 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
720 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31721 "proxy/proxy_service_v8.cc",
722 "proxy/proxy_service_v8.h",
723 ]
724
725 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11726
[email protected]8603c5de2014-04-16 20:34:31727 configs += [
brettwd1c719a2015-02-19 23:17:04728 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31729 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11730 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31731 ]
732
Brett Wilsone53895272014-09-23 23:41:46733 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31734 ":net",
Brett Wilsone53895272014-09-23 23:41:46735 ]
736 deps = [
[email protected]8603c5de2014-04-16 20:34:31737 "//base",
738 "//gin",
739 "//url",
740 "//v8",
741 ]
742 }
743}
744
amistry7e6ebfdc82015-02-13 04:19:11745if (use_v8_in_net && !is_android) {
746 source_set("net_browser_services") {
747 sources = [
748 "dns/mojo_host_resolver_impl.cc",
749 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01750 "proxy/in_process_mojo_proxy_resolver_factory.cc",
751 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17752 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35753 "proxy/proxy_resolver_factory_mojo.cc",
754 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01755 "proxy/proxy_service_mojo.cc",
756 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11757 ]
758
759 public_deps = [
760 ":mojo_type_converters",
tfarina8ac4d17f2015-12-16 02:11:11761 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39762 "//base",
amistry07ff1402015-03-10 07:34:07763 "//mojo/common",
rockot85dce0862015-11-13 01:33:59764 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11765 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01766
767 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
768 # this dependency since in_process_mojo_proxy_resolver_factory creates
769 # the utility process side Mojo services in the browser process.
770 # Ultimately, this will go away when we only support out-of-process.
771 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11772 ]
773 }
774
775 source_set("mojo_type_converters") {
776 sources = [
amistry7ec58112015-02-26 06:03:00777 "dns/mojo_host_type_converters.cc",
778 "dns/mojo_host_type_converters.h",
779 "proxy/mojo_proxy_type_converters.cc",
780 "proxy/mojo_proxy_type_converters.h",
amistry7e6ebfdc82015-02-13 04:19:11781 ]
782
783 public_deps = [
784 ":net",
tfarina8ac4d17f2015-12-16 02:11:11785 "//base",
rockot85dce0862015-11-13 01:33:59786 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11787 "//net/interfaces",
amistry7e6ebfdc82015-02-13 04:19:11788 ]
789 }
sammc5403aa1d2015-02-25 04:59:21790
791 source_set("net_utility_services") {
792 sources = [
sammc6ac3fe52015-02-25 06:00:28793 "dns/host_resolver_mojo.cc",
794 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24795 "proxy/mojo_proxy_resolver_factory_impl.cc",
796 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21797 "proxy/mojo_proxy_resolver_impl.cc",
798 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51799 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21800 ]
801
rockot9509ec82015-04-14 02:50:56802 deps = [
803 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11804 "//base",
rockot9509ec82015-04-14 02:50:56805 ]
806
sammc5403aa1d2015-02-25 04:59:21807 public_deps = [
808 ":mojo_type_converters",
809 ":net",
810 "//mojo/common",
rockot85dce0862015-11-13 01:33:59811 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21812 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21813 ]
814 }
amistry7e6ebfdc82015-02-13 04:19:11815}
816
[email protected]8603c5de2014-04-16 20:34:31817if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40818 executable("cert_verify_tool") {
819 testonly = true
820 sources = [
821 "tools/cert_verify_tool/cert_verify_tool.cc",
822 "tools/cert_verify_tool/cert_verify_tool_util.cc",
823 "tools/cert_verify_tool/cert_verify_tool_util.h",
824 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
825 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
826 ]
827
828 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
829 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
830 deps = [
831 ":net",
832 ":test_support",
833 "//base",
834 "//build/config/sanitizers:deps",
835 "//build/win:default_exe_manifest",
836 ]
837 }
838
[email protected]8603c5de2014-04-16 20:34:31839 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24840 testonly = true
scottmg34fb7e52014-12-03 23:27:24841 sources = [
842 "tools/crash_cache/crash_cache.cc",
843 ]
dpranke43276212015-02-20 02:55:19844
brettwd1c719a2015-02-19 23:17:04845 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
846 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31847 deps = [
848 ":net",
[email protected]b2b2bf52014-05-28 20:26:57849 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31850 "//base",
brettwba7a73d2015-08-31 22:17:39851 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07852 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31853 ]
854 }
855
856 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24857 testonly = true
scottmg34fb7e52014-12-03 23:27:24858 sources = [
859 "tools/crl_set_dump/crl_set_dump.cc",
860 ]
dpranke43276212015-02-20 02:55:19861
brettwd1c719a2015-02-19 23:17:04862 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
863 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31864 deps = [
865 ":net",
866 "//base",
brettwba7a73d2015-08-31 22:17:39867 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07868 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31869 ]
870 }
871
872 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24873 testonly = true
scottmg34fb7e52014-12-03 23:27:24874 sources = [
875 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
876 ]
dpranke43276212015-02-20 02:55:19877
brettwd1c719a2015-02-19 23:17:04878 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
879 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31880 deps = [
881 ":net",
882 "//base",
brettwba7a73d2015-08-31 22:17:39883 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07884 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31885 ]
886 }
887
888 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24889 testonly = true
[email protected]8603c5de2014-04-16 20:34:31890 sources = [
891 "tools/gdig/file_net_log.cc",
892 "tools/gdig/gdig.cc",
893 ]
894 deps = [
895 ":net",
896 "//base",
brettwba7a73d2015-08-31 22:17:39897 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07898 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31899 ]
900 }
901
902 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24903 testonly = true
scottmg34fb7e52014-12-03 23:27:24904 sources = [
905 "tools/get_server_time/get_server_time.cc",
906 ]
dpranke43276212015-02-20 02:55:19907
brettwd1c719a2015-02-19 23:17:04908 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
909 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31910 deps = [
911 ":net",
912 "//base",
913 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39914 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07915 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31916 "//url",
917 ]
918 }
919
rockot9c67e5f2015-03-12 20:01:21920 executable("hpack_example_generator") {
921 testonly = true
922 sources = [
923 "spdy/fuzzing/hpack_example_generator.cc",
924 ]
925
926 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
927 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
928 deps = [
rockot9c67e5f2015-03-12 20:01:21929 ":net",
brettwba7a73d2015-08-31 22:17:39930 "//base",
931 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07932 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21933 ]
934 }
935
936 executable("hpack_fuzz_mutator") {
937 testonly = true
938 sources = [
939 "spdy/fuzzing/hpack_fuzz_mutator.cc",
940 ]
941
942 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
943 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
944 deps = [
rockot9c67e5f2015-03-12 20:01:21945 ":net",
brettwba7a73d2015-08-31 22:17:39946 "//base",
947 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07948 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21949 ]
950 }
951
952 executable("hpack_fuzz_wrapper") {
953 testonly = true
954 sources = [
955 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
956 ]
957
958 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
959 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
960 deps = [
rockot9c67e5f2015-03-12 20:01:21961 ":net",
brettwba7a73d2015-08-31 22:17:39962 "//base",
963 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07964 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21965 ]
966 }
967
[email protected]8603c5de2014-04-16 20:34:31968 if (use_v8_in_net) {
969 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24970 testonly = true
scottmg34fb7e52014-12-03 23:27:24971 sources = [
972 "tools/net_watcher/net_watcher.cc",
973 ]
[email protected]8603c5de2014-04-16 20:34:31974 deps = [
975 ":net",
976 ":net_with_v8",
977 "//base",
brettwba7a73d2015-08-31 22:17:39978 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07979 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31980 ]
981
mostynbbf5e6cc2015-10-21 07:53:31982 if (is_desktop_linux && use_gconf && use_glib) {
xunjieli905496a2015-08-31 15:51:17983 configs += [
agrieve95ba4442016-04-25 15:47:13984 "//build/config/linux/gconf",
xunjieli905496a2015-08-31 15:51:17985 "//build/config/linux:glib",
986 ]
dsinclair8490e052016-05-04 15:33:33987 deps += [ "//build/linux/libgio" ]
[email protected]8603c5de2014-04-16 20:34:31988 }
989 }
990 }
991
992 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24993 testonly = true
scottmg34fb7e52014-12-03 23:27:24994 sources = [
995 "tools/testserver/run_testserver.cc",
996 ]
[email protected]8603c5de2014-04-16 20:34:31997 deps = [
[email protected]b2b2bf52014-05-28 20:26:57998 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31999 "//base",
1000 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:391001 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071002 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311003 "//testing/gtest",
1004 ]
1005 }
1006
1007 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:241008 testonly = true
scottmg34fb7e52014-12-03 23:27:241009 sources = [
rvargase23fcf652015-03-04 19:59:221010 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:241011 ]
dpranke43276212015-02-20 02:55:191012
brettwd1c719a2015-02-19 23:17:041013 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1014 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311015 deps = [
1016 ":net",
[email protected]b2b2bf52014-05-28 20:26:571017 ":test_support",
[email protected]8603c5de2014-04-16 20:34:311018 "//base",
brettwba7a73d2015-08-31 22:17:391019 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071020 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311021 ]
1022 }
1023
1024 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:241025 sources = [
1026 "tools/tld_cleanup/tld_cleanup.cc",
1027 ]
dpranke43276212015-02-20 02:55:191028
brettwd1c719a2015-02-19 23:17:041029 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1030 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311031 deps = [
1032 "//base",
1033 "//base:i18n",
brettwba7a73d2015-08-31 22:17:391034 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071035 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311036 "//net/tools/tld_cleanup",
1037 ]
1038 }
1039}
1040
gabadie0774bee2016-05-12 14:02:581041if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:421042 executable("cachetool") {
1043 testonly = true
1044 sources = [
1045 "tools/cachetool/cachetool.cc",
1046 ]
1047 deps = [
1048 ":net",
1049 ":test_support",
1050 "//base",
1051 ]
1052 }
1053
1054 executable("content_decoder_tool") {
1055 testonly = true
1056 sources = [
1057 "filter/mock_filter_context.cc",
1058 "filter/mock_filter_context.h",
1059 "tools/content_decoder_tool/content_decoder_tool.cc",
1060 ]
1061 deps = [
1062 ":net",
1063 ":test_support",
1064 "//base",
1065 "//url",
1066 ]
1067 }
gabadie0774bee2016-05-12 14:02:581068}
gabadie64af64a2016-03-29 16:36:421069
gabadie0774bee2016-05-12 14:02:581070if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121071 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311072 sources = [
1073 "tools/epoll_server/epoll_server.cc",
1074 "tools/epoll_server/epoll_server.h",
1075 ]
1076 deps = [
1077 ":net",
1078 "//base",
1079 ]
1080 }
1081
[email protected]8a3f8242014-06-05 18:05:121082 static_library("flip_in_mem_edsm_server_base") {
Brett Wilson8f80ad0b2014-09-08 19:50:241083 testonly = true
[email protected]8603c5de2014-04-16 20:34:311084 sources = [
[email protected]8603c5de2014-04-16 20:34:311085 "tools/flip_server/acceptor_thread.cc",
satorux933fc7a2015-02-13 07:09:101086 "tools/flip_server/acceptor_thread.h",
1087 "tools/flip_server/constants.h",
[email protected]8603c5de2014-04-16 20:34:311088 "tools/flip_server/flip_config.cc",
1089 "tools/flip_server/flip_config.h",
1090 "tools/flip_server/http_interface.cc",
1091 "tools/flip_server/http_interface.h",
[email protected]8603c5de2014-04-16 20:34:311092 "tools/flip_server/mem_cache.cc",
satorux933fc7a2015-02-13 07:09:101093 "tools/flip_server/mem_cache.h",
[email protected]8603c5de2014-04-16 20:34:311094 "tools/flip_server/output_ordering.cc",
1095 "tools/flip_server/output_ordering.h",
1096 "tools/flip_server/ring_buffer.cc",
1097 "tools/flip_server/ring_buffer.h",
1098 "tools/flip_server/sm_connection.cc",
1099 "tools/flip_server/sm_connection.h",
1100 "tools/flip_server/sm_interface.h",
[email protected]8603c5de2014-04-16 20:34:311101 "tools/flip_server/spdy_interface.cc",
1102 "tools/flip_server/spdy_interface.h",
satorux933fc7a2015-02-13 07:09:101103 "tools/flip_server/spdy_ssl.cc",
1104 "tools/flip_server/spdy_ssl.h",
[email protected]8603c5de2014-04-16 20:34:311105 "tools/flip_server/spdy_util.cc",
1106 "tools/flip_server/spdy_util.h",
1107 "tools/flip_server/streamer_interface.cc",
1108 "tools/flip_server/streamer_interface.h",
tfarinafb3c78c2016-02-09 22:13:521109 "tools/flip_server/tcp_socket_util.cc",
1110 "tools/flip_server/tcp_socket_util.h",
rvargas145310f2015-08-14 18:09:041111 "tools/flip_server/url_to_filename_encoder.cc",
1112 "tools/flip_server/url_to_filename_encoder.h",
1113 "tools/flip_server/url_utilities.cc",
1114 "tools/flip_server/url_utilities.h",
[email protected]8603c5de2014-04-16 20:34:311115 ]
1116 deps = [
1117 ":balsa",
1118 ":epoll_server",
1119 ":net",
1120 "//base",
[email protected]edfd0f42014-07-22 18:20:371121 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311122 ]
1123 }
1124
1125 executable("flip_in_mem_edsm_server_unittests") {
Brett Wilson8f80ad0b2014-09-08 19:50:241126 testonly = true
[email protected]8603c5de2014-04-16 20:34:311127 sources = [
1128 "tools/flip_server/flip_test_utils.cc",
1129 "tools/flip_server/flip_test_utils.h",
1130 "tools/flip_server/http_interface_test.cc",
1131 "tools/flip_server/mem_cache_test.cc",
1132 "tools/flip_server/run_all_tests.cc",
1133 "tools/flip_server/spdy_interface_test.cc",
rvargas145310f2015-08-14 18:09:041134 "tools/flip_server/url_to_filename_encoder_unittest.cc",
1135 "tools/flip_server/url_utilities_unittest.cc",
[email protected]8603c5de2014-04-16 20:34:311136 ]
1137 deps = [
brettwbc44c0a92015-02-20 22:30:391138 ":balsa",
[email protected]8603c5de2014-04-16 20:34:311139 ":flip_in_mem_edsm_server_base",
1140 ":net",
[email protected]b2b2bf52014-05-28 20:26:571141 ":test_support",
brettwba7a73d2015-08-31 22:17:391142 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311143 "//testing/gmock",
agrieved7a71c882015-11-20 19:53:281144 "//testing/gtest",
[email protected]edfd0f42014-07-22 18:20:371145 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311146 ]
1147 }
1148
1149 executable("flip_in_mem_edsm_server") {
Brett Wilson8f80ad0b2014-09-08 19:50:241150 testonly = true
scottmg34fb7e52014-12-03 23:27:241151 sources = [
1152 "tools/flip_server/flip_in_mem_edsm_server.cc",
1153 ]
[email protected]8603c5de2014-04-16 20:34:311154 deps = [
brettwbc44c0a92015-02-20 22:30:391155 ":balsa",
[email protected]8603c5de2014-04-16 20:34:311156 ":flip_in_mem_edsm_server_base",
1157 ":net",
1158 "//base",
brettwba7a73d2015-08-31 22:17:391159 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311160 ]
1161 }
1162
rch216445c2015-03-27 00:23:281163 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311164 sources = [
1165 "tools/quic/quic_client.cc",
1166 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311167 "tools/quic/quic_default_packet_writer.cc",
1168 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071169 "tools/quic/quic_epoll_alarm_factory.cc",
1170 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311171 "tools/quic/quic_epoll_clock.cc",
1172 "tools/quic/quic_epoll_clock.h",
1173 "tools/quic/quic_epoll_connection_helper.cc",
1174 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551175 "tools/quic/quic_packet_reader.cc",
1176 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311177 "tools/quic/quic_packet_writer_wrapper.cc",
1178 "tools/quic/quic_packet_writer_wrapper.h",
1179 "tools/quic/quic_server.cc",
1180 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311181 "tools/quic/quic_socket_utils.cc",
1182 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311183 ]
1184 deps = [
1185 ":balsa",
1186 ":epoll_server",
1187 ":net",
tfarina8ac4d17f2015-12-16 02:11:111188 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311189 "//base",
1190 "//base/third_party/dynamic_annotations",
1191 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371192 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311193 "//url",
1194 ]
1195 }
1196
rch216445c2015-03-27 00:23:281197 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241198 sources = [
1199 "tools/quic/quic_client_bin.cc",
1200 ]
[email protected]8603c5de2014-04-16 20:34:311201 deps = [
brettwbc44c0a92015-02-20 22:30:391202 ":balsa",
rch216445c2015-03-27 00:23:281203 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281204 ":epoll_server",
rch216445c2015-03-27 00:23:281205 ":net",
1206 ":simple_quic_tools",
1207 "//base",
brettwba7a73d2015-08-31 22:17:391208 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281209 "//third_party/boringssl",
1210 ]
1211 }
1212
1213 executable("epoll_quic_server") {
1214 sources = [
1215 "tools/quic/quic_server_bin.cc",
1216 ]
1217 deps = [
1218 ":balsa",
rch216445c2015-03-27 00:23:281219 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281220 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311221 ":net",
rchda78df5a2015-03-22 05:16:371222 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311223 "//base",
brettwba7a73d2015-08-31 22:17:391224 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371225 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311226 ]
1227 }
[email protected]8603c5de2014-04-16 20:34:311228}
1229
[email protected]ef0eb442014-05-15 09:32:181230if (is_android) {
1231 generate_jni("net_jni_headers") {
1232 sources = [
tbansalc04b7aa2016-07-02 06:54:371233 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181234 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1235 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1236 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011237 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181238 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531239 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171240 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181241 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1242 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1243 "android/java/src/org/chromium/net/X509Util.java",
1244 ]
1245 jni_package = "net"
1246 }
cjhopmandad5f4272014-09-05 01:00:551247 generate_jni("net_test_jni_headers") {
1248 sources = [
1249 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531250 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351251 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551252 ]
brettwcdccaf02015-07-27 16:27:091253 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551254 }
[email protected]ef0eb442014-05-15 09:32:181255}
[email protected]8603c5de2014-04-16 20:34:311256
1257if (is_android || is_linux) {
1258 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241259 testonly = true
scottmg34fb7e52014-12-03 23:27:241260 sources = [
1261 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1262 ]
[email protected]8603c5de2014-04-16 20:34:311263 deps = [
1264 ":net",
1265 "//base",
brettwba7a73d2015-08-31 22:17:391266 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311267 ]
1268 }
1269}
[email protected]8a3f8242014-06-05 18:05:121270
rch47ad01f2015-03-20 21:17:231271source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491272 sources = [
ckrasica7fd1242016-05-14 20:36:011273 "tools/quic/chlo_extractor.cc",
1274 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311275 "tools/quic/quic_client_base.cc",
1276 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051277 "tools/quic/quic_client_session.cc",
1278 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561279 "tools/quic/quic_dispatcher.cc",
1280 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211281 "tools/quic/quic_in_memory_cache.cc",
1282 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561283 "tools/quic/quic_per_connection_packet_writer.cc",
1284 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581285 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491286 "tools/quic/quic_simple_client.cc",
1287 "tools/quic/quic_simple_client.h",
rch216445c2015-03-27 00:23:281288 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1289 "tools/quic/quic_simple_per_connection_packet_writer.h",
1290 "tools/quic/quic_simple_server.cc",
1291 "tools/quic/quic_simple_server.h",
1292 "tools/quic/quic_simple_server_packet_writer.cc",
1293 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391294 "tools/quic/quic_simple_server_session.cc",
1295 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311296 "tools/quic/quic_simple_server_session_helper.cc",
1297 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401298 "tools/quic/quic_simple_server_stream.cc",
1299 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051300 "tools/quic/quic_spdy_client_stream.cc",
1301 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211302 "tools/quic/quic_time_wait_list_manager.cc",
1303 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371304 "tools/quic/stateless_rejector.cc",
1305 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371306 "tools/quic/synchronous_host_resolver.cc",
1307 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491308 ]
1309 deps = [
tfarina8ac4d17f2015-12-16 02:11:111310 ":balsa",
rcha9d12ce12015-03-19 23:06:491311 ":net",
1312 "//base",
rch47ad01f2015-03-20 21:17:231313 "//base/third_party/dynamic_annotations",
1314 "//url",
1315 ]
1316}
1317
ricea7afa5232015-12-01 20:55:231318action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
1319 script = "//net/tools/dafsa/make_dafsa.py"
1320 sources = [
1321 "base/stale_while_revalidate_experiment_domains.gperf",
1322 ]
1323 outputs = [
1324 "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1325 ]
1326 args = [
1327 "{{source}}",
1328 rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1329 root_build_dir),
1330 ]
1331}
1332
1333source_set("stale_while_revalidate_experiment_domains") {
1334 sources = [
1335 "base/stale_while_revalidate_experiment_domains.cc",
1336 "base/stale_while_revalidate_experiment_domains.h",
1337 ]
1338 deps = [
1339 ":net",
1340 ":stale_while_revalidate_experiment_domains_dafsa",
1341 "//base",
1342 ]
kapishnikovabe280e2016-04-14 19:07:161343 configs += net_configs
ricea7afa5232015-12-01 20:55:231344}
1345
sherouk51b4b098b2015-08-10 09:00:431346if (!is_ios) {
1347 executable("quic_client") {
1348 sources = [
1349 "tools/quic/quic_simple_client_bin.cc",
1350 ]
1351 deps = [
1352 ":net",
1353 ":simple_quic_tools",
1354 "//base",
brettwba7a73d2015-08-31 22:17:391355 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071356 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431357 "//url",
1358 ]
1359 }
1360 executable("quic_server") {
1361 sources = [
1362 "tools/quic/quic_simple_server_bin.cc",
1363 ]
1364 deps = [
1365 ":net",
1366 ":simple_quic_tools",
1367 "//base",
brettwba7a73d2015-08-31 22:17:391368 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071369 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431370 "//third_party/boringssl",
1371 "//third_party/protobuf:protobuf_lite",
1372 ]
1373 }
rchf80f62d12016-05-11 00:47:311374 executable("quic_packet_printer") {
1375 sources = [
1376 "tools/quic/quic_packet_printer_bin.cc",
1377 ]
1378 deps = [
1379 ":net",
1380 ":simple_quic_tools",
1381 "//base",
1382 "//build/config/sanitizers:deps",
1383 "//build/win:default_exe_manifest",
1384 "//third_party/boringssl",
1385 "//third_party/protobuf:protobuf_lite",
1386 ]
1387 }
danzh1401f0a2016-05-19 13:41:101388 executable("crypto_message_printer") {
1389 sources = [
1390 "tools/quic/crypto_message_printer_bin.cc",
1391 ]
1392 deps = [
1393 ":net",
1394 "//base",
1395 "//build/config/sanitizers:deps",
1396 "//build/win:default_exe_manifest",
1397 ]
1398 }
rch216445c2015-03-27 00:23:281399}
1400
sdefresneb0a31642016-03-18 11:04:451401bundle_data("net_unittests_bundle_data") {
1402 testonly = true
sdefresne04f91142016-04-21 08:41:591403 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451404 outputs = [
1405 "{{bundle_resources_dir}}/" +
1406 "{{source_root_relative_dir}}/{{source_file_part}}",
1407 ]
1408}
1409
dpranke64df2832015-07-31 22:33:361410test("net_unittests") {
1411 sources = gypi_values.net_test_sources
1412
1413 configs += [
1414 "//build/config:precompiled_headers",
1415
1416 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1417 "//build/config/compiler:no_size_t_to_int_warning",
1418 ]
1419 defines = []
1420
1421 deps = [
1422 ":balsa",
1423 ":extras",
dpranke64df2832015-07-31 22:33:361424 ":net",
sdefresneb0a31642016-03-18 11:04:451425 ":net_unittests_bundle_data",
dpranke64df2832015-07-31 22:33:361426 ":simple_quic_tools",
ricea7afa5232015-12-01 20:55:231427 ":stale_while_revalidate_experiment_domains",
dpranke64df2832015-07-31 22:33:361428 ":test_support",
1429 "//base",
1430 "//base:i18n",
dpranke64df2832015-07-31 22:33:361431 "//base/third_party/dynamic_annotations",
1432 "//crypto",
1433 "//crypto:platform",
1434 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361435 "//net/base/registry_controlled_domains",
1436 "//sql",
1437 "//testing/gmock",
1438 "//testing/gtest",
1439 "//third_party/zlib",
1440 "//url",
kapishnikovabe280e2016-04-14 19:07:161441 "//url:url_features",
dpranke64df2832015-07-31 22:33:361442 ]
1443
jbudorick944eb922016-06-20 15:38:301444 data = []
svaldez2135be52016-04-20 16:34:531445 data_deps = [
1446 "third_party/nist-pkits/",
1447 ]
dpranke64df2832015-07-31 22:33:361448
1449 if (is_linux || is_mac || is_win) {
1450 deps += [
1451 "//third_party/pyftpdlib/",
1452 "//third_party/pywebsocket/",
1453 "//third_party/tlslite/",
1454 ]
mattm6586b432016-02-12 04:52:391455 data_deps += [
dpranke64df2832015-07-31 22:33:361456 "//third_party/pyftpdlib/",
1457 "//third_party/pywebsocket/",
1458 "//third_party/tlslite/",
1459 ]
1460 data += [
1461 "tools/testserver/",
1462 "//third_party/pyftpdlib/",
1463 "//third_party/pywebsocket/",
1464 "//third_party/tlslite/",
1465 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231466 ]
1467 }
1468
dpranke64df2832015-07-31 22:33:361469 if (is_desktop_linux) {
1470 deps += [ ":epoll_quic_tools" ]
1471 }
1472 if (is_linux) {
1473 sources += gypi_values.net_linux_test_sources
1474 deps += [
1475 ":epoll_quic_tools",
1476 ":epoll_server",
1477 ":flip_in_mem_edsm_server_base",
brettwbc8b2a22015-07-28 18:24:421478 ]
dpranke64df2832015-07-31 22:33:361479 }
[email protected]8a3f8242014-06-05 18:05:121480
dpranke64df2832015-07-31 22:33:361481 if (is_mac || is_ios) {
1482 sources += gypi_values.net_base_test_mac_ios_sources
1483 }
1484
1485 if (is_chromeos) {
1486 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1487 }
1488
1489 if (v8_use_external_startup_data) {
1490 deps += [ "//gin" ]
1491 }
1492
1493 if (!use_nss_certs) {
1494 sources -= [
1495 "cert/nss_cert_database_unittest.cc",
1496 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121497 ]
dpranke64df2832015-07-31 22:33:361498 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411499 sources -= [
dpranke64df2832015-07-31 22:33:361500 "cert/nss_cert_database_chromeos_unittest.cc",
1501 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411502 ]
brettw43ae0e12015-07-14 22:12:361503 }
[email protected]8a3f8242014-06-05 18:05:121504 }
dpranke64df2832015-07-31 22:33:361505
dpranke64df2832015-07-31 22:33:361506 if (use_kerberos) {
1507 defines += [ "USE_KERBEROS" ]
1508 }
1509
1510 # These are excluded on Android, because the actual Kerberos support, which
1511 # these test, is in a separate app on Android.
1512 if (!use_kerberos || is_android) {
1513 sources -= [
1514 "http/http_auth_gssapi_posix_unittest.cc",
1515 "http/mock_gssapi_library_posix.cc",
1516 "http/mock_gssapi_library_posix.h",
1517 ]
1518 }
1519 if (!use_kerberos) {
1520 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1521 }
1522
svaldez2135be52016-04-20 16:34:531523 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531524 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361525 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1526 }
1527
1528 if (!use_openssl_certs) {
1529 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1530 }
1531
jbudorick1273a842016-04-01 19:50:051532 if (enable_websockets) {
1533 sources += gypi_values.net_websockets_test_sources
1534 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361535 }
1536
1537 if (disable_file_support) {
1538 sources -= [
1539 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161540 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041541 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361542 "url_request/url_request_file_job_unittest.cc",
1543 ]
1544 }
1545
1546 if (disable_ftp_support) {
1547 sources -= [
1548 "ftp/ftp_auth_cache_unittest.cc",
1549 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1550 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361551 "ftp/ftp_directory_listing_parser_unittest.cc",
1552 "ftp/ftp_directory_listing_parser_unittest.h",
1553 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1554 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1555 "ftp/ftp_network_transaction_unittest.cc",
1556 "ftp/ftp_util_unittest.cc",
1557 "url_request/url_request_ftp_job_unittest.cc",
1558 ]
1559 }
1560
1561 if (!enable_built_in_dns) {
1562 sources -= [
1563 "dns/address_sorter_posix_unittest.cc",
1564 "dns/address_sorter_unittest.cc",
1565 ]
1566 }
1567
xunjieli905496a2015-08-31 15:51:171568 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361569 deps += [ ":net_with_v8" ]
1570 } else {
1571 sources -= [
1572 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1573 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1574 "proxy/proxy_resolver_v8_unittest.cc",
1575 ]
1576 }
1577
1578 if (use_v8_in_net && !is_android) {
1579 deps += [
1580 ":net_browser_services",
1581 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081582 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361583 ]
1584 } else {
1585 sources -= [
1586 "dns/host_resolver_mojo_unittest.cc",
1587 "dns/mojo_host_resolver_impl_unittest.cc",
1588 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1589 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1590 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1591 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1592 "proxy/proxy_service_mojo_unittest.cc",
1593 ]
1594 }
1595
1596 if (!enable_mdns) {
1597 sources -= [
1598 "dns/mdns_cache_unittest.cc",
1599 "dns/mdns_client_unittest.cc",
jbromanfc4297b2016-07-05 17:40:561600 "dns/record_parsed_unittest.cc",
1601 "dns/record_rdata_unittest.cc",
dpranke64df2832015-07-31 22:33:361602 ]
1603 }
1604
1605 if (is_ios) {
dpranke64df2832015-07-31 22:33:361606 sources -= [
1607 # TODO(droger): The following tests are disabled because the
1608 # implementation is missing or incomplete.
1609 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1610 "base/keygen_handler_unittest.cc",
1611 "disk_cache/backend_unittest.cc",
1612 "disk_cache/blockfile/block_files_unittest.cc",
1613
1614 # Need to read input data files.
1615 "filter/gzip_filter_unittest.cc",
1616 "socket/ssl_server_socket_unittest.cc",
1617 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1618
1619 # Need TestServer.
1620 "cert_net/cert_net_fetcher_impl_unittest.cc",
1621 "proxy/proxy_script_fetcher_impl_unittest.cc",
1622 "socket/ssl_client_socket_unittest.cc",
1623 "url_request/url_fetcher_impl_unittest.cc",
1624 "url_request/url_request_context_builder_unittest.cc",
1625
1626 # Needs GetAppOutput().
1627 "test/python_utils_unittest.cc",
1628
1629 # The following tests are disabled because they don't apply to
1630 # iOS.
1631 # OS is not "linux" or "freebsd" or "openbsd".
1632 "socket/unix_domain_client_socket_posix_unittest.cc",
1633 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361634 ]
1635 }
1636
kapishnikovabe280e2016-04-14 19:07:161637 # Unit tests that aren't supported by the current ICU alternatives on Android.
1638 if (is_android && use_platform_icu_alternatives) {
1639 sources -= [
1640 "base/filename_util_unittest.cc",
1641 "base/url_util_unittest.cc",
1642 "cert/x509_certificate_unittest.cc",
1643 "proxy/proxy_resolver_v8_unittest.cc",
1644 "url_request/url_request_job_unittest.cc",
1645 ]
1646 }
1647
1648 # Unit tests that are not supported by the current ICU alternatives on iOS.
1649 if (is_ios && use_platform_icu_alternatives) {
1650 sources -= [
1651 "base/filename_util_unittest.cc",
1652 "base/url_util_unittest.cc",
1653 "cert/x509_certificate_unittest.cc",
1654 "http/http_auth_handler_basic_unittest.cc",
1655 "http/http_auth_handler_digest_unittest.cc",
1656 "http/http_auth_handler_factory_unittest.cc",
1657 "http/http_auth_unittest.cc",
1658 "http/http_content_disposition_unittest.cc",
1659 "http/http_network_transaction_unittest.cc",
1660 "http/http_proxy_client_socket_pool_unittest.cc",
1661 "socket/ssl_client_socket_pool_unittest.cc",
1662 "spdy/spdy_network_transaction_unittest.cc",
1663 "spdy/spdy_proxy_client_socket_unittest.cc",
1664 "url_request/url_request_job_unittest.cc",
1665 "url_request/url_request_unittest.cc",
1666 ]
1667 }
1668
1669 # Exclude brotli test if the support for brotli is disabled.
1670 # Also, exclude the test from iOS for now (needs to read input data files).
1671 if (disable_brotli_filter || is_ios) {
1672 sources -= [ "filter/brotli_filter_unittest.cc" ]
1673 }
1674
dpranke64df2832015-07-31 22:33:361675 if (is_android) {
agrieve732db3a2016-04-26 19:18:191676 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191677 deps += [
1678 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451679 "//base:base_java_unittest_support",
1680 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451681 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191682 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451683 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191684
1685 # TODO(mmenke): This depends on test_support_base, which depends on
1686 # icu. Figure out a way to remove that dependency.
1687 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071688 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451689 ]
1690 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361691 set_sources_assignment_filter([])
1692 sources += [ "base/address_tracker_linux_unittest.cc" ]
1693 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001694 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361695 }
1696
dpranke64df2832015-07-31 22:33:361697 # Symbols for crashes when running tests on swarming.
1698 if (symbol_level > 0) {
1699 if (is_win) {
1700 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1701 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131702 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1703 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361704 }
1705 }
maksim.sisovc69619d2016-05-20 19:23:551706
1707 if (is_win) {
mmenke91c17162016-06-02 16:03:231708 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551709 }
dpranke64df2832015-07-31 22:33:361710}
1711
1712# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031713if (!is_ios) {
1714 # TODO(crbug.com/594965): this should be converted to "app" template and
1715 # enabled on iOS too.
1716 executable("net_perftests") {
1717 testonly = true
1718 sources = [
1719 "base/mime_sniffer_perftest.cc",
1720 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051721 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031722 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1723 "proxy/proxy_resolver_perftest.cc",
1724 "udp/udp_socket_perftest.cc",
1725 ]
[email protected]8a3f8242014-06-05 18:05:121726
sdefresne3001f172016-03-16 10:30:031727 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1728 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1729 deps = [
1730 ":extras",
1731 ":net",
1732 ":test_support",
1733 "//base",
1734 "//base:i18n",
1735 "//base/test:test_support_perf",
1736 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071737 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031738 "//testing/gtest",
1739 "//url",
1740 ]
rockot9c67e5f2015-03-12 20:01:211741
sdefresne3001f172016-03-16 10:30:031742 if (enable_websockets) {
1743 sources += [ "websockets/websocket_frame_perftest.cc" ]
1744 }
rockot9c67e5f2015-03-12 20:01:211745
sdefresne3001f172016-03-16 10:30:031746 if (use_v8_in_net) {
1747 deps += [ ":net_with_v8" ]
1748 } else {
1749 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1750 }
rockot9c67e5f2015-03-12 20:01:211751 }
rockot9c67e5f2015-03-12 20:01:211752}
mefff34b822016-01-11 15:28:081753
eromanfe8659e2016-03-02 23:47:021754# Fuzzers
1755
eroman02b4fe562016-03-04 12:15:161756source_set("net_fuzzer_test_support") {
1757 testonly = true
1758
1759 sources = [
mmenkec951d412016-04-28 19:05:221760 "base/fuzzed_data_provider.cc",
1761 "base/fuzzed_data_provider.h",
eroman02b4fe562016-03-04 12:15:161762 "base/fuzzer_test_support.cc",
mmenke99b57172016-04-14 20:44:331763 "socket/fuzzed_socket.cc",
1764 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221765 "socket/fuzzed_socket_factory.cc",
1766 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231767 "udp/fuzzed_datagram_client_socket.cc",
1768 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161769 ]
1770 deps = [
1771 "//base",
1772 "//base:i18n",
mmenke99b57172016-04-14 20:44:331773 "//net",
eroman02b4fe562016-03-04 12:15:161774 ]
1775}
1776
csharrisonaa314dc2016-04-29 20:15:371777fuzzer_test("net_data_job_fuzzer") {
1778 sources = [
1779 "url_request/url_request_data_job_fuzzer.cc",
1780 ]
1781 deps = [
1782 ":net_fuzzer_test_support",
1783 ":test_support",
1784 "//base",
1785 "//net",
1786 ]
1787}
1788
mmenke5552a6a2016-03-28 23:11:591789fuzzer_test("net_mime_sniffer_fuzzer") {
1790 sources = [
1791 "base/mime_sniffer_fuzzer.cc",
1792 ]
1793 deps = [
1794 ":net_fuzzer_test_support",
1795 "//base",
1796 "//net",
1797 ]
1798}
1799
mmoroz565e8df22016-03-04 18:17:201800fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301801 sources = [
1802 "proxy/parse_proxy_list_pac_fuzzer.cc",
1803 ]
1804 deps = [
eroman02b4fe562016-03-04 12:15:161805 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301806 "//net",
1807 ]
1808}
1809
mmoroz565e8df22016-03-04 18:17:201810fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301811 sources = [
1812 "proxy/parse_proxy_list_fuzzer.cc",
1813 ]
1814 deps = [
eroman02b4fe562016-03-04 12:15:161815 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301816 "//net",
1817 ]
1818}
1819
mmoroz565e8df22016-03-04 18:17:201820fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301821 sources = [
1822 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1823 ]
1824 deps = [
eroman02b4fe562016-03-04 12:15:161825 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301826 "//net",
1827 ]
1828}
1829
mmoroz565e8df22016-03-04 18:17:201830fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301831 sources = [
1832 "proxy/parse_proxy_rules_fuzzer.cc",
1833 ]
1834 deps = [
eroman02b4fe562016-03-04 12:15:161835 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301836 "//net",
1837 ]
1838}
1839
mmoroz565e8df22016-03-04 18:17:201840fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301841 sources = [
1842 "base/parse_data_url_fuzzer.cc",
1843 ]
1844 deps = [
eroman02b4fe562016-03-04 12:15:161845 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301846 "//base",
1847 "//net",
1848 ]
1849}
1850
mmoroz565e8df22016-03-04 18:17:201851fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301852 sources = [
1853 "base/parse_ip_pattern_fuzzer.cc",
1854 ]
1855 deps = [
eroman02b4fe562016-03-04 12:15:161856 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301857 "//net",
1858 ]
1859}
1860
mmoroz565e8df22016-03-04 18:17:201861fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301862 sources = [
1863 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1864 ]
1865 deps = [
eroman02b4fe562016-03-04 12:15:161866 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301867 "//base",
eromane6264fd2016-03-02 22:46:301868 "//net",
1869 ]
1870}
1871
mattmafe43b82016-04-28 20:40:541872fuzzer_test("net_cert_verify_name_match_fuzzer") {
1873 sources = [
1874 "cert/internal/verify_name_match_fuzzer.cc",
1875 ]
1876 deps = [
1877 ":net_fuzzer_test_support",
1878 "//base",
1879 "//net",
1880 ]
1881}
1882
mattm2c637da42016-04-28 02:55:591883fuzzer_test("net_cert_normalize_name_fuzzer") {
1884 sources = [
1885 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1886 ]
1887 deps = [
1888 "//base",
1889 "//net",
1890 ]
1891}
1892
mattmafe43b82016-04-28 20:40:541893fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1894 sources = [
1895 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1896 ]
1897 deps = [
1898 ":net_fuzzer_test_support",
1899 "//base",
1900 "//net",
1901 ]
1902}
1903
nharper85d3b6f2016-04-28 20:58:191904fuzzer_test("net_cert_parse_certificate_fuzzer") {
1905 sources = [
1906 "cert/internal/parse_certificate_fuzzer.cc",
1907 ]
1908 deps = [
1909 "//base",
1910 "//net",
1911 ]
1912}
1913
mmoroz565e8df22016-03-04 18:17:201914fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301915 sources = [
1916 "cookies/parse_cookie_line_fuzzer.cc",
1917 ]
1918 deps = [
eroman02b4fe562016-03-04 12:15:161919 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301920 "//net",
1921 ]
1922}
1923
mmoroz565e8df22016-03-04 18:17:201924fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021925 sources = [
1926 "dns/dns_record_fuzzer.cc",
1927 ]
1928 deps = [
eroman02b4fe562016-03-04 12:15:161929 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021930 "//base",
1931 "//net",
1932 ]
1933}
1934
zhongyi273af9f2016-04-28 18:46:341935fuzzer_test("net_dns_hosts_parse_fuzzer") {
1936 sources = [
1937 "dns/dns_hosts_parse_fuzzer.cc",
1938 ]
1939 deps = [
1940 ":net_fuzzer_test_support",
1941 "//base",
1942 "//net",
1943 ]
1944}
1945
mmenke91c17162016-06-02 16:03:231946fuzzer_test("net_host_resolver_impl_fuzzer") {
1947 sources = [
1948 "dns/fuzzed_host_resolver.cc",
1949 "dns/fuzzed_host_resolver.h",
1950 "dns/host_resolver_impl_fuzzer.cc",
1951 ]
1952 deps = [
1953 ":net_fuzzer_test_support",
1954 ":test_support",
1955 "//base",
1956 "//net",
1957 ]
1958 dict = "data/dns/dns.dict"
1959}
1960
mmenke44e8e9c2016-03-29 18:38:571961fuzzer_test("net_http_stream_parser_fuzzer") {
1962 sources = [
1963 "http/http_stream_parser_fuzzer.cc",
1964 ]
1965 deps = [
1966 ":net_fuzzer_test_support",
1967 ":test_support",
1968 "//base",
1969 "//net",
1970 ]
mmenkee15732f2016-04-18 18:47:491971 dict = "data/http/http.dict"
mmenke44e8e9c2016-03-29 18:38:571972}
1973
mmoroz565e8df22016-03-04 18:17:201974fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021975 sources = [
1976 "ftp/ftp_ctrl_response_fuzzer.cc",
1977 ]
1978 deps = [
eroman02b4fe562016-03-04 12:15:161979 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021980 "//base",
1981 "//net",
1982 ]
1983}
1984
mmoroz565e8df22016-03-04 18:17:201985fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021986 sources = [
1987 "ftp/ftp_directory_listing_fuzzer.cc",
1988 ]
1989 deps = [
eroman02b4fe562016-03-04 12:15:161990 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021991 "//base",
eromanfe8659e2016-03-02 23:47:021992 "//net",
1993 ]
1994}
1995
mmoroz565e8df22016-03-04 18:17:201996fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021997 sources = [
1998 "base/unescape_url_component_fuzzer.cc",
1999 ]
2000 deps = [
eroman02b4fe562016-03-04 12:15:162001 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022002 "//base",
2003 "//net",
2004 ]
mmoroz34eb0082016-03-11 14:32:012005 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:332006 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:022007}
2008
mmoroz565e8df22016-03-04 18:17:202009fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:022010 sources = [
2011 "websockets/websocket_frame_parser_fuzzer.cc",
2012 ]
2013 deps = [
eroman02b4fe562016-03-04 12:15:162014 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022015 "//net",
2016 ]
2017}
2018
mmoroz565e8df22016-03-04 18:17:202019fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:022020 sources = [
2021 "http/http_chunked_decoder_fuzzer.cc",
2022 ]
2023 deps = [
eroman02b4fe562016-03-04 12:15:162024 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022025 "//net",
2026 ]
mmoroz5fa27922016-03-22 19:42:192027 dict = "http/http_chunked_decoder_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:022028}
2029
mmenke8e9314bc2016-04-15 21:45:022030fuzzer_test("net_http_proxy_client_socket_fuzzer") {
2031 sources = [
2032 "http/http_proxy_client_socket_fuzzer.cc",
2033 ]
2034 deps = [
2035 ":net_fuzzer_test_support",
2036 ":test_support",
2037 "//base",
2038 "//net",
2039 ]
mmenkee15732f2016-04-18 18:47:492040 dict = "data/http/http.dict"
mmenke8e9314bc2016-04-15 21:45:022041}
2042
mmoroz565e8df22016-03-04 18:17:202043fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:022044 sources = [
2045 "quic/quic_crypto_framer_parse_message_fuzzer.cc",
2046 ]
2047 deps = [
eroman02b4fe562016-03-04 12:15:162048 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022049 "//base",
2050 "//net",
2051 ]
2052}
mmenke99b57172016-04-14 20:44:332053
2054fuzzer_test("net_socks_client_socket_fuzzer") {
2055 sources = [
2056 "socket/socks_client_socket_fuzzer.cc",
2057 ]
2058 deps = [
2059 ":net_fuzzer_test_support",
2060 ":test_support",
2061 "//base",
2062 "//net",
2063 ]
2064}
2065
2066fuzzer_test("net_socks5_client_socket_fuzzer") {
2067 sources = [
2068 "socket/socks5_client_socket_fuzzer.cc",
2069 ]
2070 deps = [
2071 ":net_fuzzer_test_support",
2072 ":test_support",
2073 "//base",
2074 "//net",
2075 ]
2076}
mmenkec951d412016-04-28 19:05:222077
2078fuzzer_test("net_url_request_fuzzer") {
2079 sources = [
2080 "url_request/url_request_fuzzer.cc",
2081 ]
2082 deps = [
2083 ":net_fuzzer_test_support",
2084 ":test_support",
2085 "//base",
2086 "//net",
2087 ]
2088 dict = "data/http/http.dict"
2089}