blob: 90fd51791a318ba1c1de09b61ed73faec660a914 [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")
eromane6264fd2016-03-02 22:46:3011import("//testing/libfuzzer/fuzzer_test.gni")
qsrfb5251d12015-01-21 15:57:2212import("//testing/test.gni")
rockot9c67e5f2015-03-12 20:01:2113import("//third_party/icu/config.gni")
rtennetib6f1c0d2015-04-03 17:52:0614import("//third_party/protobuf/proto_library.gni")
tfarinae597851a2015-10-06 23:14:4115import("//tools/grit/grit_rule.gni")
kapishnikovabe280e2016-04-14 19:07:1616import("//url/features.gni")
machenbachd65ec5c2016-07-22 09:05:2317import("//v8/gni/v8.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
mostynb75e8d632016-08-02 16:46:53198 if (use_gio) {
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",
mattm9c63d442016-09-03 00:45:51207 "cert/internal/trust_store_nss.cc",
208 "cert/internal/trust_store_nss.h",
kapishnikovabe280e2016-04-14 19:07:16209 "cert/nss_cert_database.cc",
210 "cert/nss_cert_database.h",
211 "cert/x509_certificate_nss.cc",
212 "ssl/client_cert_store_nss.cc",
213 "ssl/client_cert_store_nss.h",
214 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
215 "third_party/mozilla_security_manager/nsKeygenHandler.h",
216 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
217 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
218 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
219 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
220 ]
221 if (is_chromeos) {
222 # These were already removed on non-ChromeOS.
223 sources -= [
224 "cert/nss_cert_database_chromeos.cc",
225 "cert/nss_cert_database_chromeos.h",
226 "cert/nss_profile_filter_chromeos.cc",
227 "cert/nss_profile_filter_chromeos.h",
228 ]
229 }
230 sources -= [
231 "ssl/client_key_store.cc",
232 "ssl/client_key_store.h",
233 "ssl/ssl_platform_key_nss.cc",
234 ]
svaldez2135be52016-04-20 16:34:53235 } else {
davidben8d569f52016-07-29 16:03:18236 sources += [
237 "third_party/nss/ssl/cmpcert.cc",
238 "third_party/nss/ssl/cmpcert.h",
239 ]
kapishnikovabe280e2016-04-14 19:07:16240 }
241
svaldez2135be52016-04-20 16:34:53242 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16243 # These files are part of the partial implementation of NSS for
244 # cert verification, so keep them in that case.
245 sources -= [
246 "cert/cert_verify_proc_nss.cc",
247 "cert/cert_verify_proc_nss.h",
248 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53249 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16250 "cert_net/nss_ocsp.cc",
251 "cert_net/nss_ocsp.h",
252 ]
253 }
254
kapishnikovabe280e2016-04-14 19:07:16255 if (is_chromecast && use_nss_certs) {
256 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
257 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
258 }
259
260 if (!enable_mdns) {
261 sources -= [
262 "dns/mdns_cache.cc",
263 "dns/mdns_cache.h",
264 "dns/mdns_client.cc",
265 "dns/mdns_client.h",
266 "dns/mdns_client_impl.cc",
267 "dns/mdns_client_impl.h",
kapishnikovabe280e2016-04-14 19:07:16268 ]
269 }
270
271 if (is_win) {
272 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
273 } else { # !is_win
274 sources -= [
275 "base/winsock_init.cc",
276 "base/winsock_init.h",
277 "base/winsock_util.cc",
278 "base/winsock_util.h",
279 "proxy/proxy_resolver_winhttp.cc",
280 "proxy/proxy_resolver_winhttp.h",
281 ]
282 }
283
284 if (is_ios) {
285 # Add back some sources that were otherwise filtered out.
286 # iOS needs some Mac files.
287 net_unfiltered_sources += [
288 "base/mac/url_conversions.h",
289 "base/mac/url_conversions.mm",
290 "base/network_change_notifier_mac.cc",
291 "base/network_config_watcher_mac.cc",
292 "base/network_interfaces_mac.cc",
293 "base/network_interfaces_mac.h",
294 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53295 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16296 "proxy/proxy_resolver_mac.cc",
297 "proxy/proxy_server_mac.cc",
298 ]
299
300 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
301 }
302
kapishnikovabe280e2016-04-14 19:07:16303 if (is_ios || is_mac) {
304 sources += gypi_values.net_base_mac_ios_sources
305 }
306
307 if (is_android) {
308 deps += [ ":net_jni_headers" ]
309
310 # Add some Linux sources that were excluded by the filter, but which
311 # are needed.
312 net_unfiltered_sources += [
313 "base/address_tracker_linux.cc",
314 "base/address_tracker_linux.h",
315 "base/network_interfaces_linux.cc",
316 "base/network_interfaces_linux.h",
317 "base/platform_mime_util_linux.cc",
318 ]
319 }
320 } else {
321 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
322 }
xunjieli905496a2015-08-31 15:51:17323
324 # Add back some sources that were otherwise filtered out.
325 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16326 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17327 set_sources_assignment_filter(sources_assignment_filter)
328
329 cflags = []
kapishnikovabe280e2016-04-14 19:07:16330 configs += net_configs
xunjieli905496a2015-08-31 15:51:17331 public_configs = [ ":net_config" ]
332
kapishnikovabe280e2016-04-14 19:07:16333 public_deps += [ "//url" ]
[email protected]4625ade2014-04-15 19:26:44334
335 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44336 libs = [
rsesek02aa51c2016-05-11 02:13:57337 "CFNetwork.framework",
338 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19339 "Foundation.framework",
340 "Security.framework",
341 "SystemConfiguration.framework",
342 "resolv",
[email protected]4625ade2014-04-15 19:26:44343 ]
344 }
345
346 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44347 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19348 "CFNetwork.framework",
349 "MobileCoreServices.framework",
350 "Security.framework",
351 "SystemConfiguration.framework",
352 "resolv",
[email protected]4625ade2014-04-15 19:26:44353 ]
xunjieli06d93982015-08-27 17:13:02354 }
xunjieli4c8c6922015-08-27 16:02:40355
jam5332a632016-04-01 22:36:05356 if (is_win) {
357 libs = [
358 "crypt32.lib",
359 "dhcpcsvc.lib",
360 "iphlpapi.lib",
361 "rpcrt4.lib",
362 "secur32.lib",
363 "urlmon.lib",
364 "winhttp.lib",
365 ]
366 }
367
sergeyu99d83f92015-09-14 23:03:33368 if (!is_nacl) {
369 if (!disable_file_support) {
370 sources += gypi_values.net_file_support_sources
371 }
xunjieli06d93982015-08-27 17:13:02372
sergeyu99d83f92015-09-14 23:03:33373 if (!disable_ftp_support) {
374 sources += gypi_values.net_ftp_support_sources
375 }
xunjieli905496a2015-08-31 15:51:17376
sergeyu99d83f92015-09-14 23:03:33377 if (enable_websockets) {
378 sources += gypi_values.net_websockets_sources
379 }
xunjieli905496a2015-08-31 15:51:17380
sergeyu99d83f92015-09-14 23:03:33381 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16382 if (use_platform_icu_alternatives) {
383 if (is_android) {
384 # Use ICU alternative on Android.
torned8b7d9252016-08-04 19:41:45385 sources += [ "base/net_string_util_icu_alternatives_android.cc" ]
kapishnikovabe280e2016-04-14 19:07:16386 deps += [ ":net_jni_headers" ]
387 } else if (is_ios) {
388 # Use ICU alternative on iOS.
389 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
390 } else {
391 assert(false,
392 "ICU alternative is not implemented for platform: " + target_os)
393 }
394 } else {
395 # Use ICU.
396 deps += [
397 "//base:i18n",
398 "//third_party/icu",
399 ]
400 sources += [
401 "base/filename_util_icu.cc",
402 "base/net_string_util_icu.cc",
403 ]
404 }
eustasfbec9132015-12-30 14:56:51405
406 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16407 if (!disable_brotli_filter) {
408 sources += [ "filter/brotli_filter.cc" ]
409 deps += [ "//third_party/brotli" ]
410 } else {
411 sources += [ "filter/brotli_filter_disabled.cc" ]
412 }
[email protected]85191ed2014-05-15 00:41:49413 }
[email protected]4625ade2014-04-15 19:26:44414}
415
416grit("net_resources") {
417 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01418 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32419 outputs = [
420 "grit/net_resources.h",
421 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32422 ]
[email protected]4625ade2014-04-15 19:26:44423}
424
rtennetib6f1c0d2015-04-03 17:52:06425proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16426 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17427
rtennetib6f1c0d2015-04-03 17:52:06428 sources = [
rchd4db7c152016-07-29 21:58:12429 "quic/core/proto/cached_network_parameters.proto",
430 "quic/core/proto/source_address_token.proto",
rtennetib6f1c0d2015-04-03 17:52:06431 ]
432 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
433 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18434 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06435
436 defines = [ "NET_IMPLEMENTATION" ]
437
438 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
439}
440
Brett Wilson83fd4242014-09-02 19:45:33441static_library("extras") {
mef327a8e42014-08-29 17:10:03442 sources = gypi_values.net_extras_sources
443 configs += [ "//build/config/compiler:wexit_time_destructors" ]
444 deps = [
445 ":net",
brettwbc44c0a92015-02-20 22:30:39446 "//base",
mef327a8e42014-08-29 17:10:03447 "//sql:sql",
448 ]
449}
450
[email protected]8a3f8242014-06-05 18:05:12451static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44452 sources = [
453 "server/http_connection.cc",
454 "server/http_connection.h",
455 "server/http_server.cc",
456 "server/http_server.h",
457 "server/http_server_request_info.cc",
458 "server/http_server_request_info.h",
459 "server/http_server_response_info.cc",
460 "server/http_server_response_info.h",
461 "server/web_socket.cc",
462 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21463 "server/web_socket_encoder.cc",
464 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44465 ]
jambc6cc8e2014-11-14 17:56:29466 configs += [
brettwd1c719a2015-02-19 23:17:04467 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29468 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29469 ]
[email protected]4625ade2014-04-15 19:26:44470 deps = [
471 ":net",
472 "//base",
473 ]
474}
475
sdefresne3001f172016-03-16 10:30:03476if (!is_ios) {
477 executable("dump_cache") {
478 testonly = true
479 sources = [
480 "tools/dump_cache/dump_cache.cc",
481 "tools/dump_cache/dump_files.cc",
482 "tools/dump_cache/dump_files.h",
483 ]
[email protected]4625ade2014-04-15 19:26:44484
sdefresne3001f172016-03-16 10:30:03485 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
486 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31487
sdefresne3001f172016-03-16 10:30:03488 deps = [
489 ":net",
490 ":test_support",
491 "//base",
492 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07493 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03494 ]
495 }
[email protected]8603c5de2014-04-16 20:34:31496}
497
sdefresneb0a31642016-03-18 11:04:45498bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59499 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45500 testonly = true
sdefresne04f91142016-04-21 08:41:59501 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45502 outputs = [
503 "{{bundle_resources_dir}}/" +
504 "{{source_root_relative_dir}}/{{source_file_part}}",
505 ]
506}
507
brettw3871f522016-07-14 22:08:34508static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24509 testonly = true
[email protected]8603c5de2014-04-16 20:34:31510 sources = [
[email protected]8603c5de2014-04-16 20:34:31511 "base/load_timing_info_test_util.cc",
512 "base/load_timing_info_test_util.h",
513 "base/mock_file_stream.cc",
514 "base/mock_file_stream.h",
515 "base/test_completion_callback.cc",
516 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31517 "cert/mock_cert_verifier.cc",
518 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12519 "cert/mock_client_cert_verifier.cc",
520 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31521 "cookies/cookie_monster_store_test.cc",
522 "cookies/cookie_monster_store_test.h",
523 "cookies/cookie_store_test_callbacks.cc",
524 "cookies/cookie_store_test_callbacks.h",
525 "cookies/cookie_store_test_helpers.cc",
526 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56527 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31528 "disk_cache/disk_cache_test_base.cc",
529 "disk_cache/disk_cache_test_base.h",
530 "disk_cache/disk_cache_test_util.cc",
531 "disk_cache/disk_cache_test_util.h",
532 "dns/dns_test_util.cc",
533 "dns/dns_test_util.h",
534 "dns/mock_host_resolver.cc",
535 "dns/mock_host_resolver.h",
536 "dns/mock_mdns_socket_factory.cc",
537 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30538 "http/http_stream_factory_test_util.cc",
539 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12540 "http/http_transaction_test_util.cc",
541 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51542 "log/test_net_log.cc",
543 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46544 "log/test_net_log_entry.cc",
545 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59546 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46547 "log/test_net_log_util.h",
[email protected]8603c5de2014-04-16 20:34:31548 "proxy/mock_proxy_resolver.cc",
549 "proxy/mock_proxy_resolver.h",
550 "proxy/mock_proxy_script_fetcher.cc",
551 "proxy/mock_proxy_script_fetcher.h",
552 "proxy/proxy_config_service_common_unittest.cc",
553 "proxy/proxy_config_service_common_unittest.h",
554 "socket/socket_test_util.cc",
555 "socket/socket_test_util.h",
556 "test/cert_test_util.cc",
557 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07558 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23559 "test/channel_id_test_util.cc",
560 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31561 "test/ct_test_util.cc",
562 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45563 "test/embedded_test_server/default_handlers.cc",
564 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31565 "test/embedded_test_server/embedded_test_server.cc",
566 "test/embedded_test_server/embedded_test_server.h",
567 "test/embedded_test_server/http_connection.cc",
568 "test/embedded_test_server/http_connection.h",
569 "test/embedded_test_server/http_request.cc",
570 "test/embedded_test_server/http_request.h",
571 "test/embedded_test_server/http_response.cc",
572 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53573 "test/embedded_test_server/request_handler_util.cc",
574 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28575 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24576 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31577 "test/net_test_suite.cc",
578 "test/net_test_suite.h",
579 "test/python_utils.cc",
580 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24581 "test/scoped_disable_exit_on_dfatal.cc",
582 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36583 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43584 "test/test_data_directory.cc",
585 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43586 "test/url_request/ssl_certificate_error_job.cc",
587 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30588 "test/url_request/url_request_failed_job.cc",
589 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34590 "test/url_request/url_request_hanging_read_job.cc",
591 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40592 "test/url_request/url_request_mock_data_job.cc",
593 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44594 "test/url_request/url_request_slow_download_job.cc",
595 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31596 "url_request/test_url_fetcher_factory.cc",
597 "url_request/test_url_fetcher_factory.h",
598 "url_request/url_request_test_util.cc",
599 "url_request/url_request_test_util.h",
600 ]
sherouk3eee4a82015-09-01 10:42:33601 if (!is_ios) {
602 sources += [
603 "test/spawned_test_server/base_test_server.cc",
604 "test/spawned_test_server/base_test_server.h",
605 "test/spawned_test_server/local_test_server.cc",
606 "test/spawned_test_server/local_test_server.h",
607 "test/spawned_test_server/local_test_server_posix.cc",
608 "test/spawned_test_server/local_test_server_win.cc",
609 "test/spawned_test_server/spawned_test_server.h",
610 ]
611 }
[email protected]8603c5de2014-04-16 20:34:31612
brettwbc8b2a22015-07-28 18:24:42613 configs += [
614 "//build/config:precompiled_headers",
615
616 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
617 "//build/config/compiler:no_size_t_to_int_warning",
618 ]
[email protected]8603c5de2014-04-16 20:34:31619
Brett Wilsone53895272014-09-23 23:41:46620 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31621 "//base",
622 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12623 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23624 "//net",
[email protected]8603c5de2014-04-16 20:34:31625 "//net/tools/tld_cleanup",
626 "//testing/gmock",
627 "//testing/gtest",
628 "//url",
629 ]
630
rsesek7d4ab4bc2016-07-22 17:35:13631 deps = []
sdefresne04f91142016-04-21 08:41:59632
jbudorick944eb922016-06-20 15:38:30633 data = [
634 "data/",
635 ]
636
rsesek7d4ab4bc2016-07-22 17:35:13637 if (is_ios) {
638 deps += [ ":test_support_bundle_data" ]
639 } else {
jamb533b7e2015-03-04 17:12:05640 public_deps += [ "//third_party/protobuf:py_proto" ]
641 }
642
svaldez2135be52016-04-20 16:34:53643 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24644 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31645 }
646
sherouk3eee4a82015-09-01 10:42:33647 if (is_android) {
648 sources += [
[email protected]8603c5de2014-04-16 20:34:31649 "test/spawned_test_server/remote_test_server.cc",
650 "test/spawned_test_server/remote_test_server.h",
651 "test/spawned_test_server/spawner_communicator.cc",
652 "test/spawned_test_server/spawner_communicator.h",
653 ]
654 }
655
656 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46657 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31658 }
659
660 if (!enable_mdns) {
661 sources -= [
662 "dns/mock_mdns_socket_factory.cc",
663 "dns/mock_mdns_socket_factory.h",
664 ]
665 }
666
davidben15d69d482014-09-29 18:24:08667 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24668 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07669 }
xunjielia6888202015-04-14 21:34:25670
671 if (!disable_file_support) {
672 sources += [
673 "test/url_request/url_request_mock_http_job.cc",
674 "test/url_request/url_request_mock_http_job.h",
675 "url_request/test_url_request_interceptor.cc",
676 "url_request/test_url_request_interceptor.h",
677 ]
678 }
[email protected]8603c5de2014-04-16 20:34:31679}
680
[email protected]ceeaac792014-06-25 05:14:43681source_set("balsa") {
682 sources = [
683 "tools/balsa/balsa_enums.h",
684 "tools/balsa/balsa_frame.cc",
685 "tools/balsa/balsa_frame.h",
686 "tools/balsa/balsa_headers.cc",
687 "tools/balsa/balsa_headers.h",
688 "tools/balsa/balsa_headers_token_utils.cc",
689 "tools/balsa/balsa_headers_token_utils.h",
690 "tools/balsa/balsa_visitor_interface.h",
691 "tools/balsa/http_message_constants.cc",
692 "tools/balsa/http_message_constants.h",
693 "tools/balsa/noop_balsa_visitor.h",
694 "tools/balsa/simple_buffer.cc",
695 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43696 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09697 "tools/quic/spdy_balsa_utils.cc",
698 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43699 ]
700 deps = [
701 ":net",
702 "//base",
[email protected]22fe91d2014-08-12 17:07:12703 "//url",
[email protected]ceeaac792014-06-25 05:14:43704 ]
705}
706
[email protected]8603c5de2014-04-16 20:34:31707if (use_v8_in_net) {
708 component("net_with_v8") {
709 sources = [
710 "proxy/proxy_resolver_v8.cc",
711 "proxy/proxy_resolver_v8.h",
712 "proxy/proxy_resolver_v8_tracing.cc",
713 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47714 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
715 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31716 "proxy/proxy_service_v8.cc",
717 "proxy/proxy_service_v8.h",
718 ]
719
720 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11721
[email protected]8603c5de2014-04-16 20:34:31722 configs += [
brettwd1c719a2015-02-19 23:17:04723 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31724 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11725 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31726 ]
727
Brett Wilsone53895272014-09-23 23:41:46728 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31729 ":net",
Brett Wilsone53895272014-09-23 23:41:46730 ]
731 deps = [
[email protected]8603c5de2014-04-16 20:34:31732 "//base",
733 "//gin",
734 "//url",
735 "//v8",
736 ]
737 }
738}
739
amistry7e6ebfdc82015-02-13 04:19:11740if (use_v8_in_net && !is_android) {
741 source_set("net_browser_services") {
742 sources = [
743 "dns/mojo_host_resolver_impl.cc",
744 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01745 "proxy/in_process_mojo_proxy_resolver_factory.cc",
746 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17747 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35748 "proxy/proxy_resolver_factory_mojo.cc",
749 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01750 "proxy/proxy_service_mojo.cc",
751 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11752 ]
753
754 public_deps = [
755 ":mojo_type_converters",
tfarina8ac4d17f2015-12-16 02:11:11756 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39757 "//base",
amistry07ff1402015-03-10 07:34:07758 "//mojo/common",
rockot85dce0862015-11-13 01:33:59759 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11760 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01761
762 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
763 # this dependency since in_process_mojo_proxy_resolver_factory creates
764 # the utility process side Mojo services in the browser process.
765 # Ultimately, this will go away when we only support out-of-process.
766 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11767 ]
768 }
769
770 source_set("mojo_type_converters") {
771 sources = [
amistry7ec58112015-02-26 06:03:00772 "dns/mojo_host_type_converters.cc",
773 "dns/mojo_host_type_converters.h",
774 "proxy/mojo_proxy_type_converters.cc",
775 "proxy/mojo_proxy_type_converters.h",
amistry7e6ebfdc82015-02-13 04:19:11776 ]
777
778 public_deps = [
779 ":net",
tfarina8ac4d17f2015-12-16 02:11:11780 "//base",
rockot85dce0862015-11-13 01:33:59781 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11782 "//net/interfaces",
amistry7e6ebfdc82015-02-13 04:19:11783 ]
784 }
sammc5403aa1d2015-02-25 04:59:21785
786 source_set("net_utility_services") {
787 sources = [
sammc6ac3fe52015-02-25 06:00:28788 "dns/host_resolver_mojo.cc",
789 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24790 "proxy/mojo_proxy_resolver_factory_impl.cc",
791 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21792 "proxy/mojo_proxy_resolver_impl.cc",
793 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51794 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21795 ]
796
rockot9509ec82015-04-14 02:50:56797 deps = [
798 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11799 "//base",
rockot9509ec82015-04-14 02:50:56800 ]
801
sammc5403aa1d2015-02-25 04:59:21802 public_deps = [
803 ":mojo_type_converters",
804 ":net",
805 "//mojo/common",
rockot85dce0862015-11-13 01:33:59806 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21807 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21808 ]
809 }
amistry7e6ebfdc82015-02-13 04:19:11810}
811
[email protected]8603c5de2014-04-16 20:34:31812if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40813 executable("cert_verify_tool") {
814 testonly = true
815 sources = [
816 "tools/cert_verify_tool/cert_verify_tool.cc",
817 "tools/cert_verify_tool/cert_verify_tool_util.cc",
818 "tools/cert_verify_tool/cert_verify_tool_util.h",
819 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
820 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42821 "tools/cert_verify_tool/verify_using_path_builder.cc",
822 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40823 ]
824
825 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
826 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
827 deps = [
828 ":net",
829 ":test_support",
830 "//base",
831 "//build/config/sanitizers:deps",
832 "//build/win:default_exe_manifest",
833 ]
834 }
835
[email protected]8603c5de2014-04-16 20:34:31836 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24837 testonly = true
scottmg34fb7e52014-12-03 23:27:24838 sources = [
839 "tools/crash_cache/crash_cache.cc",
840 ]
dpranke43276212015-02-20 02:55:19841
brettwd1c719a2015-02-19 23:17:04842 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
843 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31844 deps = [
845 ":net",
[email protected]b2b2bf52014-05-28 20:26:57846 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31847 "//base",
brettwba7a73d2015-08-31 22:17:39848 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07849 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31850 ]
851 }
852
853 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24854 testonly = true
scottmg34fb7e52014-12-03 23:27:24855 sources = [
856 "tools/crl_set_dump/crl_set_dump.cc",
857 ]
dpranke43276212015-02-20 02:55:19858
brettwd1c719a2015-02-19 23:17:04859 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
860 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31861 deps = [
862 ":net",
863 "//base",
brettwba7a73d2015-08-31 22:17:39864 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07865 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31866 ]
867 }
868
869 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24870 testonly = true
scottmg34fb7e52014-12-03 23:27:24871 sources = [
872 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
873 ]
dpranke43276212015-02-20 02:55:19874
brettwd1c719a2015-02-19 23:17:04875 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
876 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31877 deps = [
878 ":net",
879 "//base",
brettwba7a73d2015-08-31 22:17:39880 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07881 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31882 ]
883 }
884
885 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24886 testonly = true
[email protected]8603c5de2014-04-16 20:34:31887 sources = [
888 "tools/gdig/file_net_log.cc",
889 "tools/gdig/gdig.cc",
890 ]
891 deps = [
892 ":net",
893 "//base",
brettwba7a73d2015-08-31 22:17:39894 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07895 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31896 ]
897 }
898
899 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24900 testonly = true
scottmg34fb7e52014-12-03 23:27:24901 sources = [
902 "tools/get_server_time/get_server_time.cc",
903 ]
dpranke43276212015-02-20 02:55:19904
brettwd1c719a2015-02-19 23:17:04905 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
906 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31907 deps = [
908 ":net",
909 "//base",
910 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39911 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07912 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31913 "//url",
914 ]
915 }
916
rockot9c67e5f2015-03-12 20:01:21917 executable("hpack_example_generator") {
918 testonly = true
919 sources = [
920 "spdy/fuzzing/hpack_example_generator.cc",
921 ]
922
923 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
924 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
925 deps = [
rockot9c67e5f2015-03-12 20:01:21926 ":net",
brettwba7a73d2015-08-31 22:17:39927 "//base",
928 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07929 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21930 ]
931 }
932
933 executable("hpack_fuzz_mutator") {
934 testonly = true
935 sources = [
936 "spdy/fuzzing/hpack_fuzz_mutator.cc",
937 ]
938
939 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
940 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
941 deps = [
rockot9c67e5f2015-03-12 20:01:21942 ":net",
brettwba7a73d2015-08-31 22:17:39943 "//base",
944 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07945 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21946 ]
947 }
948
949 executable("hpack_fuzz_wrapper") {
950 testonly = true
951 sources = [
952 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
953 ]
954
955 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
956 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
957 deps = [
rockot9c67e5f2015-03-12 20:01:21958 ":net",
brettwba7a73d2015-08-31 22:17:39959 "//base",
960 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07961 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21962 ]
963 }
964
[email protected]8603c5de2014-04-16 20:34:31965 if (use_v8_in_net) {
966 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24967 testonly = true
scottmg34fb7e52014-12-03 23:27:24968 sources = [
969 "tools/net_watcher/net_watcher.cc",
970 ]
[email protected]8603c5de2014-04-16 20:34:31971 deps = [
972 ":net",
973 ":net_with_v8",
974 "//base",
brettwba7a73d2015-08-31 22:17:39975 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07976 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31977 ]
[email protected]8603c5de2014-04-16 20:34:31978 }
979 }
980
981 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24982 testonly = true
scottmg34fb7e52014-12-03 23:27:24983 sources = [
984 "tools/testserver/run_testserver.cc",
985 ]
[email protected]8603c5de2014-04-16 20:34:31986 deps = [
[email protected]b2b2bf52014-05-28 20:26:57987 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31988 "//base",
989 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39990 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07991 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31992 "//testing/gtest",
993 ]
994 }
995
996 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24997 testonly = true
scottmg34fb7e52014-12-03 23:27:24998 sources = [
rvargase23fcf652015-03-04 19:59:22999 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:241000 ]
dpranke43276212015-02-20 02:55:191001
brettwd1c719a2015-02-19 23:17:041002 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1003 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311004 deps = [
1005 ":net",
[email protected]b2b2bf52014-05-28 20:26:571006 ":test_support",
[email protected]8603c5de2014-04-16 20:34:311007 "//base",
brettwba7a73d2015-08-31 22:17:391008 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071009 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311010 ]
1011 }
1012
1013 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:241014 sources = [
1015 "tools/tld_cleanup/tld_cleanup.cc",
1016 ]
dpranke43276212015-02-20 02:55:191017
brettwd1c719a2015-02-19 23:17:041018 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1019 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:311020 deps = [
1021 "//base",
1022 "//base:i18n",
brettwba7a73d2015-08-31 22:17:391023 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071024 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:311025 "//net/tools/tld_cleanup",
1026 ]
1027 }
1028}
1029
gabadie0774bee2016-05-12 14:02:581030if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:421031 executable("cachetool") {
1032 testonly = true
1033 sources = [
1034 "tools/cachetool/cachetool.cc",
1035 ]
1036 deps = [
1037 ":net",
1038 ":test_support",
1039 "//base",
1040 ]
1041 }
1042
1043 executable("content_decoder_tool") {
1044 testonly = true
1045 sources = [
1046 "filter/mock_filter_context.cc",
1047 "filter/mock_filter_context.h",
1048 "tools/content_decoder_tool/content_decoder_tool.cc",
1049 ]
1050 deps = [
1051 ":net",
1052 ":test_support",
1053 "//base",
1054 "//url",
1055 ]
1056 }
gabadie0774bee2016-05-12 14:02:581057}
gabadie64af64a2016-03-29 16:36:421058
gabadie0774bee2016-05-12 14:02:581059if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121060 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311061 sources = [
1062 "tools/epoll_server/epoll_server.cc",
1063 "tools/epoll_server/epoll_server.h",
1064 ]
1065 deps = [
1066 ":net",
1067 "//base",
1068 ]
1069 }
1070
rch216445c2015-03-27 00:23:281071 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311072 sources = [
1073 "tools/quic/quic_client.cc",
1074 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311075 "tools/quic/quic_default_packet_writer.cc",
1076 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071077 "tools/quic/quic_epoll_alarm_factory.cc",
1078 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311079 "tools/quic/quic_epoll_clock.cc",
1080 "tools/quic/quic_epoll_clock.h",
1081 "tools/quic/quic_epoll_connection_helper.cc",
1082 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551083 "tools/quic/quic_packet_reader.cc",
1084 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311085 "tools/quic/quic_packet_writer_wrapper.cc",
1086 "tools/quic/quic_packet_writer_wrapper.h",
1087 "tools/quic/quic_server.cc",
1088 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311089 "tools/quic/quic_socket_utils.cc",
1090 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311091 ]
1092 deps = [
1093 ":balsa",
1094 ":epoll_server",
1095 ":net",
tfarina8ac4d17f2015-12-16 02:11:111096 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311097 "//base",
1098 "//base/third_party/dynamic_annotations",
1099 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371100 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311101 "//url",
1102 ]
1103 }
1104
rch216445c2015-03-27 00:23:281105 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241106 sources = [
1107 "tools/quic/quic_client_bin.cc",
1108 ]
[email protected]8603c5de2014-04-16 20:34:311109 deps = [
brettwbc44c0a92015-02-20 22:30:391110 ":balsa",
rch216445c2015-03-27 00:23:281111 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281112 ":epoll_server",
rch216445c2015-03-27 00:23:281113 ":net",
1114 ":simple_quic_tools",
1115 "//base",
brettwba7a73d2015-08-31 22:17:391116 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281117 "//third_party/boringssl",
1118 ]
1119 }
1120
1121 executable("epoll_quic_server") {
1122 sources = [
1123 "tools/quic/quic_server_bin.cc",
1124 ]
1125 deps = [
1126 ":balsa",
rch216445c2015-03-27 00:23:281127 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281128 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311129 ":net",
rchda78df5a2015-03-22 05:16:371130 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311131 "//base",
brettwba7a73d2015-08-31 22:17:391132 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371133 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311134 ]
1135 }
[email protected]8603c5de2014-04-16 20:34:311136}
1137
[email protected]ef0eb442014-05-15 09:32:181138if (is_android) {
1139 generate_jni("net_jni_headers") {
1140 sources = [
tbansalc04b7aa2016-07-02 06:54:371141 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181142 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1143 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1144 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011145 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181146 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531147 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171148 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181149 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1150 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1151 "android/java/src/org/chromium/net/X509Util.java",
1152 ]
1153 jni_package = "net"
1154 }
cjhopmandad5f4272014-09-05 01:00:551155 generate_jni("net_test_jni_headers") {
1156 sources = [
1157 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531158 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351159 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551160 ]
brettwcdccaf02015-07-27 16:27:091161 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551162 }
[email protected]ef0eb442014-05-15 09:32:181163}
[email protected]8603c5de2014-04-16 20:34:311164
1165if (is_android || is_linux) {
1166 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241167 testonly = true
scottmg34fb7e52014-12-03 23:27:241168 sources = [
1169 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1170 ]
[email protected]8603c5de2014-04-16 20:34:311171 deps = [
1172 ":net",
1173 "//base",
brettwba7a73d2015-08-31 22:17:391174 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311175 ]
1176 }
1177}
[email protected]8a3f8242014-06-05 18:05:121178
rch47ad01f2015-03-20 21:17:231179source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491180 sources = [
ckrasica7fd1242016-05-14 20:36:011181 "tools/quic/chlo_extractor.cc",
1182 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311183 "tools/quic/quic_client_base.cc",
1184 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051185 "tools/quic/quic_client_session.cc",
1186 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561187 "tools/quic/quic_dispatcher.cc",
1188 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211189 "tools/quic/quic_in_memory_cache.cc",
1190 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561191 "tools/quic/quic_per_connection_packet_writer.cc",
1192 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581193 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491194 "tools/quic/quic_simple_client.cc",
1195 "tools/quic/quic_simple_client.h",
alyssara473d6f2016-08-04 16:54:041196 "tools/quic/quic_simple_dispatcher.cc",
1197 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281198 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1199 "tools/quic/quic_simple_per_connection_packet_writer.h",
1200 "tools/quic/quic_simple_server.cc",
1201 "tools/quic/quic_simple_server.h",
1202 "tools/quic/quic_simple_server_packet_writer.cc",
1203 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391204 "tools/quic/quic_simple_server_session.cc",
1205 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311206 "tools/quic/quic_simple_server_session_helper.cc",
1207 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401208 "tools/quic/quic_simple_server_stream.cc",
1209 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051210 "tools/quic/quic_spdy_client_stream.cc",
1211 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211212 "tools/quic/quic_time_wait_list_manager.cc",
1213 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371214 "tools/quic/stateless_rejector.cc",
1215 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371216 "tools/quic/synchronous_host_resolver.cc",
1217 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491218 ]
1219 deps = [
tfarina8ac4d17f2015-12-16 02:11:111220 ":balsa",
rcha9d12ce12015-03-19 23:06:491221 ":net",
1222 "//base",
rch47ad01f2015-03-20 21:17:231223 "//base/third_party/dynamic_annotations",
1224 "//url",
1225 ]
1226}
1227
ricea7afa5232015-12-01 20:55:231228action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
1229 script = "//net/tools/dafsa/make_dafsa.py"
1230 sources = [
1231 "base/stale_while_revalidate_experiment_domains.gperf",
1232 ]
1233 outputs = [
1234 "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1235 ]
1236 args = [
1237 "{{source}}",
1238 rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1239 root_build_dir),
1240 ]
1241}
1242
1243source_set("stale_while_revalidate_experiment_domains") {
1244 sources = [
1245 "base/stale_while_revalidate_experiment_domains.cc",
1246 "base/stale_while_revalidate_experiment_domains.h",
1247 ]
1248 deps = [
1249 ":net",
1250 ":stale_while_revalidate_experiment_domains_dafsa",
1251 "//base",
1252 ]
kapishnikovabe280e2016-04-14 19:07:161253 configs += net_configs
ricea7afa5232015-12-01 20:55:231254}
1255
sherouk51b4b098b2015-08-10 09:00:431256if (!is_ios) {
1257 executable("quic_client") {
1258 sources = [
1259 "tools/quic/quic_simple_client_bin.cc",
1260 ]
1261 deps = [
1262 ":net",
1263 ":simple_quic_tools",
1264 "//base",
brettwba7a73d2015-08-31 22:17:391265 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071266 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431267 "//url",
1268 ]
1269 }
1270 executable("quic_server") {
1271 sources = [
1272 "tools/quic/quic_simple_server_bin.cc",
1273 ]
1274 deps = [
1275 ":net",
1276 ":simple_quic_tools",
1277 "//base",
brettwba7a73d2015-08-31 22:17:391278 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071279 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431280 "//third_party/boringssl",
1281 "//third_party/protobuf:protobuf_lite",
1282 ]
1283 }
rchf80f62d12016-05-11 00:47:311284 executable("quic_packet_printer") {
1285 sources = [
1286 "tools/quic/quic_packet_printer_bin.cc",
1287 ]
1288 deps = [
1289 ":net",
1290 ":simple_quic_tools",
1291 "//base",
1292 "//build/config/sanitizers:deps",
1293 "//build/win:default_exe_manifest",
1294 "//third_party/boringssl",
1295 "//third_party/protobuf:protobuf_lite",
1296 ]
1297 }
mpwbbea85d2016-08-27 14:39:211298 executable("quic_reject_reason_decoder") {
1299 sources = [
1300 "tools/quic/quic_reject_reason_decoder_bin.cc",
1301 ]
1302 deps = [
1303 ":net",
1304 ":simple_quic_tools",
1305 "//base",
1306 "//build/config/sanitizers:deps",
1307 "//build/win:default_exe_manifest",
1308 "//third_party/boringssl",
1309 "//third_party/protobuf:protobuf_lite",
1310 ]
1311 }
danzh1401f0a2016-05-19 13:41:101312 executable("crypto_message_printer") {
1313 sources = [
1314 "tools/quic/crypto_message_printer_bin.cc",
1315 ]
1316 deps = [
1317 ":net",
1318 "//base",
1319 "//build/config/sanitizers:deps",
1320 "//build/win:default_exe_manifest",
1321 ]
1322 }
rch216445c2015-03-27 00:23:281323}
1324
sdefresneb0a31642016-03-18 11:04:451325bundle_data("net_unittests_bundle_data") {
1326 testonly = true
sdefresne04f91142016-04-21 08:41:591327 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451328 outputs = [
1329 "{{bundle_resources_dir}}/" +
1330 "{{source_root_relative_dir}}/{{source_file_part}}",
1331 ]
1332}
1333
dpranke64df2832015-07-31 22:33:361334test("net_unittests") {
1335 sources = gypi_values.net_test_sources
1336
1337 configs += [
1338 "//build/config:precompiled_headers",
1339
1340 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1341 "//build/config/compiler:no_size_t_to_int_warning",
1342 ]
1343 defines = []
1344
1345 deps = [
1346 ":balsa",
1347 ":extras",
dpranke64df2832015-07-31 22:33:361348 ":net",
1349 ":simple_quic_tools",
ricea7afa5232015-12-01 20:55:231350 ":stale_while_revalidate_experiment_domains",
dpranke64df2832015-07-31 22:33:361351 ":test_support",
1352 "//base",
1353 "//base:i18n",
dpranke64df2832015-07-31 22:33:361354 "//base/third_party/dynamic_annotations",
1355 "//crypto",
1356 "//crypto:platform",
1357 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361358 "//net/base/registry_controlled_domains",
1359 "//sql",
1360 "//testing/gmock",
1361 "//testing/gtest",
1362 "//third_party/zlib",
1363 "//url",
kapishnikovabe280e2016-04-14 19:07:161364 "//url:url_features",
dpranke64df2832015-07-31 22:33:361365 ]
1366
jbudorick944eb922016-06-20 15:38:301367 data = []
svaldez2135be52016-04-20 16:34:531368 data_deps = [
1369 "third_party/nist-pkits/",
1370 ]
dpranke64df2832015-07-31 22:33:361371
1372 if (is_linux || is_mac || is_win) {
1373 deps += [
1374 "//third_party/pyftpdlib/",
1375 "//third_party/pywebsocket/",
1376 "//third_party/tlslite/",
1377 ]
mattm6586b432016-02-12 04:52:391378 data_deps += [
dpranke64df2832015-07-31 22:33:361379 "//third_party/pyftpdlib/",
1380 "//third_party/pywebsocket/",
1381 "//third_party/tlslite/",
1382 ]
1383 data += [
1384 "tools/testserver/",
1385 "//third_party/pyftpdlib/",
1386 "//third_party/pywebsocket/",
1387 "//third_party/tlslite/",
1388 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231389 ]
1390 }
1391
dpranke64df2832015-07-31 22:33:361392 if (is_desktop_linux) {
1393 deps += [ ":epoll_quic_tools" ]
1394 }
1395 if (is_linux) {
1396 sources += gypi_values.net_linux_test_sources
1397 deps += [
1398 ":epoll_quic_tools",
1399 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421400 ]
dpranke64df2832015-07-31 22:33:361401 }
[email protected]8a3f8242014-06-05 18:05:121402
dpranke64df2832015-07-31 22:33:361403 if (is_mac || is_ios) {
1404 sources += gypi_values.net_base_test_mac_ios_sources
1405 }
1406
1407 if (is_chromeos) {
1408 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1409 }
1410
1411 if (v8_use_external_startup_data) {
1412 deps += [ "//gin" ]
1413 }
1414
1415 if (!use_nss_certs) {
1416 sources -= [
mattm9c63d442016-09-03 00:45:511417 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361418 "cert/nss_cert_database_unittest.cc",
1419 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121420 ]
dpranke64df2832015-07-31 22:33:361421 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411422 sources -= [
dpranke64df2832015-07-31 22:33:361423 "cert/nss_cert_database_chromeos_unittest.cc",
1424 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411425 ]
brettw43ae0e12015-07-14 22:12:361426 }
[email protected]8a3f8242014-06-05 18:05:121427 }
dpranke64df2832015-07-31 22:33:361428
dpranke64df2832015-07-31 22:33:361429 if (use_kerberos) {
1430 defines += [ "USE_KERBEROS" ]
1431 }
1432
1433 # These are excluded on Android, because the actual Kerberos support, which
1434 # these test, is in a separate app on Android.
1435 if (!use_kerberos || is_android) {
1436 sources -= [
1437 "http/http_auth_gssapi_posix_unittest.cc",
1438 "http/mock_gssapi_library_posix.cc",
1439 "http/mock_gssapi_library_posix.h",
1440 ]
1441 }
1442 if (!use_kerberos) {
1443 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1444 }
1445
svaldez2135be52016-04-20 16:34:531446 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531447 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361448 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1449 }
1450
1451 if (!use_openssl_certs) {
1452 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1453 }
1454
jbudorick1273a842016-04-01 19:50:051455 if (enable_websockets) {
1456 sources += gypi_values.net_websockets_test_sources
1457 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361458 }
1459
1460 if (disable_file_support) {
1461 sources -= [
1462 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161463 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041464 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361465 "url_request/url_request_file_job_unittest.cc",
1466 ]
1467 }
1468
1469 if (disable_ftp_support) {
1470 sources -= [
1471 "ftp/ftp_auth_cache_unittest.cc",
1472 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1473 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361474 "ftp/ftp_directory_listing_parser_unittest.cc",
1475 "ftp/ftp_directory_listing_parser_unittest.h",
1476 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1477 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1478 "ftp/ftp_network_transaction_unittest.cc",
1479 "ftp/ftp_util_unittest.cc",
1480 "url_request/url_request_ftp_job_unittest.cc",
1481 ]
1482 }
1483
1484 if (!enable_built_in_dns) {
1485 sources -= [
1486 "dns/address_sorter_posix_unittest.cc",
1487 "dns/address_sorter_unittest.cc",
1488 ]
1489 }
1490
xunjieli905496a2015-08-31 15:51:171491 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361492 deps += [ ":net_with_v8" ]
1493 } else {
1494 sources -= [
1495 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1496 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1497 "proxy/proxy_resolver_v8_unittest.cc",
1498 ]
1499 }
1500
1501 if (use_v8_in_net && !is_android) {
1502 deps += [
1503 ":net_browser_services",
1504 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081505 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361506 ]
1507 } else {
1508 sources -= [
1509 "dns/host_resolver_mojo_unittest.cc",
1510 "dns/mojo_host_resolver_impl_unittest.cc",
1511 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1512 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1513 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1514 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1515 "proxy/proxy_service_mojo_unittest.cc",
1516 ]
1517 }
1518
1519 if (!enable_mdns) {
1520 sources -= [
1521 "dns/mdns_cache_unittest.cc",
1522 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361523 ]
1524 }
1525
1526 if (is_ios) {
dpranke64df2832015-07-31 22:33:361527 sources -= [
1528 # TODO(droger): The following tests are disabled because the
1529 # implementation is missing or incomplete.
1530 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1531 "base/keygen_handler_unittest.cc",
1532 "disk_cache/backend_unittest.cc",
1533 "disk_cache/blockfile/block_files_unittest.cc",
1534
1535 # Need to read input data files.
1536 "filter/gzip_filter_unittest.cc",
1537 "socket/ssl_server_socket_unittest.cc",
1538 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1539
1540 # Need TestServer.
1541 "cert_net/cert_net_fetcher_impl_unittest.cc",
1542 "proxy/proxy_script_fetcher_impl_unittest.cc",
1543 "socket/ssl_client_socket_unittest.cc",
1544 "url_request/url_fetcher_impl_unittest.cc",
1545 "url_request/url_request_context_builder_unittest.cc",
1546
1547 # Needs GetAppOutput().
1548 "test/python_utils_unittest.cc",
1549
1550 # The following tests are disabled because they don't apply to
1551 # iOS.
1552 # OS is not "linux" or "freebsd" or "openbsd".
1553 "socket/unix_domain_client_socket_posix_unittest.cc",
1554 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361555 ]
rsesek7d4ab4bc2016-07-22 17:35:131556
1557 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361558 }
1559
kapishnikovabe280e2016-04-14 19:07:161560 # Unit tests that aren't supported by the current ICU alternatives on Android.
1561 if (is_android && use_platform_icu_alternatives) {
1562 sources -= [
1563 "base/filename_util_unittest.cc",
1564 "base/url_util_unittest.cc",
1565 "cert/x509_certificate_unittest.cc",
1566 "proxy/proxy_resolver_v8_unittest.cc",
1567 "url_request/url_request_job_unittest.cc",
1568 ]
1569 }
1570
1571 # Unit tests that are not supported by the current ICU alternatives on iOS.
1572 if (is_ios && use_platform_icu_alternatives) {
1573 sources -= [
1574 "base/filename_util_unittest.cc",
1575 "base/url_util_unittest.cc",
1576 "cert/x509_certificate_unittest.cc",
1577 "http/http_auth_handler_basic_unittest.cc",
1578 "http/http_auth_handler_digest_unittest.cc",
1579 "http/http_auth_handler_factory_unittest.cc",
1580 "http/http_auth_unittest.cc",
1581 "http/http_content_disposition_unittest.cc",
1582 "http/http_network_transaction_unittest.cc",
1583 "http/http_proxy_client_socket_pool_unittest.cc",
1584 "socket/ssl_client_socket_pool_unittest.cc",
1585 "spdy/spdy_network_transaction_unittest.cc",
1586 "spdy/spdy_proxy_client_socket_unittest.cc",
1587 "url_request/url_request_job_unittest.cc",
1588 "url_request/url_request_unittest.cc",
1589 ]
1590 }
1591
1592 # Exclude brotli test if the support for brotli is disabled.
1593 # Also, exclude the test from iOS for now (needs to read input data files).
1594 if (disable_brotli_filter || is_ios) {
1595 sources -= [ "filter/brotli_filter_unittest.cc" ]
1596 }
1597
dpranke64df2832015-07-31 22:33:361598 if (is_android) {
agrieve732db3a2016-04-26 19:18:191599 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191600 deps += [
1601 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451602 "//base:base_java_unittest_support",
1603 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451604 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191605 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451606 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191607
1608 # TODO(mmenke): This depends on test_support_base, which depends on
1609 # icu. Figure out a way to remove that dependency.
1610 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071611 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451612 ]
1613 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361614 set_sources_assignment_filter([])
1615 sources += [ "base/address_tracker_linux_unittest.cc" ]
1616 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001617 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361618 }
1619
dpranke64df2832015-07-31 22:33:361620 # Symbols for crashes when running tests on swarming.
1621 if (symbol_level > 0) {
1622 if (is_win) {
1623 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1624 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131625 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1626 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361627 }
1628 }
maksim.sisovc69619d2016-05-20 19:23:551629
1630 if (is_win) {
mmenke91c17162016-06-02 16:03:231631 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551632 }
dpranke64df2832015-07-31 22:33:361633}
1634
1635# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031636if (!is_ios) {
1637 # TODO(crbug.com/594965): this should be converted to "app" template and
1638 # enabled on iOS too.
1639 executable("net_perftests") {
1640 testonly = true
1641 sources = [
1642 "base/mime_sniffer_perftest.cc",
1643 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051644 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031645 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1646 "proxy/proxy_resolver_perftest.cc",
1647 "udp/udp_socket_perftest.cc",
1648 ]
[email protected]8a3f8242014-06-05 18:05:121649
sdefresne3001f172016-03-16 10:30:031650 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1651 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1652 deps = [
1653 ":extras",
1654 ":net",
1655 ":test_support",
1656 "//base",
1657 "//base:i18n",
1658 "//base/test:test_support_perf",
1659 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071660 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031661 "//testing/gtest",
1662 "//url",
1663 ]
rockot9c67e5f2015-03-12 20:01:211664
sdefresne3001f172016-03-16 10:30:031665 if (enable_websockets) {
1666 sources += [ "websockets/websocket_frame_perftest.cc" ]
1667 }
rockot9c67e5f2015-03-12 20:01:211668
sdefresne3001f172016-03-16 10:30:031669 if (use_v8_in_net) {
1670 deps += [ ":net_with_v8" ]
1671 } else {
1672 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1673 }
rockot9c67e5f2015-03-12 20:01:211674 }
rockot9c67e5f2015-03-12 20:01:211675}
mefff34b822016-01-11 15:28:081676
eromanfe8659e2016-03-02 23:47:021677# Fuzzers
1678
mmenke35a30012016-07-15 19:20:121679# This has a global (InitGlobals) that must always be linked in, so
1680# must be a source set instead of a static library.
1681source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161682 testonly = true
1683
1684 sources = [
csharrison37ef9852016-08-23 19:00:191685 "base/fuzzer_test_support.cc",
mmenke99b57172016-04-14 20:44:331686 "socket/fuzzed_socket.cc",
1687 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221688 "socket/fuzzed_socket_factory.cc",
1689 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231690 "udp/fuzzed_datagram_client_socket.cc",
1691 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161692 ]
csharrisonf30fc95f2016-08-19 21:43:441693 public_deps = [
1694 "//base/test:test_support",
1695 ]
eroman02b4fe562016-03-04 12:15:161696 deps = [
1697 "//base",
1698 "//base:i18n",
mmenke99b57172016-04-14 20:44:331699 "//net",
eroman02b4fe562016-03-04 12:15:161700 ]
1701}
1702
csharrisonaa314dc2016-04-29 20:15:371703fuzzer_test("net_data_job_fuzzer") {
1704 sources = [
1705 "url_request/url_request_data_job_fuzzer.cc",
1706 ]
1707 deps = [
1708 ":net_fuzzer_test_support",
1709 ":test_support",
1710 "//base",
1711 "//net",
1712 ]
1713}
1714
mmenke5552a6a2016-03-28 23:11:591715fuzzer_test("net_mime_sniffer_fuzzer") {
1716 sources = [
1717 "base/mime_sniffer_fuzzer.cc",
1718 ]
1719 deps = [
1720 ":net_fuzzer_test_support",
1721 "//base",
1722 "//net",
1723 ]
mmoroz4a561d32016-07-07 17:45:121724 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591725}
1726
mmoroz565e8df22016-03-04 18:17:201727fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301728 sources = [
1729 "proxy/parse_proxy_list_pac_fuzzer.cc",
1730 ]
1731 deps = [
eroman02b4fe562016-03-04 12:15:161732 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301733 "//net",
1734 ]
1735}
1736
mmoroz565e8df22016-03-04 18:17:201737fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301738 sources = [
1739 "proxy/parse_proxy_list_fuzzer.cc",
1740 ]
1741 deps = [
eroman02b4fe562016-03-04 12:15:161742 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301743 "//net",
1744 ]
1745}
1746
mmoroz565e8df22016-03-04 18:17:201747fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301748 sources = [
1749 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1750 ]
1751 deps = [
eroman02b4fe562016-03-04 12:15:161752 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301753 "//net",
1754 ]
1755}
1756
mmoroz565e8df22016-03-04 18:17:201757fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301758 sources = [
1759 "proxy/parse_proxy_rules_fuzzer.cc",
1760 ]
1761 deps = [
eroman02b4fe562016-03-04 12:15:161762 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301763 "//net",
1764 ]
metzman31db75e2016-08-03 22:33:271765 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301766}
1767
mmoroz565e8df22016-03-04 18:17:201768fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301769 sources = [
1770 "base/parse_data_url_fuzzer.cc",
1771 ]
1772 deps = [
eroman02b4fe562016-03-04 12:15:161773 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301774 "//base",
1775 "//net",
1776 ]
mmoroz4a561d32016-07-07 17:45:121777 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301778}
1779
mmoroz565e8df22016-03-04 18:17:201780fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301781 sources = [
1782 "base/parse_ip_pattern_fuzzer.cc",
1783 ]
1784 deps = [
eroman02b4fe562016-03-04 12:15:161785 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301786 "//net",
1787 ]
1788}
1789
mmoroz565e8df22016-03-04 18:17:201790fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301791 sources = [
1792 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1793 ]
1794 deps = [
eroman02b4fe562016-03-04 12:15:161795 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301796 "//base",
eromane6264fd2016-03-02 22:46:301797 "//net",
1798 ]
mmoroz4a561d32016-07-07 17:45:121799 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301800}
1801
mattmafe43b82016-04-28 20:40:541802fuzzer_test("net_cert_verify_name_match_fuzzer") {
1803 sources = [
1804 "cert/internal/verify_name_match_fuzzer.cc",
1805 ]
1806 deps = [
1807 ":net_fuzzer_test_support",
1808 "//base",
1809 "//net",
1810 ]
1811}
1812
mattm2c637da42016-04-28 02:55:591813fuzzer_test("net_cert_normalize_name_fuzzer") {
1814 sources = [
1815 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1816 ]
1817 deps = [
1818 "//base",
1819 "//net",
1820 ]
1821}
1822
mattmafe43b82016-04-28 20:40:541823fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1824 sources = [
1825 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1826 ]
1827 deps = [
1828 ":net_fuzzer_test_support",
1829 "//base",
1830 "//net",
1831 ]
1832}
1833
nharper85d3b6f2016-04-28 20:58:191834fuzzer_test("net_cert_parse_certificate_fuzzer") {
1835 sources = [
1836 "cert/internal/parse_certificate_fuzzer.cc",
1837 ]
1838 deps = [
1839 "//base",
1840 "//net",
1841 ]
1842}
1843
mmoroz565e8df22016-03-04 18:17:201844fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301845 sources = [
1846 "cookies/parse_cookie_line_fuzzer.cc",
1847 ]
1848 deps = [
eroman02b4fe562016-03-04 12:15:161849 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301850 "//net",
1851 ]
1852}
1853
mmoroz565e8df22016-03-04 18:17:201854fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021855 sources = [
1856 "dns/dns_record_fuzzer.cc",
1857 ]
1858 deps = [
eroman02b4fe562016-03-04 12:15:161859 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021860 "//base",
1861 "//net",
1862 ]
mmoroz4a561d32016-07-07 17:45:121863 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021864}
1865
zhongyi273af9f2016-04-28 18:46:341866fuzzer_test("net_dns_hosts_parse_fuzzer") {
1867 sources = [
1868 "dns/dns_hosts_parse_fuzzer.cc",
1869 ]
1870 deps = [
1871 ":net_fuzzer_test_support",
1872 "//base",
1873 "//net",
1874 ]
mmoroz4a561d32016-07-07 17:45:121875 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341876}
1877
mmenke91c17162016-06-02 16:03:231878fuzzer_test("net_host_resolver_impl_fuzzer") {
1879 sources = [
1880 "dns/fuzzed_host_resolver.cc",
1881 "dns/fuzzed_host_resolver.h",
1882 "dns/host_resolver_impl_fuzzer.cc",
1883 ]
1884 deps = [
1885 ":net_fuzzer_test_support",
1886 ":test_support",
1887 "//base",
1888 "//net",
1889 ]
mmoroz4a561d32016-07-07 17:45:121890 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231891}
1892
mmenke44e8e9c2016-03-29 18:38:571893fuzzer_test("net_http_stream_parser_fuzzer") {
1894 sources = [
1895 "http/http_stream_parser_fuzzer.cc",
1896 ]
1897 deps = [
1898 ":net_fuzzer_test_support",
1899 ":test_support",
1900 "//base",
1901 "//net",
1902 ]
mmoroz4a561d32016-07-07 17:45:121903 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571904}
1905
mmoroz565e8df22016-03-04 18:17:201906fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021907 sources = [
1908 "ftp/ftp_ctrl_response_fuzzer.cc",
1909 ]
1910 deps = [
eroman02b4fe562016-03-04 12:15:161911 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021912 "//base",
1913 "//net",
1914 ]
1915}
1916
mmoroz565e8df22016-03-04 18:17:201917fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021918 sources = [
1919 "ftp/ftp_directory_listing_fuzzer.cc",
1920 ]
1921 deps = [
eroman02b4fe562016-03-04 12:15:161922 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021923 "//base",
eromanfe8659e2016-03-02 23:47:021924 "//net",
1925 ]
1926}
1927
mmoroz565e8df22016-03-04 18:17:201928fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021929 sources = [
1930 "base/unescape_url_component_fuzzer.cc",
1931 ]
1932 deps = [
eroman02b4fe562016-03-04 12:15:161933 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021934 "//base",
1935 "//net",
1936 ]
mmoroz34eb0082016-03-11 14:32:011937 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331938 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021939}
1940
ricea7b870e72016-09-01 04:41:041941fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1942 sources = [
1943 "websockets/websocket_deflate_stream_fuzzer.cc",
1944 ]
1945 deps = [
1946 ":net_fuzzer_test_support",
1947 "//net",
1948 ]
1949 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1950 libfuzzer_options = [ "max_len=512" ]
1951}
1952
mmoroz565e8df22016-03-04 18:17:201953fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021954 sources = [
1955 "websockets/websocket_frame_parser_fuzzer.cc",
1956 ]
1957 deps = [
eroman02b4fe562016-03-04 12:15:161958 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021959 "//net",
1960 ]
mmoroz4a561d32016-07-07 17:45:121961 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021962}
1963
mmoroz565e8df22016-03-04 18:17:201964fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021965 sources = [
1966 "http/http_chunked_decoder_fuzzer.cc",
1967 ]
1968 deps = [
eroman02b4fe562016-03-04 12:15:161969 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021970 "//net",
1971 ]
1972}
1973
mmenke8e9314bc2016-04-15 21:45:021974fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1975 sources = [
1976 "http/http_proxy_client_socket_fuzzer.cc",
1977 ]
1978 deps = [
1979 ":net_fuzzer_test_support",
1980 ":test_support",
1981 "//base",
1982 "//net",
1983 ]
mmoroz4a561d32016-07-07 17:45:121984 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021985}
1986
mmoroz9299ef9b2016-09-01 17:37:091987fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1988 sources = [
1989 "base/parse_url_hostname_to_address_fuzzer.cc",
1990 ]
1991 deps = [
1992 ":net_fuzzer_test_support",
1993 "//base",
1994 "//net",
1995 ]
1996 libfuzzer_options = [ "max_len=512" ]
1997 seed_corpus = "data/fuzzer_data/hostnames/"
1998}
1999
mmoroz565e8df22016-03-04 18:17:202000fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:022001 sources = [
rchd4db7c152016-07-29 21:58:122002 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:022003 ]
2004 deps = [
eroman02b4fe562016-03-04 12:15:162005 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:022006 "//base",
2007 "//net",
2008 ]
2009}
mmenke99b57172016-04-14 20:44:332010
2011fuzzer_test("net_socks_client_socket_fuzzer") {
2012 sources = [
2013 "socket/socks_client_socket_fuzzer.cc",
2014 ]
2015 deps = [
2016 ":net_fuzzer_test_support",
2017 ":test_support",
2018 "//base",
2019 "//net",
2020 ]
2021}
2022
2023fuzzer_test("net_socks5_client_socket_fuzzer") {
2024 sources = [
2025 "socket/socks5_client_socket_fuzzer.cc",
2026 ]
2027 deps = [
2028 ":net_fuzzer_test_support",
2029 ":test_support",
2030 "//base",
2031 "//net",
2032 ]
2033}
mmenkec951d412016-04-28 19:05:222034
2035fuzzer_test("net_url_request_fuzzer") {
2036 sources = [
2037 "url_request/url_request_fuzzer.cc",
2038 ]
2039 deps = [
2040 ":net_fuzzer_test_support",
2041 ":test_support",
2042 "//base",
2043 "//net",
2044 ]
mmoroz4a561d32016-07-07 17:45:122045 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222046}