blob: 2ba91279b5ecd423376842a7c2e05045f451fee6 [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",
kapishnikovabe280e2016-04-14 19:07:16266 ]
267 }
268
269 if (is_win) {
270 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
271 } else { # !is_win
272 sources -= [
273 "base/winsock_init.cc",
274 "base/winsock_init.h",
275 "base/winsock_util.cc",
276 "base/winsock_util.h",
277 "proxy/proxy_resolver_winhttp.cc",
278 "proxy/proxy_resolver_winhttp.h",
279 ]
280 }
281
282 if (is_ios) {
283 # Add back some sources that were otherwise filtered out.
284 # iOS needs some Mac files.
285 net_unfiltered_sources += [
286 "base/mac/url_conversions.h",
287 "base/mac/url_conversions.mm",
288 "base/network_change_notifier_mac.cc",
289 "base/network_config_watcher_mac.cc",
290 "base/network_interfaces_mac.cc",
291 "base/network_interfaces_mac.h",
292 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53293 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16294 "proxy/proxy_resolver_mac.cc",
295 "proxy/proxy_server_mac.cc",
296 ]
297
298 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
299 }
300
kapishnikovabe280e2016-04-14 19:07:16301 if (is_ios || is_mac) {
302 sources += gypi_values.net_base_mac_ios_sources
303 }
304
305 if (is_android) {
306 deps += [ ":net_jni_headers" ]
307
308 # Add some Linux sources that were excluded by the filter, but which
309 # are needed.
310 net_unfiltered_sources += [
311 "base/address_tracker_linux.cc",
312 "base/address_tracker_linux.h",
313 "base/network_interfaces_linux.cc",
314 "base/network_interfaces_linux.h",
315 "base/platform_mime_util_linux.cc",
316 ]
317 }
318 } else {
319 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
320 }
xunjieli905496a2015-08-31 15:51:17321
322 # Add back some sources that were otherwise filtered out.
323 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16324 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17325 set_sources_assignment_filter(sources_assignment_filter)
326
327 cflags = []
kapishnikovabe280e2016-04-14 19:07:16328 configs += net_configs
xunjieli905496a2015-08-31 15:51:17329 public_configs = [ ":net_config" ]
330
kapishnikovabe280e2016-04-14 19:07:16331 public_deps += [ "//url" ]
[email protected]4625ade2014-04-15 19:26:44332
333 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44334 libs = [
rsesek02aa51c2016-05-11 02:13:57335 "CFNetwork.framework",
336 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19337 "Foundation.framework",
338 "Security.framework",
339 "SystemConfiguration.framework",
340 "resolv",
[email protected]4625ade2014-04-15 19:26:44341 ]
342 }
343
344 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44345 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19346 "CFNetwork.framework",
347 "MobileCoreServices.framework",
348 "Security.framework",
349 "SystemConfiguration.framework",
350 "resolv",
[email protected]4625ade2014-04-15 19:26:44351 ]
xunjieli06d93982015-08-27 17:13:02352 }
xunjieli4c8c6922015-08-27 16:02:40353
jam5332a632016-04-01 22:36:05354 if (is_win) {
355 libs = [
356 "crypt32.lib",
357 "dhcpcsvc.lib",
358 "iphlpapi.lib",
359 "rpcrt4.lib",
360 "secur32.lib",
361 "urlmon.lib",
362 "winhttp.lib",
363 ]
364 }
365
sergeyu99d83f92015-09-14 23:03:33366 if (!is_nacl) {
367 if (!disable_file_support) {
368 sources += gypi_values.net_file_support_sources
369 }
xunjieli06d93982015-08-27 17:13:02370
sergeyu99d83f92015-09-14 23:03:33371 if (!disable_ftp_support) {
372 sources += gypi_values.net_ftp_support_sources
373 }
xunjieli905496a2015-08-31 15:51:17374
sergeyu99d83f92015-09-14 23:03:33375 if (enable_websockets) {
376 sources += gypi_values.net_websockets_sources
377 }
xunjieli905496a2015-08-31 15:51:17378
sergeyu99d83f92015-09-14 23:03:33379 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16380 if (use_platform_icu_alternatives) {
381 if (is_android) {
382 # Use ICU alternative on Android.
383 sources += [
384 "base/net_string_util_icu_alternatives_android.cc",
385 "base/net_string_util_icu_alternatives_android.h",
386 ]
387 deps += [ ":net_jni_headers" ]
388 } else if (is_ios) {
389 # Use ICU alternative on iOS.
390 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
391 } else {
392 assert(false,
393 "ICU alternative is not implemented for platform: " + target_os)
394 }
395 } else {
396 # Use ICU.
397 deps += [
398 "//base:i18n",
399 "//third_party/icu",
400 ]
401 sources += [
402 "base/filename_util_icu.cc",
403 "base/net_string_util_icu.cc",
404 ]
405 }
eustasfbec9132015-12-30 14:56:51406
407 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16408 if (!disable_brotli_filter) {
409 sources += [ "filter/brotli_filter.cc" ]
410 deps += [ "//third_party/brotli" ]
411 } else {
412 sources += [ "filter/brotli_filter_disabled.cc" ]
413 }
[email protected]85191ed2014-05-15 00:41:49414 }
[email protected]4625ade2014-04-15 19:26:44415}
416
417grit("net_resources") {
418 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01419 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32420 outputs = [
421 "grit/net_resources.h",
422 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32423 ]
[email protected]4625ade2014-04-15 19:26:44424}
425
rtennetib6f1c0d2015-04-03 17:52:06426proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16427 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17428
rtennetib6f1c0d2015-04-03 17:52:06429 sources = [
430 "quic/proto/cached_network_parameters.proto",
431 "quic/proto/source_address_token.proto",
432 ]
433 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
434 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18435 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06436
437 defines = [ "NET_IMPLEMENTATION" ]
438
439 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
440}
441
Brett Wilson83fd4242014-09-02 19:45:33442static_library("extras") {
mef327a8e42014-08-29 17:10:03443 sources = gypi_values.net_extras_sources
444 configs += [ "//build/config/compiler:wexit_time_destructors" ]
445 deps = [
446 ":net",
brettwbc44c0a92015-02-20 22:30:39447 "//base",
mef327a8e42014-08-29 17:10:03448 "//sql:sql",
449 ]
450}
451
[email protected]8a3f8242014-06-05 18:05:12452static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44453 sources = [
454 "server/http_connection.cc",
455 "server/http_connection.h",
456 "server/http_server.cc",
457 "server/http_server.h",
458 "server/http_server_request_info.cc",
459 "server/http_server_request_info.h",
460 "server/http_server_response_info.cc",
461 "server/http_server_response_info.h",
462 "server/web_socket.cc",
463 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21464 "server/web_socket_encoder.cc",
465 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44466 ]
jambc6cc8e2014-11-14 17:56:29467 configs += [
brettwd1c719a2015-02-19 23:17:04468 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29469 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29470 ]
[email protected]4625ade2014-04-15 19:26:44471 deps = [
472 ":net",
473 "//base",
474 ]
475}
476
sdefresne3001f172016-03-16 10:30:03477if (!is_ios) {
478 executable("dump_cache") {
479 testonly = true
480 sources = [
481 "tools/dump_cache/dump_cache.cc",
482 "tools/dump_cache/dump_files.cc",
483 "tools/dump_cache/dump_files.h",
484 ]
[email protected]4625ade2014-04-15 19:26:44485
sdefresne3001f172016-03-16 10:30:03486 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
487 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31488
sdefresne3001f172016-03-16 10:30:03489 deps = [
490 ":net",
491 ":test_support",
492 "//base",
493 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07494 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03495 ]
496 }
[email protected]8603c5de2014-04-16 20:34:31497}
498
sdefresneb0a31642016-03-18 11:04:45499bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59500 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45501 testonly = true
sdefresne04f91142016-04-21 08:41:59502 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45503 outputs = [
504 "{{bundle_resources_dir}}/" +
505 "{{source_root_relative_dir}}/{{source_file_part}}",
506 ]
507}
508
[email protected]b2b2bf52014-05-28 20:26:57509source_set("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24510 testonly = true
[email protected]8603c5de2014-04-16 20:34:31511 sources = [
[email protected]8603c5de2014-04-16 20:34:31512 "base/load_timing_info_test_util.cc",
513 "base/load_timing_info_test_util.h",
514 "base/mock_file_stream.cc",
515 "base/mock_file_stream.h",
516 "base/test_completion_callback.cc",
517 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31518 "cert/mock_cert_verifier.cc",
519 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12520 "cert/mock_client_cert_verifier.cc",
521 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31522 "cookies/cookie_monster_store_test.cc",
523 "cookies/cookie_monster_store_test.h",
524 "cookies/cookie_store_test_callbacks.cc",
525 "cookies/cookie_store_test_callbacks.h",
526 "cookies/cookie_store_test_helpers.cc",
527 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56528 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31529 "disk_cache/disk_cache_test_base.cc",
530 "disk_cache/disk_cache_test_base.h",
531 "disk_cache/disk_cache_test_util.cc",
532 "disk_cache/disk_cache_test_util.h",
533 "dns/dns_test_util.cc",
534 "dns/dns_test_util.h",
535 "dns/mock_host_resolver.cc",
536 "dns/mock_host_resolver.h",
537 "dns/mock_mdns_socket_factory.cc",
538 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30539 "http/http_stream_factory_test_util.cc",
540 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12541 "http/http_transaction_test_util.cc",
542 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51543 "log/test_net_log.cc",
544 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46545 "log/test_net_log_entry.cc",
546 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59547 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46548 "log/test_net_log_util.h",
[email protected]8603c5de2014-04-16 20:34:31549 "proxy/mock_proxy_resolver.cc",
550 "proxy/mock_proxy_resolver.h",
551 "proxy/mock_proxy_script_fetcher.cc",
552 "proxy/mock_proxy_script_fetcher.h",
553 "proxy/proxy_config_service_common_unittest.cc",
554 "proxy/proxy_config_service_common_unittest.h",
555 "socket/socket_test_util.cc",
556 "socket/socket_test_util.h",
557 "test/cert_test_util.cc",
558 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07559 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23560 "test/channel_id_test_util.cc",
561 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31562 "test/ct_test_util.cc",
563 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45564 "test/embedded_test_server/default_handlers.cc",
565 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31566 "test/embedded_test_server/embedded_test_server.cc",
567 "test/embedded_test_server/embedded_test_server.h",
568 "test/embedded_test_server/http_connection.cc",
569 "test/embedded_test_server/http_connection.h",
570 "test/embedded_test_server/http_request.cc",
571 "test/embedded_test_server/http_request.h",
572 "test/embedded_test_server/http_response.cc",
573 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53574 "test/embedded_test_server/request_handler_util.cc",
575 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28576 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24577 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31578 "test/net_test_suite.cc",
579 "test/net_test_suite.h",
580 "test/python_utils.cc",
581 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24582 "test/scoped_disable_exit_on_dfatal.cc",
583 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36584 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43585 "test/test_data_directory.cc",
586 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43587 "test/url_request/ssl_certificate_error_job.cc",
588 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30589 "test/url_request/url_request_failed_job.cc",
590 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34591 "test/url_request/url_request_hanging_read_job.cc",
592 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40593 "test/url_request/url_request_mock_data_job.cc",
594 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44595 "test/url_request/url_request_slow_download_job.cc",
596 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31597 "url_request/test_url_fetcher_factory.cc",
598 "url_request/test_url_fetcher_factory.h",
599 "url_request/url_request_test_util.cc",
600 "url_request/url_request_test_util.h",
601 ]
sherouk3eee4a82015-09-01 10:42:33602 if (!is_ios) {
603 sources += [
604 "test/spawned_test_server/base_test_server.cc",
605 "test/spawned_test_server/base_test_server.h",
606 "test/spawned_test_server/local_test_server.cc",
607 "test/spawned_test_server/local_test_server.h",
608 "test/spawned_test_server/local_test_server_posix.cc",
609 "test/spawned_test_server/local_test_server_win.cc",
610 "test/spawned_test_server/spawned_test_server.h",
611 ]
612 }
[email protected]8603c5de2014-04-16 20:34:31613
brettwbc8b2a22015-07-28 18:24:42614 configs += [
615 "//build/config:precompiled_headers",
616
617 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
618 "//build/config/compiler:no_size_t_to_int_warning",
619 ]
[email protected]8603c5de2014-04-16 20:34:31620
Brett Wilsone53895272014-09-23 23:41:46621 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31622 "//base",
623 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12624 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23625 "//net",
[email protected]8603c5de2014-04-16 20:34:31626 "//net/tools/tld_cleanup",
627 "//testing/gmock",
628 "//testing/gtest",
629 "//url",
630 ]
631
sdefresne04f91142016-04-21 08:41:59632 deps = [
633 ":test_support_bundle_data",
634 ]
635
jbudorick944eb922016-06-20 15:38:30636 data = [
637 "data/",
638 ]
639
jamb533b7e2015-03-04 17:12:05640 if (!is_ios) {
641 public_deps += [ "//third_party/protobuf:py_proto" ]
642 }
643
svaldez2135be52016-04-20 16:34:53644 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24645 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31646 }
647
sherouk3eee4a82015-09-01 10:42:33648 if (is_android) {
649 sources += [
[email protected]8603c5de2014-04-16 20:34:31650 "test/spawned_test_server/remote_test_server.cc",
651 "test/spawned_test_server/remote_test_server.h",
652 "test/spawned_test_server/spawner_communicator.cc",
653 "test/spawned_test_server/spawner_communicator.h",
654 ]
655 }
656
657 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46658 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31659 }
660
661 if (!enable_mdns) {
662 sources -= [
663 "dns/mock_mdns_socket_factory.cc",
664 "dns/mock_mdns_socket_factory.h",
665 ]
666 }
667
davidben15d69d482014-09-29 18:24:08668 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24669 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07670 }
xunjielia6888202015-04-14 21:34:25671
672 if (!disable_file_support) {
673 sources += [
674 "test/url_request/url_request_mock_http_job.cc",
675 "test/url_request/url_request_mock_http_job.h",
676 "url_request/test_url_request_interceptor.cc",
677 "url_request/test_url_request_interceptor.h",
678 ]
679 }
[email protected]8603c5de2014-04-16 20:34:31680}
681
[email protected]ceeaac792014-06-25 05:14:43682source_set("balsa") {
683 sources = [
684 "tools/balsa/balsa_enums.h",
685 "tools/balsa/balsa_frame.cc",
686 "tools/balsa/balsa_frame.h",
687 "tools/balsa/balsa_headers.cc",
688 "tools/balsa/balsa_headers.h",
689 "tools/balsa/balsa_headers_token_utils.cc",
690 "tools/balsa/balsa_headers_token_utils.h",
691 "tools/balsa/balsa_visitor_interface.h",
692 "tools/balsa/http_message_constants.cc",
693 "tools/balsa/http_message_constants.h",
694 "tools/balsa/noop_balsa_visitor.h",
695 "tools/balsa/simple_buffer.cc",
696 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43697 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09698 "tools/quic/spdy_balsa_utils.cc",
699 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43700 ]
701 deps = [
702 ":net",
703 "//base",
[email protected]22fe91d2014-08-12 17:07:12704 "//url",
[email protected]ceeaac792014-06-25 05:14:43705 ]
706}
707
[email protected]8603c5de2014-04-16 20:34:31708if (use_v8_in_net) {
709 component("net_with_v8") {
710 sources = [
711 "proxy/proxy_resolver_v8.cc",
712 "proxy/proxy_resolver_v8.h",
713 "proxy/proxy_resolver_v8_tracing.cc",
714 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47715 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
716 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31717 "proxy/proxy_service_v8.cc",
718 "proxy/proxy_service_v8.h",
719 ]
720
721 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11722
[email protected]8603c5de2014-04-16 20:34:31723 configs += [
brettwd1c719a2015-02-19 23:17:04724 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31725 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11726 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31727 ]
728
Brett Wilsone53895272014-09-23 23:41:46729 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31730 ":net",
Brett Wilsone53895272014-09-23 23:41:46731 ]
732 deps = [
[email protected]8603c5de2014-04-16 20:34:31733 "//base",
734 "//gin",
735 "//url",
736 "//v8",
737 ]
738 }
739}
740
amistry7e6ebfdc82015-02-13 04:19:11741if (use_v8_in_net && !is_android) {
742 source_set("net_browser_services") {
743 sources = [
744 "dns/mojo_host_resolver_impl.cc",
745 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01746 "proxy/in_process_mojo_proxy_resolver_factory.cc",
747 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17748 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35749 "proxy/proxy_resolver_factory_mojo.cc",
750 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01751 "proxy/proxy_service_mojo.cc",
752 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11753 ]
754
755 public_deps = [
756 ":mojo_type_converters",
tfarina8ac4d17f2015-12-16 02:11:11757 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39758 "//base",
amistry07ff1402015-03-10 07:34:07759 "//mojo/common",
rockot85dce0862015-11-13 01:33:59760 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11761 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01762
763 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
764 # this dependency since in_process_mojo_proxy_resolver_factory creates
765 # the utility process side Mojo services in the browser process.
766 # Ultimately, this will go away when we only support out-of-process.
767 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11768 ]
769 }
770
771 source_set("mojo_type_converters") {
772 sources = [
amistry7ec58112015-02-26 06:03:00773 "dns/mojo_host_type_converters.cc",
774 "dns/mojo_host_type_converters.h",
775 "proxy/mojo_proxy_type_converters.cc",
776 "proxy/mojo_proxy_type_converters.h",
amistry7e6ebfdc82015-02-13 04:19:11777 ]
778
779 public_deps = [
780 ":net",
tfarina8ac4d17f2015-12-16 02:11:11781 "//base",
rockot85dce0862015-11-13 01:33:59782 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11783 "//net/interfaces",
amistry7e6ebfdc82015-02-13 04:19:11784 ]
785 }
sammc5403aa1d2015-02-25 04:59:21786
787 source_set("net_utility_services") {
788 sources = [
sammc6ac3fe52015-02-25 06:00:28789 "dns/host_resolver_mojo.cc",
790 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24791 "proxy/mojo_proxy_resolver_factory_impl.cc",
792 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21793 "proxy/mojo_proxy_resolver_impl.cc",
794 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51795 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21796 ]
797
rockot9509ec82015-04-14 02:50:56798 deps = [
799 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11800 "//base",
rockot9509ec82015-04-14 02:50:56801 ]
802
sammc5403aa1d2015-02-25 04:59:21803 public_deps = [
804 ":mojo_type_converters",
805 ":net",
806 "//mojo/common",
rockot85dce0862015-11-13 01:33:59807 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21808 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21809 ]
810 }
amistry7e6ebfdc82015-02-13 04:19:11811}
812
[email protected]8603c5de2014-04-16 20:34:31813if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40814 executable("cert_verify_tool") {
815 testonly = true
816 sources = [
817 "tools/cert_verify_tool/cert_verify_tool.cc",
818 "tools/cert_verify_tool/cert_verify_tool_util.cc",
819 "tools/cert_verify_tool/cert_verify_tool_util.h",
820 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
821 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42822 "tools/cert_verify_tool/verify_using_path_builder.cc",
823 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40824 ]
825
826 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
827 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
828 deps = [
829 ":net",
830 ":test_support",
831 "//base",
832 "//build/config/sanitizers:deps",
833 "//build/win:default_exe_manifest",
834 ]
835 }
836
[email protected]8603c5de2014-04-16 20:34:31837 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24838 testonly = true
scottmg34fb7e52014-12-03 23:27:24839 sources = [
840 "tools/crash_cache/crash_cache.cc",
841 ]
dpranke43276212015-02-20 02:55:19842
brettwd1c719a2015-02-19 23:17:04843 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
844 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31845 deps = [
846 ":net",
[email protected]b2b2bf52014-05-28 20:26:57847 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31848 "//base",
brettwba7a73d2015-08-31 22:17:39849 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07850 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31851 ]
852 }
853
854 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24855 testonly = true
scottmg34fb7e52014-12-03 23:27:24856 sources = [
857 "tools/crl_set_dump/crl_set_dump.cc",
858 ]
dpranke43276212015-02-20 02:55:19859
brettwd1c719a2015-02-19 23:17:04860 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
861 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31862 deps = [
863 ":net",
864 "//base",
brettwba7a73d2015-08-31 22:17:39865 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07866 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31867 ]
868 }
869
870 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24871 testonly = true
scottmg34fb7e52014-12-03 23:27:24872 sources = [
873 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
874 ]
dpranke43276212015-02-20 02:55:19875
brettwd1c719a2015-02-19 23:17:04876 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
877 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31878 deps = [
879 ":net",
880 "//base",
brettwba7a73d2015-08-31 22:17:39881 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07882 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31883 ]
884 }
885
886 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24887 testonly = true
[email protected]8603c5de2014-04-16 20:34:31888 sources = [
889 "tools/gdig/file_net_log.cc",
890 "tools/gdig/gdig.cc",
891 ]
892 deps = [
893 ":net",
894 "//base",
brettwba7a73d2015-08-31 22:17:39895 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07896 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31897 ]
898 }
899
900 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24901 testonly = true
scottmg34fb7e52014-12-03 23:27:24902 sources = [
903 "tools/get_server_time/get_server_time.cc",
904 ]
dpranke43276212015-02-20 02:55:19905
brettwd1c719a2015-02-19 23:17:04906 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
907 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31908 deps = [
909 ":net",
910 "//base",
911 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39912 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07913 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31914 "//url",
915 ]
916 }
917
rockot9c67e5f2015-03-12 20:01:21918 executable("hpack_example_generator") {
919 testonly = true
920 sources = [
921 "spdy/fuzzing/hpack_example_generator.cc",
922 ]
923
924 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
925 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
926 deps = [
rockot9c67e5f2015-03-12 20:01:21927 ":net",
brettwba7a73d2015-08-31 22:17:39928 "//base",
929 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07930 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21931 ]
932 }
933
934 executable("hpack_fuzz_mutator") {
935 testonly = true
936 sources = [
937 "spdy/fuzzing/hpack_fuzz_mutator.cc",
938 ]
939
940 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
941 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
942 deps = [
rockot9c67e5f2015-03-12 20:01:21943 ":net",
brettwba7a73d2015-08-31 22:17:39944 "//base",
945 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07946 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21947 ]
948 }
949
950 executable("hpack_fuzz_wrapper") {
951 testonly = true
952 sources = [
953 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
954 ]
955
956 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
957 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
958 deps = [
rockot9c67e5f2015-03-12 20:01:21959 ":net",
brettwba7a73d2015-08-31 22:17:39960 "//base",
961 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07962 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21963 ]
964 }
965
[email protected]8603c5de2014-04-16 20:34:31966 if (use_v8_in_net) {
967 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24968 testonly = true
scottmg34fb7e52014-12-03 23:27:24969 sources = [
970 "tools/net_watcher/net_watcher.cc",
971 ]
[email protected]8603c5de2014-04-16 20:34:31972 deps = [
973 ":net",
974 ":net_with_v8",
975 "//base",
brettwba7a73d2015-08-31 22:17:39976 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07977 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31978 ]
979
mostynbbf5e6cc2015-10-21 07:53:31980 if (is_desktop_linux && use_gconf && use_glib) {
xunjieli905496a2015-08-31 15:51:17981 configs += [
agrieve95ba4442016-04-25 15:47:13982 "//build/config/linux/gconf",
xunjieli905496a2015-08-31 15:51:17983 "//build/config/linux:glib",
984 ]
dsinclair8490e052016-05-04 15:33:33985 deps += [ "//build/linux/libgio" ]
[email protected]8603c5de2014-04-16 20:34:31986 }
987 }
988 }
989
990 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24991 testonly = true
scottmg34fb7e52014-12-03 23:27:24992 sources = [
993 "tools/testserver/run_testserver.cc",
994 ]
[email protected]8603c5de2014-04-16 20:34:31995 deps = [
[email protected]b2b2bf52014-05-28 20:26:57996 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31997 "//base",
998 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39999 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071000 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311001 "//testing/gtest",
1002 ]
1003 }
1004
1005 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:241006 testonly = true
scottmg34fb7e52014-12-03 23:27:241007 sources = [
rvargase23fcf652015-03-04 19:59:221008 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:241009 ]
dpranke43276212015-02-20 02:55:191010
brettwd1c719a2015-02-19 23:17:041011 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1012 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311013 deps = [
1014 ":net",
[email protected]b2b2bf52014-05-28 20:26:571015 ":test_support",
[email protected]8603c5de2014-04-16 20:34:311016 "//base",
brettwba7a73d2015-08-31 22:17:391017 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071018 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311019 ]
1020 }
1021
1022 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:241023 sources = [
1024 "tools/tld_cleanup/tld_cleanup.cc",
1025 ]
dpranke43276212015-02-20 02:55:191026
brettwd1c719a2015-02-19 23:17:041027 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1028 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311029 deps = [
1030 "//base",
1031 "//base:i18n",
brettwba7a73d2015-08-31 22:17:391032 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071033 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311034 "//net/tools/tld_cleanup",
1035 ]
1036 }
1037}
1038
gabadie0774bee2016-05-12 14:02:581039if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:421040 executable("cachetool") {
1041 testonly = true
1042 sources = [
1043 "tools/cachetool/cachetool.cc",
1044 ]
1045 deps = [
1046 ":net",
1047 ":test_support",
1048 "//base",
1049 ]
1050 }
1051
1052 executable("content_decoder_tool") {
1053 testonly = true
1054 sources = [
1055 "filter/mock_filter_context.cc",
1056 "filter/mock_filter_context.h",
1057 "tools/content_decoder_tool/content_decoder_tool.cc",
1058 ]
1059 deps = [
1060 ":net",
1061 ":test_support",
1062 "//base",
1063 "//url",
1064 ]
1065 }
gabadie0774bee2016-05-12 14:02:581066}
gabadie64af64a2016-03-29 16:36:421067
gabadie0774bee2016-05-12 14:02:581068if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121069 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311070 sources = [
1071 "tools/epoll_server/epoll_server.cc",
1072 "tools/epoll_server/epoll_server.h",
1073 ]
1074 deps = [
1075 ":net",
1076 "//base",
1077 ]
1078 }
1079
[email protected]8a3f8242014-06-05 18:05:121080 static_library("flip_in_mem_edsm_server_base") {
Brett Wilson8f80ad0b2014-09-08 19:50:241081 testonly = true
[email protected]8603c5de2014-04-16 20:34:311082 sources = [
[email protected]8603c5de2014-04-16 20:34:311083 "tools/flip_server/acceptor_thread.cc",
satorux933fc7a2015-02-13 07:09:101084 "tools/flip_server/acceptor_thread.h",
1085 "tools/flip_server/constants.h",
[email protected]8603c5de2014-04-16 20:34:311086 "tools/flip_server/flip_config.cc",
1087 "tools/flip_server/flip_config.h",
1088 "tools/flip_server/http_interface.cc",
1089 "tools/flip_server/http_interface.h",
[email protected]8603c5de2014-04-16 20:34:311090 "tools/flip_server/mem_cache.cc",
satorux933fc7a2015-02-13 07:09:101091 "tools/flip_server/mem_cache.h",
[email protected]8603c5de2014-04-16 20:34:311092 "tools/flip_server/output_ordering.cc",
1093 "tools/flip_server/output_ordering.h",
1094 "tools/flip_server/ring_buffer.cc",
1095 "tools/flip_server/ring_buffer.h",
1096 "tools/flip_server/sm_connection.cc",
1097 "tools/flip_server/sm_connection.h",
1098 "tools/flip_server/sm_interface.h",
[email protected]8603c5de2014-04-16 20:34:311099 "tools/flip_server/spdy_interface.cc",
1100 "tools/flip_server/spdy_interface.h",
satorux933fc7a2015-02-13 07:09:101101 "tools/flip_server/spdy_ssl.cc",
1102 "tools/flip_server/spdy_ssl.h",
[email protected]8603c5de2014-04-16 20:34:311103 "tools/flip_server/spdy_util.cc",
1104 "tools/flip_server/spdy_util.h",
1105 "tools/flip_server/streamer_interface.cc",
1106 "tools/flip_server/streamer_interface.h",
tfarinafb3c78c2016-02-09 22:13:521107 "tools/flip_server/tcp_socket_util.cc",
1108 "tools/flip_server/tcp_socket_util.h",
rvargas145310f2015-08-14 18:09:041109 "tools/flip_server/url_to_filename_encoder.cc",
1110 "tools/flip_server/url_to_filename_encoder.h",
1111 "tools/flip_server/url_utilities.cc",
1112 "tools/flip_server/url_utilities.h",
[email protected]8603c5de2014-04-16 20:34:311113 ]
1114 deps = [
1115 ":balsa",
1116 ":epoll_server",
1117 ":net",
1118 "//base",
[email protected]edfd0f42014-07-22 18:20:371119 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311120 ]
1121 }
1122
1123 executable("flip_in_mem_edsm_server_unittests") {
Brett Wilson8f80ad0b2014-09-08 19:50:241124 testonly = true
[email protected]8603c5de2014-04-16 20:34:311125 sources = [
1126 "tools/flip_server/flip_test_utils.cc",
1127 "tools/flip_server/flip_test_utils.h",
1128 "tools/flip_server/http_interface_test.cc",
1129 "tools/flip_server/mem_cache_test.cc",
1130 "tools/flip_server/run_all_tests.cc",
1131 "tools/flip_server/spdy_interface_test.cc",
rvargas145310f2015-08-14 18:09:041132 "tools/flip_server/url_to_filename_encoder_unittest.cc",
1133 "tools/flip_server/url_utilities_unittest.cc",
[email protected]8603c5de2014-04-16 20:34:311134 ]
1135 deps = [
brettwbc44c0a92015-02-20 22:30:391136 ":balsa",
[email protected]8603c5de2014-04-16 20:34:311137 ":flip_in_mem_edsm_server_base",
1138 ":net",
[email protected]b2b2bf52014-05-28 20:26:571139 ":test_support",
brettwba7a73d2015-08-31 22:17:391140 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311141 "//testing/gmock",
agrieved7a71c882015-11-20 19:53:281142 "//testing/gtest",
[email protected]edfd0f42014-07-22 18:20:371143 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311144 ]
1145 }
1146
1147 executable("flip_in_mem_edsm_server") {
Brett Wilson8f80ad0b2014-09-08 19:50:241148 testonly = true
scottmg34fb7e52014-12-03 23:27:241149 sources = [
1150 "tools/flip_server/flip_in_mem_edsm_server.cc",
1151 ]
[email protected]8603c5de2014-04-16 20:34:311152 deps = [
brettwbc44c0a92015-02-20 22:30:391153 ":balsa",
[email protected]8603c5de2014-04-16 20:34:311154 ":flip_in_mem_edsm_server_base",
1155 ":net",
1156 "//base",
brettwba7a73d2015-08-31 22:17:391157 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311158 ]
1159 }
1160
rch216445c2015-03-27 00:23:281161 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311162 sources = [
1163 "tools/quic/quic_client.cc",
1164 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311165 "tools/quic/quic_default_packet_writer.cc",
1166 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071167 "tools/quic/quic_epoll_alarm_factory.cc",
1168 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311169 "tools/quic/quic_epoll_clock.cc",
1170 "tools/quic/quic_epoll_clock.h",
1171 "tools/quic/quic_epoll_connection_helper.cc",
1172 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551173 "tools/quic/quic_packet_reader.cc",
1174 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311175 "tools/quic/quic_packet_writer_wrapper.cc",
1176 "tools/quic/quic_packet_writer_wrapper.h",
1177 "tools/quic/quic_server.cc",
1178 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311179 "tools/quic/quic_socket_utils.cc",
1180 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311181 ]
1182 deps = [
1183 ":balsa",
1184 ":epoll_server",
1185 ":net",
tfarina8ac4d17f2015-12-16 02:11:111186 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311187 "//base",
1188 "//base/third_party/dynamic_annotations",
1189 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371190 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311191 "//url",
1192 ]
1193 }
1194
rch216445c2015-03-27 00:23:281195 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241196 sources = [
1197 "tools/quic/quic_client_bin.cc",
1198 ]
[email protected]8603c5de2014-04-16 20:34:311199 deps = [
brettwbc44c0a92015-02-20 22:30:391200 ":balsa",
rch216445c2015-03-27 00:23:281201 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281202 ":epoll_server",
rch216445c2015-03-27 00:23:281203 ":net",
1204 ":simple_quic_tools",
1205 "//base",
brettwba7a73d2015-08-31 22:17:391206 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281207 "//third_party/boringssl",
1208 ]
1209 }
1210
1211 executable("epoll_quic_server") {
1212 sources = [
1213 "tools/quic/quic_server_bin.cc",
1214 ]
1215 deps = [
1216 ":balsa",
rch216445c2015-03-27 00:23:281217 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281218 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311219 ":net",
rchda78df5a2015-03-22 05:16:371220 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311221 "//base",
brettwba7a73d2015-08-31 22:17:391222 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371223 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311224 ]
1225 }
[email protected]8603c5de2014-04-16 20:34:311226}
1227
[email protected]ef0eb442014-05-15 09:32:181228if (is_android) {
1229 generate_jni("net_jni_headers") {
1230 sources = [
tbansalc04b7aa2016-07-02 06:54:371231 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181232 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1233 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1234 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011235 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181236 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531237 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171238 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181239 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1240 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1241 "android/java/src/org/chromium/net/X509Util.java",
1242 ]
1243 jni_package = "net"
1244 }
cjhopmandad5f4272014-09-05 01:00:551245 generate_jni("net_test_jni_headers") {
1246 sources = [
1247 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531248 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351249 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551250 ]
brettwcdccaf02015-07-27 16:27:091251 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551252 }
[email protected]ef0eb442014-05-15 09:32:181253}
[email protected]8603c5de2014-04-16 20:34:311254
1255if (is_android || is_linux) {
1256 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241257 testonly = true
scottmg34fb7e52014-12-03 23:27:241258 sources = [
1259 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1260 ]
[email protected]8603c5de2014-04-16 20:34:311261 deps = [
1262 ":net",
1263 "//base",
brettwba7a73d2015-08-31 22:17:391264 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311265 ]
1266 }
1267}
[email protected]8a3f8242014-06-05 18:05:121268
rch47ad01f2015-03-20 21:17:231269source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491270 sources = [
ckrasica7fd1242016-05-14 20:36:011271 "tools/quic/chlo_extractor.cc",
1272 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311273 "tools/quic/quic_client_base.cc",
1274 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051275 "tools/quic/quic_client_session.cc",
1276 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561277 "tools/quic/quic_dispatcher.cc",
1278 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211279 "tools/quic/quic_in_memory_cache.cc",
1280 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561281 "tools/quic/quic_per_connection_packet_writer.cc",
1282 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581283 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491284 "tools/quic/quic_simple_client.cc",
1285 "tools/quic/quic_simple_client.h",
rch216445c2015-03-27 00:23:281286 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1287 "tools/quic/quic_simple_per_connection_packet_writer.h",
1288 "tools/quic/quic_simple_server.cc",
1289 "tools/quic/quic_simple_server.h",
1290 "tools/quic/quic_simple_server_packet_writer.cc",
1291 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391292 "tools/quic/quic_simple_server_session.cc",
1293 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311294 "tools/quic/quic_simple_server_session_helper.cc",
1295 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401296 "tools/quic/quic_simple_server_stream.cc",
1297 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051298 "tools/quic/quic_spdy_client_stream.cc",
1299 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211300 "tools/quic/quic_time_wait_list_manager.cc",
1301 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371302 "tools/quic/stateless_rejector.cc",
1303 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371304 "tools/quic/synchronous_host_resolver.cc",
1305 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491306 ]
1307 deps = [
tfarina8ac4d17f2015-12-16 02:11:111308 ":balsa",
rcha9d12ce12015-03-19 23:06:491309 ":net",
1310 "//base",
rch47ad01f2015-03-20 21:17:231311 "//base/third_party/dynamic_annotations",
1312 "//url",
1313 ]
1314}
1315
ricea7afa5232015-12-01 20:55:231316action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
1317 script = "//net/tools/dafsa/make_dafsa.py"
1318 sources = [
1319 "base/stale_while_revalidate_experiment_domains.gperf",
1320 ]
1321 outputs = [
1322 "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1323 ]
1324 args = [
1325 "{{source}}",
1326 rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1327 root_build_dir),
1328 ]
1329}
1330
1331source_set("stale_while_revalidate_experiment_domains") {
1332 sources = [
1333 "base/stale_while_revalidate_experiment_domains.cc",
1334 "base/stale_while_revalidate_experiment_domains.h",
1335 ]
1336 deps = [
1337 ":net",
1338 ":stale_while_revalidate_experiment_domains_dafsa",
1339 "//base",
1340 ]
kapishnikovabe280e2016-04-14 19:07:161341 configs += net_configs
ricea7afa5232015-12-01 20:55:231342}
1343
sherouk51b4b098b2015-08-10 09:00:431344if (!is_ios) {
1345 executable("quic_client") {
1346 sources = [
1347 "tools/quic/quic_simple_client_bin.cc",
1348 ]
1349 deps = [
1350 ":net",
1351 ":simple_quic_tools",
1352 "//base",
brettwba7a73d2015-08-31 22:17:391353 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071354 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431355 "//url",
1356 ]
1357 }
1358 executable("quic_server") {
1359 sources = [
1360 "tools/quic/quic_simple_server_bin.cc",
1361 ]
1362 deps = [
1363 ":net",
1364 ":simple_quic_tools",
1365 "//base",
brettwba7a73d2015-08-31 22:17:391366 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071367 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431368 "//third_party/boringssl",
1369 "//third_party/protobuf:protobuf_lite",
1370 ]
1371 }
rchf80f62d12016-05-11 00:47:311372 executable("quic_packet_printer") {
1373 sources = [
1374 "tools/quic/quic_packet_printer_bin.cc",
1375 ]
1376 deps = [
1377 ":net",
1378 ":simple_quic_tools",
1379 "//base",
1380 "//build/config/sanitizers:deps",
1381 "//build/win:default_exe_manifest",
1382 "//third_party/boringssl",
1383 "//third_party/protobuf:protobuf_lite",
1384 ]
1385 }
danzh1401f0a2016-05-19 13:41:101386 executable("crypto_message_printer") {
1387 sources = [
1388 "tools/quic/crypto_message_printer_bin.cc",
1389 ]
1390 deps = [
1391 ":net",
1392 "//base",
1393 "//build/config/sanitizers:deps",
1394 "//build/win:default_exe_manifest",
1395 ]
1396 }
rch216445c2015-03-27 00:23:281397}
1398
sdefresneb0a31642016-03-18 11:04:451399bundle_data("net_unittests_bundle_data") {
1400 testonly = true
sdefresne04f91142016-04-21 08:41:591401 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451402 outputs = [
1403 "{{bundle_resources_dir}}/" +
1404 "{{source_root_relative_dir}}/{{source_file_part}}",
1405 ]
1406}
1407
dpranke64df2832015-07-31 22:33:361408test("net_unittests") {
1409 sources = gypi_values.net_test_sources
1410
1411 configs += [
1412 "//build/config:precompiled_headers",
1413
1414 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1415 "//build/config/compiler:no_size_t_to_int_warning",
1416 ]
1417 defines = []
1418
1419 deps = [
1420 ":balsa",
1421 ":extras",
dpranke64df2832015-07-31 22:33:361422 ":net",
sdefresneb0a31642016-03-18 11:04:451423 ":net_unittests_bundle_data",
dpranke64df2832015-07-31 22:33:361424 ":simple_quic_tools",
ricea7afa5232015-12-01 20:55:231425 ":stale_while_revalidate_experiment_domains",
dpranke64df2832015-07-31 22:33:361426 ":test_support",
1427 "//base",
1428 "//base:i18n",
dpranke64df2832015-07-31 22:33:361429 "//base/third_party/dynamic_annotations",
1430 "//crypto",
1431 "//crypto:platform",
1432 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361433 "//net/base/registry_controlled_domains",
1434 "//sql",
1435 "//testing/gmock",
1436 "//testing/gtest",
1437 "//third_party/zlib",
1438 "//url",
kapishnikovabe280e2016-04-14 19:07:161439 "//url:url_features",
dpranke64df2832015-07-31 22:33:361440 ]
1441
jbudorick944eb922016-06-20 15:38:301442 data = []
svaldez2135be52016-04-20 16:34:531443 data_deps = [
1444 "third_party/nist-pkits/",
1445 ]
dpranke64df2832015-07-31 22:33:361446
1447 if (is_linux || is_mac || is_win) {
1448 deps += [
1449 "//third_party/pyftpdlib/",
1450 "//third_party/pywebsocket/",
1451 "//third_party/tlslite/",
1452 ]
mattm6586b432016-02-12 04:52:391453 data_deps += [
dpranke64df2832015-07-31 22:33:361454 "//third_party/pyftpdlib/",
1455 "//third_party/pywebsocket/",
1456 "//third_party/tlslite/",
1457 ]
1458 data += [
1459 "tools/testserver/",
1460 "//third_party/pyftpdlib/",
1461 "//third_party/pywebsocket/",
1462 "//third_party/tlslite/",
1463 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231464 ]
1465 }
1466
dpranke64df2832015-07-31 22:33:361467 if (is_desktop_linux) {
1468 deps += [ ":epoll_quic_tools" ]
1469 }
1470 if (is_linux) {
1471 sources += gypi_values.net_linux_test_sources
1472 deps += [
1473 ":epoll_quic_tools",
1474 ":epoll_server",
1475 ":flip_in_mem_edsm_server_base",
brettwbc8b2a22015-07-28 18:24:421476 ]
dpranke64df2832015-07-31 22:33:361477 }
[email protected]8a3f8242014-06-05 18:05:121478
dpranke64df2832015-07-31 22:33:361479 if (is_mac || is_ios) {
1480 sources += gypi_values.net_base_test_mac_ios_sources
1481 }
1482
1483 if (is_chromeos) {
1484 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1485 }
1486
1487 if (v8_use_external_startup_data) {
1488 deps += [ "//gin" ]
1489 }
1490
1491 if (!use_nss_certs) {
1492 sources -= [
1493 "cert/nss_cert_database_unittest.cc",
1494 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121495 ]
dpranke64df2832015-07-31 22:33:361496 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411497 sources -= [
dpranke64df2832015-07-31 22:33:361498 "cert/nss_cert_database_chromeos_unittest.cc",
1499 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411500 ]
brettw43ae0e12015-07-14 22:12:361501 }
[email protected]8a3f8242014-06-05 18:05:121502 }
dpranke64df2832015-07-31 22:33:361503
dpranke64df2832015-07-31 22:33:361504 if (use_kerberos) {
1505 defines += [ "USE_KERBEROS" ]
1506 }
1507
1508 # These are excluded on Android, because the actual Kerberos support, which
1509 # these test, is in a separate app on Android.
1510 if (!use_kerberos || is_android) {
1511 sources -= [
1512 "http/http_auth_gssapi_posix_unittest.cc",
1513 "http/mock_gssapi_library_posix.cc",
1514 "http/mock_gssapi_library_posix.h",
1515 ]
1516 }
1517 if (!use_kerberos) {
1518 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1519 }
1520
svaldez2135be52016-04-20 16:34:531521 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531522 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361523 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1524 }
1525
1526 if (!use_openssl_certs) {
1527 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1528 }
1529
jbudorick1273a842016-04-01 19:50:051530 if (enable_websockets) {
1531 sources += gypi_values.net_websockets_test_sources
1532 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361533 }
1534
1535 if (disable_file_support) {
1536 sources -= [
1537 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161538 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041539 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361540 "url_request/url_request_file_job_unittest.cc",
1541 ]
1542 }
1543
1544 if (disable_ftp_support) {
1545 sources -= [
1546 "ftp/ftp_auth_cache_unittest.cc",
1547 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1548 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361549 "ftp/ftp_directory_listing_parser_unittest.cc",
1550 "ftp/ftp_directory_listing_parser_unittest.h",
1551 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1552 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1553 "ftp/ftp_network_transaction_unittest.cc",
1554 "ftp/ftp_util_unittest.cc",
1555 "url_request/url_request_ftp_job_unittest.cc",
1556 ]
1557 }
1558
1559 if (!enable_built_in_dns) {
1560 sources -= [
1561 "dns/address_sorter_posix_unittest.cc",
1562 "dns/address_sorter_unittest.cc",
1563 ]
1564 }
1565
xunjieli905496a2015-08-31 15:51:171566 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361567 deps += [ ":net_with_v8" ]
1568 } else {
1569 sources -= [
1570 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1571 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1572 "proxy/proxy_resolver_v8_unittest.cc",
1573 ]
1574 }
1575
1576 if (use_v8_in_net && !is_android) {
1577 deps += [
1578 ":net_browser_services",
1579 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081580 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361581 ]
1582 } else {
1583 sources -= [
1584 "dns/host_resolver_mojo_unittest.cc",
1585 "dns/mojo_host_resolver_impl_unittest.cc",
1586 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1587 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1588 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1589 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1590 "proxy/proxy_service_mojo_unittest.cc",
1591 ]
1592 }
1593
1594 if (!enable_mdns) {
1595 sources -= [
1596 "dns/mdns_cache_unittest.cc",
1597 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361598 ]
1599 }
1600
1601 if (is_ios) {
dpranke64df2832015-07-31 22:33:361602 sources -= [
1603 # TODO(droger): The following tests are disabled because the
1604 # implementation is missing or incomplete.
1605 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1606 "base/keygen_handler_unittest.cc",
1607 "disk_cache/backend_unittest.cc",
1608 "disk_cache/blockfile/block_files_unittest.cc",
1609
1610 # Need to read input data files.
1611 "filter/gzip_filter_unittest.cc",
1612 "socket/ssl_server_socket_unittest.cc",
1613 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1614
1615 # Need TestServer.
1616 "cert_net/cert_net_fetcher_impl_unittest.cc",
1617 "proxy/proxy_script_fetcher_impl_unittest.cc",
1618 "socket/ssl_client_socket_unittest.cc",
1619 "url_request/url_fetcher_impl_unittest.cc",
1620 "url_request/url_request_context_builder_unittest.cc",
1621
1622 # Needs GetAppOutput().
1623 "test/python_utils_unittest.cc",
1624
1625 # The following tests are disabled because they don't apply to
1626 # iOS.
1627 # OS is not "linux" or "freebsd" or "openbsd".
1628 "socket/unix_domain_client_socket_posix_unittest.cc",
1629 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361630 ]
1631 }
1632
kapishnikovabe280e2016-04-14 19:07:161633 # Unit tests that aren't supported by the current ICU alternatives on Android.
1634 if (is_android && use_platform_icu_alternatives) {
1635 sources -= [
1636 "base/filename_util_unittest.cc",
1637 "base/url_util_unittest.cc",
1638 "cert/x509_certificate_unittest.cc",
1639 "proxy/proxy_resolver_v8_unittest.cc",
1640 "url_request/url_request_job_unittest.cc",
1641 ]
1642 }
1643
1644 # Unit tests that are not supported by the current ICU alternatives on iOS.
1645 if (is_ios && use_platform_icu_alternatives) {
1646 sources -= [
1647 "base/filename_util_unittest.cc",
1648 "base/url_util_unittest.cc",
1649 "cert/x509_certificate_unittest.cc",
1650 "http/http_auth_handler_basic_unittest.cc",
1651 "http/http_auth_handler_digest_unittest.cc",
1652 "http/http_auth_handler_factory_unittest.cc",
1653 "http/http_auth_unittest.cc",
1654 "http/http_content_disposition_unittest.cc",
1655 "http/http_network_transaction_unittest.cc",
1656 "http/http_proxy_client_socket_pool_unittest.cc",
1657 "socket/ssl_client_socket_pool_unittest.cc",
1658 "spdy/spdy_network_transaction_unittest.cc",
1659 "spdy/spdy_proxy_client_socket_unittest.cc",
1660 "url_request/url_request_job_unittest.cc",
1661 "url_request/url_request_unittest.cc",
1662 ]
1663 }
1664
1665 # Exclude brotli test if the support for brotli is disabled.
1666 # Also, exclude the test from iOS for now (needs to read input data files).
1667 if (disable_brotli_filter || is_ios) {
1668 sources -= [ "filter/brotli_filter_unittest.cc" ]
1669 }
1670
dpranke64df2832015-07-31 22:33:361671 if (is_android) {
agrieve732db3a2016-04-26 19:18:191672 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191673 deps += [
1674 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451675 "//base:base_java_unittest_support",
1676 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451677 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191678 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451679 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191680
1681 # TODO(mmenke): This depends on test_support_base, which depends on
1682 # icu. Figure out a way to remove that dependency.
1683 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071684 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451685 ]
1686 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361687 set_sources_assignment_filter([])
1688 sources += [ "base/address_tracker_linux_unittest.cc" ]
1689 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001690 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361691 }
1692
dpranke64df2832015-07-31 22:33:361693 # Symbols for crashes when running tests on swarming.
1694 if (symbol_level > 0) {
1695 if (is_win) {
1696 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1697 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131698 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1699 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361700 }
1701 }
maksim.sisovc69619d2016-05-20 19:23:551702
1703 if (is_win) {
mmenke91c17162016-06-02 16:03:231704 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551705 }
dpranke64df2832015-07-31 22:33:361706}
1707
1708# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031709if (!is_ios) {
1710 # TODO(crbug.com/594965): this should be converted to "app" template and
1711 # enabled on iOS too.
1712 executable("net_perftests") {
1713 testonly = true
1714 sources = [
1715 "base/mime_sniffer_perftest.cc",
1716 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051717 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031718 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1719 "proxy/proxy_resolver_perftest.cc",
1720 "udp/udp_socket_perftest.cc",
1721 ]
[email protected]8a3f8242014-06-05 18:05:121722
sdefresne3001f172016-03-16 10:30:031723 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1724 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1725 deps = [
1726 ":extras",
1727 ":net",
1728 ":test_support",
1729 "//base",
1730 "//base:i18n",
1731 "//base/test:test_support_perf",
1732 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071733 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031734 "//testing/gtest",
1735 "//url",
1736 ]
rockot9c67e5f2015-03-12 20:01:211737
sdefresne3001f172016-03-16 10:30:031738 if (enable_websockets) {
1739 sources += [ "websockets/websocket_frame_perftest.cc" ]
1740 }
rockot9c67e5f2015-03-12 20:01:211741
sdefresne3001f172016-03-16 10:30:031742 if (use_v8_in_net) {
1743 deps += [ ":net_with_v8" ]
1744 } else {
1745 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1746 }
rockot9c67e5f2015-03-12 20:01:211747 }
rockot9c67e5f2015-03-12 20:01:211748}
mefff34b822016-01-11 15:28:081749
eromanfe8659e2016-03-02 23:47:021750# Fuzzers
1751
eroman02b4fe562016-03-04 12:15:161752source_set("net_fuzzer_test_support") {
1753 testonly = true
1754
1755 sources = [
mmenkec951d412016-04-28 19:05:221756 "base/fuzzed_data_provider.cc",
1757 "base/fuzzed_data_provider.h",
eroman02b4fe562016-03-04 12:15:161758 "base/fuzzer_test_support.cc",
mmenke99b57172016-04-14 20:44:331759 "socket/fuzzed_socket.cc",
1760 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221761 "socket/fuzzed_socket_factory.cc",
1762 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231763 "udp/fuzzed_datagram_client_socket.cc",
1764 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161765 ]
1766 deps = [
1767 "//base",
1768 "//base:i18n",
mmenke99b57172016-04-14 20:44:331769 "//net",
eroman02b4fe562016-03-04 12:15:161770 ]
1771}
1772
csharrisonaa314dc2016-04-29 20:15:371773fuzzer_test("net_data_job_fuzzer") {
1774 sources = [
1775 "url_request/url_request_data_job_fuzzer.cc",
1776 ]
1777 deps = [
1778 ":net_fuzzer_test_support",
1779 ":test_support",
1780 "//base",
1781 "//net",
1782 ]
1783}
1784
mmenke5552a6a2016-03-28 23:11:591785fuzzer_test("net_mime_sniffer_fuzzer") {
1786 sources = [
1787 "base/mime_sniffer_fuzzer.cc",
1788 ]
1789 deps = [
1790 ":net_fuzzer_test_support",
1791 "//base",
1792 "//net",
1793 ]
mmoroz4a561d32016-07-07 17:45:121794 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591795}
1796
mmoroz565e8df22016-03-04 18:17:201797fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301798 sources = [
1799 "proxy/parse_proxy_list_pac_fuzzer.cc",
1800 ]
1801 deps = [
eroman02b4fe562016-03-04 12:15:161802 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301803 "//net",
1804 ]
1805}
1806
mmoroz565e8df22016-03-04 18:17:201807fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301808 sources = [
1809 "proxy/parse_proxy_list_fuzzer.cc",
1810 ]
1811 deps = [
eroman02b4fe562016-03-04 12:15:161812 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301813 "//net",
1814 ]
1815}
1816
mmoroz565e8df22016-03-04 18:17:201817fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301818 sources = [
1819 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1820 ]
1821 deps = [
eroman02b4fe562016-03-04 12:15:161822 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301823 "//net",
1824 ]
1825}
1826
mmoroz565e8df22016-03-04 18:17:201827fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301828 sources = [
1829 "proxy/parse_proxy_rules_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_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301838 sources = [
1839 "base/parse_data_url_fuzzer.cc",
1840 ]
1841 deps = [
eroman02b4fe562016-03-04 12:15:161842 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301843 "//base",
1844 "//net",
1845 ]
mmoroz4a561d32016-07-07 17:45:121846 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301847}
1848
mmoroz565e8df22016-03-04 18:17:201849fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301850 sources = [
1851 "base/parse_ip_pattern_fuzzer.cc",
1852 ]
1853 deps = [
eroman02b4fe562016-03-04 12:15:161854 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301855 "//net",
1856 ]
1857}
1858
mmoroz565e8df22016-03-04 18:17:201859fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301860 sources = [
1861 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1862 ]
1863 deps = [
eroman02b4fe562016-03-04 12:15:161864 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301865 "//base",
eromane6264fd2016-03-02 22:46:301866 "//net",
1867 ]
mmoroz4a561d32016-07-07 17:45:121868 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301869}
1870
mattmafe43b82016-04-28 20:40:541871fuzzer_test("net_cert_verify_name_match_fuzzer") {
1872 sources = [
1873 "cert/internal/verify_name_match_fuzzer.cc",
1874 ]
1875 deps = [
1876 ":net_fuzzer_test_support",
1877 "//base",
1878 "//net",
1879 ]
1880}
1881
mattm2c637da42016-04-28 02:55:591882fuzzer_test("net_cert_normalize_name_fuzzer") {
1883 sources = [
1884 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1885 ]
1886 deps = [
1887 "//base",
1888 "//net",
1889 ]
1890}
1891
mattmafe43b82016-04-28 20:40:541892fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1893 sources = [
1894 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1895 ]
1896 deps = [
1897 ":net_fuzzer_test_support",
1898 "//base",
1899 "//net",
1900 ]
1901}
1902
nharper85d3b6f2016-04-28 20:58:191903fuzzer_test("net_cert_parse_certificate_fuzzer") {
1904 sources = [
1905 "cert/internal/parse_certificate_fuzzer.cc",
1906 ]
1907 deps = [
1908 "//base",
1909 "//net",
1910 ]
1911}
1912
mmoroz565e8df22016-03-04 18:17:201913fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301914 sources = [
1915 "cookies/parse_cookie_line_fuzzer.cc",
1916 ]
1917 deps = [
eroman02b4fe562016-03-04 12:15:161918 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301919 "//net",
1920 ]
1921}
1922
mmoroz565e8df22016-03-04 18:17:201923fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021924 sources = [
1925 "dns/dns_record_fuzzer.cc",
1926 ]
1927 deps = [
eroman02b4fe562016-03-04 12:15:161928 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021929 "//base",
1930 "//net",
1931 ]
mmoroz4a561d32016-07-07 17:45:121932 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021933}
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 ]
mmoroz4a561d32016-07-07 17:45:121944 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341945}
1946
mmenke91c17162016-06-02 16:03:231947fuzzer_test("net_host_resolver_impl_fuzzer") {
1948 sources = [
1949 "dns/fuzzed_host_resolver.cc",
1950 "dns/fuzzed_host_resolver.h",
1951 "dns/host_resolver_impl_fuzzer.cc",
1952 ]
1953 deps = [
1954 ":net_fuzzer_test_support",
1955 ":test_support",
1956 "//base",
1957 "//net",
1958 ]
mmoroz4a561d32016-07-07 17:45:121959 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231960}
1961
mmenke44e8e9c2016-03-29 18:38:571962fuzzer_test("net_http_stream_parser_fuzzer") {
1963 sources = [
1964 "http/http_stream_parser_fuzzer.cc",
1965 ]
1966 deps = [
1967 ":net_fuzzer_test_support",
1968 ":test_support",
1969 "//base",
1970 "//net",
1971 ]
mmoroz4a561d32016-07-07 17:45:121972 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571973}
1974
mmoroz565e8df22016-03-04 18:17:201975fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021976 sources = [
1977 "ftp/ftp_ctrl_response_fuzzer.cc",
1978 ]
1979 deps = [
eroman02b4fe562016-03-04 12:15:161980 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021981 "//base",
1982 "//net",
1983 ]
1984}
1985
mmoroz565e8df22016-03-04 18:17:201986fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021987 sources = [
1988 "ftp/ftp_directory_listing_fuzzer.cc",
1989 ]
1990 deps = [
eroman02b4fe562016-03-04 12:15:161991 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021992 "//base",
eromanfe8659e2016-03-02 23:47:021993 "//net",
1994 ]
1995}
1996
mmoroz565e8df22016-03-04 18:17:201997fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021998 sources = [
1999 "base/unescape_url_component_fuzzer.cc",
2000 ]
2001 deps = [
eroman02b4fe562016-03-04 12:15:162002 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022003 "//base",
2004 "//net",
2005 ]
mmoroz34eb0082016-03-11 14:32:012006 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:332007 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:022008}
2009
mmoroz565e8df22016-03-04 18:17:202010fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:022011 sources = [
2012 "websockets/websocket_frame_parser_fuzzer.cc",
2013 ]
2014 deps = [
eroman02b4fe562016-03-04 12:15:162015 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022016 "//net",
2017 ]
mmoroz4a561d32016-07-07 17:45:122018 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:022019}
2020
mmoroz565e8df22016-03-04 18:17:202021fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:022022 sources = [
2023 "http/http_chunked_decoder_fuzzer.cc",
2024 ]
2025 deps = [
eroman02b4fe562016-03-04 12:15:162026 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022027 "//net",
2028 ]
2029}
2030
mmenke8e9314bc2016-04-15 21:45:022031fuzzer_test("net_http_proxy_client_socket_fuzzer") {
2032 sources = [
2033 "http/http_proxy_client_socket_fuzzer.cc",
2034 ]
2035 deps = [
2036 ":net_fuzzer_test_support",
2037 ":test_support",
2038 "//base",
2039 "//net",
2040 ]
mmoroz4a561d32016-07-07 17:45:122041 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:022042}
2043
mmoroz565e8df22016-03-04 18:17:202044fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:022045 sources = [
2046 "quic/quic_crypto_framer_parse_message_fuzzer.cc",
2047 ]
2048 deps = [
eroman02b4fe562016-03-04 12:15:162049 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022050 "//base",
2051 "//net",
2052 ]
2053}
mmenke99b57172016-04-14 20:44:332054
2055fuzzer_test("net_socks_client_socket_fuzzer") {
2056 sources = [
2057 "socket/socks_client_socket_fuzzer.cc",
2058 ]
2059 deps = [
2060 ":net_fuzzer_test_support",
2061 ":test_support",
2062 "//base",
2063 "//net",
2064 ]
2065}
2066
2067fuzzer_test("net_socks5_client_socket_fuzzer") {
2068 sources = [
2069 "socket/socks5_client_socket_fuzzer.cc",
2070 ]
2071 deps = [
2072 ":net_fuzzer_test_support",
2073 ":test_support",
2074 "//base",
2075 "//net",
2076 ]
2077}
mmenkec951d412016-04-28 19:05:222078
2079fuzzer_test("net_url_request_fuzzer") {
2080 sources = [
2081 "url_request/url_request_fuzzer.cc",
2082 ]
2083 deps = [
2084 ":net_fuzzer_test_support",
2085 ":test_support",
2086 "//base",
2087 "//net",
2088 ]
mmoroz4a561d32016-07-07 17:45:122089 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222090}