blob: 9f9d07dd5cf78b7b75c2ce9e21f3f6c3d153a389 [file] [log] [blame]
[email protected]4625ade2014-04-15 19:26:441# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
mefff34b822016-01-11 15:28:085import("//build/buildflag_header.gni")
slan77bdc2e62015-09-21 17:56:266import("//build/config/chromecast_build.gni")
brettw4cab0f12015-09-14 21:40:017import("//build/config/compiler/compiler.gni")
[email protected]4625ade2014-04-15 19:26:448import("//build/config/crypto.gni")
9import("//build/config/features.gni")
10import("//build/config/ui.gni")
sdefresneeb265862016-09-08 14:27:1211import("//net/features.gni")
eromane6264fd2016-03-02 22:46:3012import("//testing/libfuzzer/fuzzer_test.gni")
qsrfb5251d12015-01-21 15:57:2213import("//testing/test.gni")
rockot9c67e5f2015-03-12 20:01:2114import("//third_party/icu/config.gni")
rtennetib6f1c0d2015-04-03 17:52:0615import("//third_party/protobuf/proto_library.gni")
tfarinae597851a2015-10-06 23:14:4116import("//tools/grit/grit_rule.gni")
kapishnikovabe280e2016-04-14 19:07:1617import("//url/features.gni")
machenbachd65ec5c2016-07-22 09:05:2318import("//v8/gni/v8.gni")
[email protected]26046b52014-07-16 00:11:0319
[email protected]4625ade2014-04-15 19:26:4420if (is_android) {
21 import("//build/config/android/config.gni")
[email protected]ef0eb442014-05-15 09:32:1822 import("//build/config/android/rules.gni")
[email protected]4625ade2014-04-15 19:26:4423} else if (is_mac) {
24 import("//build/config/mac/mac_sdk.gni")
25}
26
27# The list of net files is kept in net.gypi. Read it.
scottmg34fb7e52014-12-03 23:27:2428gypi_values = exec_script("//build/gypi_to_gn.py",
29 [ rebase_path("net.gypi") ],
30 "scope",
31 [ "net.gypi" ])
[email protected]4625ade2014-04-15 19:26:4432
[email protected]4625ade2014-04-15 19:26:4433# The way the cache uses mmap() is inefficient on some Android devices. If
34# this flag is set, we hackily avoid using mmap() in the disk cache. We are
35# pretty confident that mmap-ing the index would not hurt any existing x86
36# android devices, but we cannot be so sure about the variety of ARM devices.
37# So enable it for x86 only for now.
dpranke43276212015-02-20 02:55:1938posix_avoid_mmap = is_android && current_cpu != "x86"
[email protected]4625ade2014-04-15 19:26:4439
[email protected]8a3f8242014-06-05 18:05:1240use_v8_in_net = !is_ios
[email protected]4625ade2014-04-15 19:26:4441enable_built_in_dns = !is_ios
42
[email protected]4625ade2014-04-15 19:26:4443config("net_config") {
44 defines = []
45 if (posix_avoid_mmap) {
46 defines += [ "POSIX_AVOID_MMAP" ]
47 }
[email protected]02494ec2014-05-07 15:05:2948 if (disable_file_support) {
49 defines += [ "DISABLE_FILE_SUPPORT" ]
50 }
tfarinae7c8c3c2015-11-04 15:09:5551 if (disable_ftp_support) {
52 defines += [ "DISABLE_FTP_SUPPORT=1" ]
53 }
mkwst0cb69fc2016-06-21 17:46:2454 if (enable_websockets) {
55 defines += [ "ENABLE_WEBSOCKETS" ]
56 }
[email protected]4625ade2014-04-15 19:26:4457}
58
xunjieli905496a2015-08-31 15:51:1759config("net_internal_config") {
[email protected]8603c5de2014-04-16 20:34:3160 defines = [
[email protected]8603c5de2014-04-16 20:34:3161 "DLOPEN_KERBEROS",
scottmg34fb7e52014-12-03 23:27:2462 "NET_IMPLEMENTATION",
[email protected]8603c5de2014-04-16 20:34:3163 ]
dpranke43276212015-02-20 02:55:1964
[email protected]4625ade2014-04-15 19:26:4465 if (use_kerberos) {
66 defines += [ "USE_KERBEROS" ]
67 if (is_android) {
xunjieli905496a2015-08-31 15:51:1768 include_dirs = [ "/usr/include/kerberosV" ]
[email protected]4625ade2014-04-15 19:26:4469 }
[email protected]4625ade2014-04-15 19:26:4470 }
71
72 if (enable_built_in_dns) {
73 defines += [ "ENABLE_BUILT_IN_DNS" ]
xunjieli905496a2015-08-31 15:51:1774 }
75}
76
kapishnikovabe280e2016-04-14 19:07:1677net_configs = [
xunjieli905496a2015-08-31 15:51:1778 ":net_internal_config",
79 "//build/config:precompiled_headers",
80
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82 "//build/config/compiler:no_size_t_to_int_warning",
rsesek99679aa2016-06-28 21:24:1783 "//build/config/compiler:wexit_time_destructors",
xunjieli905496a2015-08-31 15:51:1784]
85
kapishnikovabe280e2016-04-14 19:07:1686if (use_glib && use_gconf && !is_chromeos) {
agrieve95ba4442016-04-25 15:47:1387 net_configs += [ "//build/config/linux/gconf" ]
kapishnikovabe280e2016-04-14 19:07:1688}
xunjieli905496a2015-08-31 15:51:1789
kapishnikovabe280e2016-04-14 19:07:1690if (is_linux) {
91 net_configs += [ "//build/config/linux:libresolv" ]
xunjieli905496a2015-08-31 15:51:1792}
93
94component("net") {
kapishnikovabe280e2016-04-14 19:07:1695 sources = gypi_values.net_nacl_common_sources
96 net_unfiltered_sources = []
97
98 deps = [
99 ":net_resources",
100 "//base",
101 "//net/base/registry_controlled_domains",
102 "//third_party/protobuf:protobuf_lite",
103 "//url:url_features",
104 ]
105
106 public_deps = [
107 ":net_quic_proto",
108 "//crypto",
109 "//crypto:platform",
110 ]
111
112 if (!is_nacl) {
113 sources += gypi_values.net_non_nacl_sources
114
115 deps += [
116 "//base/third_party/dynamic_annotations",
117 "//components/prefs",
118 "//sdch",
119 "//third_party/zlib",
120 ]
121
122 if (!use_kerberos) {
123 sources -= [
124 "http/http_auth_handler_negotiate.cc",
125 "http/http_auth_handler_negotiate.h",
126 ]
127 }
128
129 if (is_posix) {
130 if (posix_avoid_mmap) {
131 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
132 } else {
133 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
134 }
135 }
136
137 if (!enable_built_in_dns) {
138 sources -= [
139 "dns/address_sorter_posix.cc",
140 "dns/address_sorter_posix.h",
141 "dns/dns_client.cc",
142 ]
143 }
144
kapishnikovabe280e2016-04-14 19:07:16145 if (!use_openssl_certs) {
146 sources -= [
147 "base/crypto_module_openssl.cc",
148 "base/keygen_handler_openssl.cc",
149 "base/openssl_private_key_store.h",
150 "base/openssl_private_key_store_memory.cc",
151 "cert/cert_database_openssl.cc",
152 "cert/cert_verify_proc_openssl.cc",
153 "cert/cert_verify_proc_openssl.h",
154 "cert/test_root_certs_openssl.cc",
155 "cert/x509_certificate_openssl.cc",
156 "ssl/openssl_client_key_store.cc",
157 "ssl/openssl_client_key_store.h",
158 ]
159 if (is_android) {
160 sources -= [ "base/openssl_private_key_store_android.cc" ]
161 }
162 } else {
163 if (is_android) {
164 # Android doesn't use these even when using OpenSSL.
165 sources -= [
166 "base/openssl_private_key_store_memory.cc",
167 "cert/cert_database_openssl.cc",
168 "cert/cert_verify_proc_openssl.cc",
169 "cert/test_root_certs_openssl.cc",
170 ]
171 }
172 }
173
174 if (!use_kerberos || is_android) {
175 sources -= [
176 "http/http_auth_gssapi_posix.cc",
177 "http/http_auth_gssapi_posix.h",
178 ]
179 }
180
mostynb75e8d632016-08-02 16:46:53181 if (use_gio) {
dsinclair8490e052016-05-04 15:33:33182 deps += [ "//build/linux/libgio" ]
kapishnikovabe280e2016-04-14 19:07:16183 }
184
185 if (!use_nss_certs) {
186 sources -= [
187 "base/crypto_module_nss.cc",
188 "base/keygen_handler_nss.cc",
189 "cert/cert_database_nss.cc",
mattm9c63d442016-09-03 00:45:51190 "cert/internal/trust_store_nss.cc",
191 "cert/internal/trust_store_nss.h",
kapishnikovabe280e2016-04-14 19:07:16192 "cert/nss_cert_database.cc",
193 "cert/nss_cert_database.h",
194 "cert/x509_certificate_nss.cc",
195 "ssl/client_cert_store_nss.cc",
196 "ssl/client_cert_store_nss.h",
197 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
198 "third_party/mozilla_security_manager/nsKeygenHandler.h",
199 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
200 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
201 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
202 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
203 ]
204 if (is_chromeos) {
205 # These were already removed on non-ChromeOS.
206 sources -= [
207 "cert/nss_cert_database_chromeos.cc",
208 "cert/nss_cert_database_chromeos.h",
209 "cert/nss_profile_filter_chromeos.cc",
210 "cert/nss_profile_filter_chromeos.h",
211 ]
212 }
213 sources -= [
214 "ssl/client_key_store.cc",
215 "ssl/client_key_store.h",
216 "ssl/ssl_platform_key_nss.cc",
217 ]
svaldez2135be52016-04-20 16:34:53218 } else {
davidben8d569f52016-07-29 16:03:18219 sources += [
220 "third_party/nss/ssl/cmpcert.cc",
221 "third_party/nss/ssl/cmpcert.h",
222 ]
kapishnikovabe280e2016-04-14 19:07:16223 }
224
svaldez2135be52016-04-20 16:34:53225 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16226 # These files are part of the partial implementation of NSS for
227 # cert verification, so keep them in that case.
228 sources -= [
229 "cert/cert_verify_proc_nss.cc",
230 "cert/cert_verify_proc_nss.h",
231 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53232 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16233 "cert_net/nss_ocsp.cc",
234 "cert_net/nss_ocsp.h",
235 ]
236 }
237
kapishnikovabe280e2016-04-14 19:07:16238 if (is_chromecast && use_nss_certs) {
239 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
240 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
241 }
242
243 if (!enable_mdns) {
244 sources -= [
245 "dns/mdns_cache.cc",
246 "dns/mdns_cache.h",
247 "dns/mdns_client.cc",
248 "dns/mdns_client.h",
249 "dns/mdns_client_impl.cc",
250 "dns/mdns_client_impl.h",
kapishnikovabe280e2016-04-14 19:07:16251 ]
252 }
253
254 if (is_win) {
255 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
256 } else { # !is_win
257 sources -= [
258 "base/winsock_init.cc",
259 "base/winsock_init.h",
260 "base/winsock_util.cc",
261 "base/winsock_util.h",
262 "proxy/proxy_resolver_winhttp.cc",
263 "proxy/proxy_resolver_winhttp.h",
264 ]
265 }
266
267 if (is_ios) {
268 # Add back some sources that were otherwise filtered out.
269 # iOS needs some Mac files.
270 net_unfiltered_sources += [
271 "base/mac/url_conversions.h",
272 "base/mac/url_conversions.mm",
273 "base/network_change_notifier_mac.cc",
274 "base/network_config_watcher_mac.cc",
275 "base/network_interfaces_mac.cc",
276 "base/network_interfaces_mac.h",
277 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53278 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16279 "proxy/proxy_resolver_mac.cc",
280 "proxy/proxy_server_mac.cc",
281 ]
282
283 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
284 }
285
kapishnikovabe280e2016-04-14 19:07:16286 if (is_ios || is_mac) {
287 sources += gypi_values.net_base_mac_ios_sources
288 }
289
290 if (is_android) {
291 deps += [ ":net_jni_headers" ]
292
293 # Add some Linux sources that were excluded by the filter, but which
294 # are needed.
295 net_unfiltered_sources += [
296 "base/address_tracker_linux.cc",
297 "base/address_tracker_linux.h",
298 "base/network_interfaces_linux.cc",
299 "base/network_interfaces_linux.h",
300 "base/platform_mime_util_linux.cc",
301 ]
302 }
303 } else {
304 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
305 }
xunjieli905496a2015-08-31 15:51:17306
307 # Add back some sources that were otherwise filtered out.
308 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16309 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17310 set_sources_assignment_filter(sources_assignment_filter)
311
312 cflags = []
kapishnikovabe280e2016-04-14 19:07:16313 configs += net_configs
xunjieli905496a2015-08-31 15:51:17314 public_configs = [ ":net_config" ]
315
kapishnikovabe280e2016-04-14 19:07:16316 public_deps += [ "//url" ]
[email protected]4625ade2014-04-15 19:26:44317
318 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44319 libs = [
rsesek02aa51c2016-05-11 02:13:57320 "CFNetwork.framework",
321 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19322 "Foundation.framework",
323 "Security.framework",
324 "SystemConfiguration.framework",
325 "resolv",
[email protected]4625ade2014-04-15 19:26:44326 ]
327 }
328
329 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44330 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19331 "CFNetwork.framework",
332 "MobileCoreServices.framework",
333 "Security.framework",
334 "SystemConfiguration.framework",
335 "resolv",
[email protected]4625ade2014-04-15 19:26:44336 ]
xunjieli06d93982015-08-27 17:13:02337 }
xunjieli4c8c6922015-08-27 16:02:40338
jam5332a632016-04-01 22:36:05339 if (is_win) {
340 libs = [
341 "crypt32.lib",
342 "dhcpcsvc.lib",
343 "iphlpapi.lib",
davidben62399192016-09-13 01:54:22344 "ncrypt.lib",
jam5332a632016-04-01 22:36:05345 "rpcrt4.lib",
346 "secur32.lib",
347 "urlmon.lib",
348 "winhttp.lib",
349 ]
350 }
351
sergeyu99d83f92015-09-14 23:03:33352 if (!is_nacl) {
353 if (!disable_file_support) {
354 sources += gypi_values.net_file_support_sources
355 }
xunjieli06d93982015-08-27 17:13:02356
sergeyu99d83f92015-09-14 23:03:33357 if (!disable_ftp_support) {
358 sources += gypi_values.net_ftp_support_sources
359 }
xunjieli905496a2015-08-31 15:51:17360
sergeyu99d83f92015-09-14 23:03:33361 if (enable_websockets) {
362 sources += gypi_values.net_websockets_sources
363 }
xunjieli905496a2015-08-31 15:51:17364
sergeyu99d83f92015-09-14 23:03:33365 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16366 if (use_platform_icu_alternatives) {
367 if (is_android) {
368 # Use ICU alternative on Android.
torned8b7d9252016-08-04 19:41:45369 sources += [ "base/net_string_util_icu_alternatives_android.cc" ]
kapishnikovabe280e2016-04-14 19:07:16370 deps += [ ":net_jni_headers" ]
371 } else if (is_ios) {
372 # Use ICU alternative on iOS.
373 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
374 } else {
375 assert(false,
376 "ICU alternative is not implemented for platform: " + target_os)
377 }
378 } else {
379 # Use ICU.
380 deps += [
381 "//base:i18n",
382 "//third_party/icu",
383 ]
384 sources += [
385 "base/filename_util_icu.cc",
386 "base/net_string_util_icu.cc",
387 ]
388 }
eustasfbec9132015-12-30 14:56:51389
390 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16391 if (!disable_brotli_filter) {
392 sources += [ "filter/brotli_filter.cc" ]
xunjieli084a9292016-09-23 18:15:04393 sources += [ "filter/brotli_source_stream.cc" ]
kapishnikovabe280e2016-04-14 19:07:16394 deps += [ "//third_party/brotli" ]
395 } else {
396 sources += [ "filter/brotli_filter_disabled.cc" ]
xunjieli084a9292016-09-23 18:15:04397 sources += [ "filter/brotli_source_stream_disabled.cc" ]
kapishnikovabe280e2016-04-14 19:07:16398 }
[email protected]85191ed2014-05-15 00:41:49399 }
[email protected]4625ade2014-04-15 19:26:44400}
401
402grit("net_resources") {
403 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01404 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32405 outputs = [
406 "grit/net_resources.h",
407 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32408 ]
[email protected]4625ade2014-04-15 19:26:44409}
410
rtennetib6f1c0d2015-04-03 17:52:06411proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16412 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17413
rtennetib6f1c0d2015-04-03 17:52:06414 sources = [
rchd4db7c152016-07-29 21:58:12415 "quic/core/proto/cached_network_parameters.proto",
416 "quic/core/proto/source_address_token.proto",
rtennetib6f1c0d2015-04-03 17:52:06417 ]
418 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
419 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18420 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06421
422 defines = [ "NET_IMPLEMENTATION" ]
423
424 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
425}
426
Brett Wilson83fd4242014-09-02 19:45:33427static_library("extras") {
mef327a8e42014-08-29 17:10:03428 sources = gypi_values.net_extras_sources
429 configs += [ "//build/config/compiler:wexit_time_destructors" ]
430 deps = [
431 ":net",
brettwbc44c0a92015-02-20 22:30:39432 "//base",
mef327a8e42014-08-29 17:10:03433 "//sql:sql",
434 ]
435}
436
[email protected]8a3f8242014-06-05 18:05:12437static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44438 sources = [
439 "server/http_connection.cc",
440 "server/http_connection.h",
441 "server/http_server.cc",
442 "server/http_server.h",
443 "server/http_server_request_info.cc",
444 "server/http_server_request_info.h",
445 "server/http_server_response_info.cc",
446 "server/http_server_response_info.h",
447 "server/web_socket.cc",
448 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21449 "server/web_socket_encoder.cc",
450 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44451 ]
jambc6cc8e2014-11-14 17:56:29452 configs += [
brettwd1c719a2015-02-19 23:17:04453 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29454 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29455 ]
[email protected]4625ade2014-04-15 19:26:44456 deps = [
457 ":net",
458 "//base",
459 ]
460}
461
sdefresne3001f172016-03-16 10:30:03462if (!is_ios) {
463 executable("dump_cache") {
464 testonly = true
465 sources = [
466 "tools/dump_cache/dump_cache.cc",
467 "tools/dump_cache/dump_files.cc",
468 "tools/dump_cache/dump_files.h",
469 ]
[email protected]4625ade2014-04-15 19:26:44470
sdefresne3001f172016-03-16 10:30:03471 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
472 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31473
sdefresne3001f172016-03-16 10:30:03474 deps = [
475 ":net",
476 ":test_support",
477 "//base",
478 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07479 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03480 ]
481 }
[email protected]8603c5de2014-04-16 20:34:31482}
483
sdefresneb0a31642016-03-18 11:04:45484bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59485 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45486 testonly = true
sdefresne04f91142016-04-21 08:41:59487 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45488 outputs = [
489 "{{bundle_resources_dir}}/" +
490 "{{source_root_relative_dir}}/{{source_file_part}}",
491 ]
492}
493
brettw3871f522016-07-14 22:08:34494static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24495 testonly = true
[email protected]8603c5de2014-04-16 20:34:31496 sources = [
[email protected]8603c5de2014-04-16 20:34:31497 "base/load_timing_info_test_util.cc",
498 "base/load_timing_info_test_util.h",
499 "base/mock_file_stream.cc",
500 "base/mock_file_stream.h",
501 "base/test_completion_callback.cc",
502 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31503 "cert/mock_cert_verifier.cc",
504 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12505 "cert/mock_client_cert_verifier.cc",
506 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31507 "cookies/cookie_monster_store_test.cc",
508 "cookies/cookie_monster_store_test.h",
509 "cookies/cookie_store_test_callbacks.cc",
510 "cookies/cookie_store_test_callbacks.h",
511 "cookies/cookie_store_test_helpers.cc",
512 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56513 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31514 "disk_cache/disk_cache_test_base.cc",
515 "disk_cache/disk_cache_test_base.h",
516 "disk_cache/disk_cache_test_util.cc",
517 "disk_cache/disk_cache_test_util.h",
518 "dns/dns_test_util.cc",
519 "dns/dns_test_util.h",
520 "dns/mock_host_resolver.cc",
521 "dns/mock_host_resolver.h",
522 "dns/mock_mdns_socket_factory.cc",
523 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30524 "http/http_stream_factory_test_util.cc",
525 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12526 "http/http_transaction_test_util.cc",
527 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51528 "log/test_net_log.cc",
529 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46530 "log/test_net_log_entry.cc",
531 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59532 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46533 "log/test_net_log_util.h",
tbansal785a6ab2016-10-10 20:19:28534 "nqe/network_quality_estimator_test_util.cc",
535 "nqe/network_quality_estimator_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31536 "proxy/mock_proxy_resolver.cc",
537 "proxy/mock_proxy_resolver.h",
538 "proxy/mock_proxy_script_fetcher.cc",
539 "proxy/mock_proxy_script_fetcher.h",
540 "proxy/proxy_config_service_common_unittest.cc",
541 "proxy/proxy_config_service_common_unittest.h",
542 "socket/socket_test_util.cc",
543 "socket/socket_test_util.h",
544 "test/cert_test_util.cc",
545 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07546 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23547 "test/channel_id_test_util.cc",
548 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31549 "test/ct_test_util.cc",
550 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45551 "test/embedded_test_server/default_handlers.cc",
552 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31553 "test/embedded_test_server/embedded_test_server.cc",
554 "test/embedded_test_server/embedded_test_server.h",
555 "test/embedded_test_server/http_connection.cc",
556 "test/embedded_test_server/http_connection.h",
557 "test/embedded_test_server/http_request.cc",
558 "test/embedded_test_server/http_request.h",
559 "test/embedded_test_server/http_response.cc",
560 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53561 "test/embedded_test_server/request_handler_util.cc",
562 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28563 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24564 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31565 "test/net_test_suite.cc",
566 "test/net_test_suite.h",
567 "test/python_utils.cc",
568 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24569 "test/scoped_disable_exit_on_dfatal.cc",
570 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36571 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43572 "test/test_data_directory.cc",
573 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43574 "test/url_request/ssl_certificate_error_job.cc",
575 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30576 "test/url_request/url_request_failed_job.cc",
577 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34578 "test/url_request/url_request_hanging_read_job.cc",
579 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40580 "test/url_request/url_request_mock_data_job.cc",
581 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44582 "test/url_request/url_request_slow_download_job.cc",
583 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31584 "url_request/test_url_fetcher_factory.cc",
585 "url_request/test_url_fetcher_factory.h",
586 "url_request/url_request_test_util.cc",
587 "url_request/url_request_test_util.h",
588 ]
sherouk3eee4a82015-09-01 10:42:33589 if (!is_ios) {
590 sources += [
591 "test/spawned_test_server/base_test_server.cc",
592 "test/spawned_test_server/base_test_server.h",
593 "test/spawned_test_server/local_test_server.cc",
594 "test/spawned_test_server/local_test_server.h",
595 "test/spawned_test_server/local_test_server_posix.cc",
596 "test/spawned_test_server/local_test_server_win.cc",
597 "test/spawned_test_server/spawned_test_server.h",
598 ]
599 }
[email protected]8603c5de2014-04-16 20:34:31600
brettwbc8b2a22015-07-28 18:24:42601 configs += [
602 "//build/config:precompiled_headers",
603
604 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
605 "//build/config/compiler:no_size_t_to_int_warning",
606 ]
[email protected]8603c5de2014-04-16 20:34:31607
Brett Wilsone53895272014-09-23 23:41:46608 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31609 "//base",
610 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12611 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23612 "//net",
[email protected]8603c5de2014-04-16 20:34:31613 "//net/tools/tld_cleanup",
614 "//testing/gmock",
615 "//testing/gtest",
616 "//url",
617 ]
618
rsesek7d4ab4bc2016-07-22 17:35:13619 deps = []
sdefresne04f91142016-04-21 08:41:59620
jbudorick944eb922016-06-20 15:38:30621 data = [
622 "data/",
623 ]
624
rsesek7d4ab4bc2016-07-22 17:35:13625 if (is_ios) {
626 deps += [ ":test_support_bundle_data" ]
627 } else {
jamb533b7e2015-03-04 17:12:05628 public_deps += [ "//third_party/protobuf:py_proto" ]
629 }
630
svaldez2135be52016-04-20 16:34:53631 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24632 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31633 }
634
sherouk3eee4a82015-09-01 10:42:33635 if (is_android) {
636 sources += [
[email protected]8603c5de2014-04-16 20:34:31637 "test/spawned_test_server/remote_test_server.cc",
638 "test/spawned_test_server/remote_test_server.h",
639 "test/spawned_test_server/spawner_communicator.cc",
640 "test/spawned_test_server/spawner_communicator.h",
641 ]
642 }
643
644 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46645 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31646 }
647
648 if (!enable_mdns) {
649 sources -= [
650 "dns/mock_mdns_socket_factory.cc",
651 "dns/mock_mdns_socket_factory.h",
652 ]
653 }
654
davidben15d69d482014-09-29 18:24:08655 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24656 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07657 }
xunjielia6888202015-04-14 21:34:25658
659 if (!disable_file_support) {
660 sources += [
661 "test/url_request/url_request_mock_http_job.cc",
662 "test/url_request/url_request_mock_http_job.h",
663 "url_request/test_url_request_interceptor.cc",
664 "url_request/test_url_request_interceptor.h",
665 ]
666 }
[email protected]8603c5de2014-04-16 20:34:31667}
668
[email protected]ceeaac792014-06-25 05:14:43669source_set("balsa") {
670 sources = [
671 "tools/balsa/balsa_enums.h",
672 "tools/balsa/balsa_frame.cc",
673 "tools/balsa/balsa_frame.h",
674 "tools/balsa/balsa_headers.cc",
675 "tools/balsa/balsa_headers.h",
676 "tools/balsa/balsa_headers_token_utils.cc",
677 "tools/balsa/balsa_headers_token_utils.h",
678 "tools/balsa/balsa_visitor_interface.h",
679 "tools/balsa/http_message_constants.cc",
680 "tools/balsa/http_message_constants.h",
681 "tools/balsa/noop_balsa_visitor.h",
682 "tools/balsa/simple_buffer.cc",
683 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43684 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09685 "tools/quic/spdy_balsa_utils.cc",
686 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43687 ]
688 deps = [
689 ":net",
690 "//base",
[email protected]22fe91d2014-08-12 17:07:12691 "//url",
[email protected]ceeaac792014-06-25 05:14:43692 ]
693}
694
[email protected]8603c5de2014-04-16 20:34:31695if (use_v8_in_net) {
696 component("net_with_v8") {
697 sources = [
698 "proxy/proxy_resolver_v8.cc",
699 "proxy/proxy_resolver_v8.h",
700 "proxy/proxy_resolver_v8_tracing.cc",
701 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47702 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
703 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31704 "proxy/proxy_service_v8.cc",
705 "proxy/proxy_service_v8.h",
706 ]
707
708 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11709
[email protected]8603c5de2014-04-16 20:34:31710 configs += [
brettwd1c719a2015-02-19 23:17:04711 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31712 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11713 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31714 ]
715
Brett Wilsone53895272014-09-23 23:41:46716 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31717 ":net",
Brett Wilsone53895272014-09-23 23:41:46718 ]
719 deps = [
[email protected]8603c5de2014-04-16 20:34:31720 "//base",
721 "//gin",
722 "//url",
723 "//v8",
724 ]
725 }
726}
727
amistry7e6ebfdc82015-02-13 04:19:11728if (use_v8_in_net && !is_android) {
729 source_set("net_browser_services") {
730 sources = [
731 "dns/mojo_host_resolver_impl.cc",
732 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01733 "proxy/in_process_mojo_proxy_resolver_factory.cc",
734 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17735 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35736 "proxy/proxy_resolver_factory_mojo.cc",
737 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01738 "proxy/proxy_service_mojo.cc",
739 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11740 ]
741
742 public_deps = [
tfarina8ac4d17f2015-12-16 02:11:11743 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39744 "//base",
amistry07ff1402015-03-10 07:34:07745 "//mojo/common",
rockot85dce0862015-11-13 01:33:59746 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11747 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01748
749 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
750 # this dependency since in_process_mojo_proxy_resolver_factory creates
751 # the utility process side Mojo services in the browser process.
752 # Ultimately, this will go away when we only support out-of-process.
753 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11754 ]
755 }
756
sammc5403aa1d2015-02-25 04:59:21757 source_set("net_utility_services") {
758 sources = [
sammc6ac3fe52015-02-25 06:00:28759 "dns/host_resolver_mojo.cc",
760 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24761 "proxy/mojo_proxy_resolver_factory_impl.cc",
762 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21763 "proxy/mojo_proxy_resolver_impl.cc",
764 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51765 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21766 ]
767
rockot9509ec82015-04-14 02:50:56768 deps = [
769 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11770 "//base",
rockot9509ec82015-04-14 02:50:56771 ]
772
sammc5403aa1d2015-02-25 04:59:21773 public_deps = [
sammc5403aa1d2015-02-25 04:59:21774 ":net",
775 "//mojo/common",
rockot85dce0862015-11-13 01:33:59776 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21777 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21778 ]
779 }
amistry7e6ebfdc82015-02-13 04:19:11780}
781
[email protected]8603c5de2014-04-16 20:34:31782if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40783 executable("cert_verify_tool") {
784 testonly = true
785 sources = [
786 "tools/cert_verify_tool/cert_verify_tool.cc",
787 "tools/cert_verify_tool/cert_verify_tool_util.cc",
788 "tools/cert_verify_tool/cert_verify_tool_util.h",
789 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
790 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42791 "tools/cert_verify_tool/verify_using_path_builder.cc",
792 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40793 ]
794
795 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
796 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
797 deps = [
798 ":net",
799 ":test_support",
800 "//base",
801 "//build/config/sanitizers:deps",
802 "//build/win:default_exe_manifest",
803 ]
804 }
805
[email protected]8603c5de2014-04-16 20:34:31806 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24807 testonly = true
scottmg34fb7e52014-12-03 23:27:24808 sources = [
809 "tools/crash_cache/crash_cache.cc",
810 ]
dpranke43276212015-02-20 02:55:19811
brettwd1c719a2015-02-19 23:17:04812 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
813 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31814 deps = [
815 ":net",
[email protected]b2b2bf52014-05-28 20:26:57816 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31817 "//base",
brettwba7a73d2015-08-31 22:17:39818 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07819 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31820 ]
821 }
822
823 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24824 testonly = true
scottmg34fb7e52014-12-03 23:27:24825 sources = [
826 "tools/crl_set_dump/crl_set_dump.cc",
827 ]
dpranke43276212015-02-20 02:55:19828
brettwd1c719a2015-02-19 23:17:04829 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
830 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31831 deps = [
832 ":net",
833 "//base",
brettwba7a73d2015-08-31 22:17:39834 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07835 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31836 ]
837 }
838
839 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24840 testonly = true
scottmg34fb7e52014-12-03 23:27:24841 sources = [
842 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
843 ]
dpranke43276212015-02-20 02:55:19844
brettwd1c719a2015-02-19 23:17:04845 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
846 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31847 deps = [
848 ":net",
849 "//base",
brettwba7a73d2015-08-31 22:17:39850 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07851 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31852 ]
853 }
854
855 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24856 testonly = true
[email protected]8603c5de2014-04-16 20:34:31857 sources = [
858 "tools/gdig/file_net_log.cc",
859 "tools/gdig/gdig.cc",
860 ]
861 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("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24870 testonly = true
scottmg34fb7e52014-12-03 23:27:24871 sources = [
872 "tools/get_server_time/get_server_time.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",
880 "//base:i18n",
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 "//url",
884 ]
885 }
886
rockot9c67e5f2015-03-12 20:01:21887 executable("hpack_example_generator") {
888 testonly = true
889 sources = [
890 "spdy/fuzzing/hpack_example_generator.cc",
891 ]
892
893 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
894 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
895 deps = [
rockot9c67e5f2015-03-12 20:01:21896 ":net",
brettwba7a73d2015-08-31 22:17:39897 "//base",
898 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07899 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21900 ]
901 }
902
903 executable("hpack_fuzz_mutator") {
904 testonly = true
905 sources = [
906 "spdy/fuzzing/hpack_fuzz_mutator.cc",
907 ]
908
909 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
910 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
911 deps = [
rockot9c67e5f2015-03-12 20:01:21912 ":net",
brettwba7a73d2015-08-31 22:17:39913 "//base",
914 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07915 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21916 ]
917 }
918
919 executable("hpack_fuzz_wrapper") {
920 testonly = true
921 sources = [
922 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
923 ]
924
925 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
926 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
927 deps = [
rockot9c67e5f2015-03-12 20:01:21928 ":net",
brettwba7a73d2015-08-31 22:17:39929 "//base",
930 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07931 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21932 ]
933 }
934
[email protected]8603c5de2014-04-16 20:34:31935 if (use_v8_in_net) {
936 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24937 testonly = true
scottmg34fb7e52014-12-03 23:27:24938 sources = [
939 "tools/net_watcher/net_watcher.cc",
940 ]
[email protected]8603c5de2014-04-16 20:34:31941 deps = [
942 ":net",
943 ":net_with_v8",
944 "//base",
brettwba7a73d2015-08-31 22:17:39945 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07946 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31947 ]
[email protected]8603c5de2014-04-16 20:34:31948 }
949 }
950
951 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24952 testonly = true
scottmg34fb7e52014-12-03 23:27:24953 sources = [
954 "tools/testserver/run_testserver.cc",
955 ]
[email protected]8603c5de2014-04-16 20:34:31956 deps = [
[email protected]b2b2bf52014-05-28 20:26:57957 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31958 "//base",
959 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39960 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07961 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31962 "//testing/gtest",
963 ]
964 }
965
966 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24967 testonly = true
scottmg34fb7e52014-12-03 23:27:24968 sources = [
rvargase23fcf652015-03-04 19:59:22969 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:24970 ]
dpranke43276212015-02-20 02:55:19971
brettwd1c719a2015-02-19 23:17:04972 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
973 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31974 deps = [
975 ":net",
[email protected]b2b2bf52014-05-28 20:26:57976 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31977 "//base",
brettwba7a73d2015-08-31 22:17:39978 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07979 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31980 ]
981 }
982
983 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:24984 sources = [
985 "tools/tld_cleanup/tld_cleanup.cc",
986 ]
dpranke43276212015-02-20 02:55:19987
brettwd1c719a2015-02-19 23:17:04988 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
989 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31990 deps = [
991 "//base",
992 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39993 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07994 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31995 "//net/tools/tld_cleanup",
996 ]
997 }
998}
999
gabadie0774bee2016-05-12 14:02:581000if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:421001 executable("cachetool") {
1002 testonly = true
1003 sources = [
1004 "tools/cachetool/cachetool.cc",
1005 ]
1006 deps = [
1007 ":net",
1008 ":test_support",
1009 "//base",
1010 ]
1011 }
1012
1013 executable("content_decoder_tool") {
1014 testonly = true
1015 sources = [
1016 "filter/mock_filter_context.cc",
1017 "filter/mock_filter_context.h",
1018 "tools/content_decoder_tool/content_decoder_tool.cc",
1019 ]
1020 deps = [
1021 ":net",
1022 ":test_support",
1023 "//base",
1024 "//url",
1025 ]
1026 }
gabadie0774bee2016-05-12 14:02:581027}
gabadie64af64a2016-03-29 16:36:421028
gabadie0774bee2016-05-12 14:02:581029if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121030 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311031 sources = [
1032 "tools/epoll_server/epoll_server.cc",
1033 "tools/epoll_server/epoll_server.h",
1034 ]
1035 deps = [
1036 ":net",
1037 "//base",
1038 ]
1039 }
1040
rch216445c2015-03-27 00:23:281041 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311042 sources = [
1043 "tools/quic/quic_client.cc",
1044 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311045 "tools/quic/quic_default_packet_writer.cc",
1046 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071047 "tools/quic/quic_epoll_alarm_factory.cc",
1048 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311049 "tools/quic/quic_epoll_clock.cc",
1050 "tools/quic/quic_epoll_clock.h",
1051 "tools/quic/quic_epoll_connection_helper.cc",
1052 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551053 "tools/quic/quic_packet_reader.cc",
1054 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311055 "tools/quic/quic_packet_writer_wrapper.cc",
1056 "tools/quic/quic_packet_writer_wrapper.h",
1057 "tools/quic/quic_server.cc",
1058 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311059 "tools/quic/quic_socket_utils.cc",
1060 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311061 ]
1062 deps = [
1063 ":balsa",
1064 ":epoll_server",
1065 ":net",
tfarina8ac4d17f2015-12-16 02:11:111066 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311067 "//base",
1068 "//base/third_party/dynamic_annotations",
1069 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371070 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311071 "//url",
1072 ]
1073 }
1074
rch216445c2015-03-27 00:23:281075 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241076 sources = [
1077 "tools/quic/quic_client_bin.cc",
1078 ]
[email protected]8603c5de2014-04-16 20:34:311079 deps = [
brettwbc44c0a92015-02-20 22:30:391080 ":balsa",
rch216445c2015-03-27 00:23:281081 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281082 ":epoll_server",
rch216445c2015-03-27 00:23:281083 ":net",
1084 ":simple_quic_tools",
1085 "//base",
brettwba7a73d2015-08-31 22:17:391086 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281087 "//third_party/boringssl",
1088 ]
1089 }
1090
1091 executable("epoll_quic_server") {
1092 sources = [
1093 "tools/quic/quic_server_bin.cc",
1094 ]
1095 deps = [
1096 ":balsa",
rch216445c2015-03-27 00:23:281097 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281098 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311099 ":net",
rchda78df5a2015-03-22 05:16:371100 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311101 "//base",
brettwba7a73d2015-08-31 22:17:391102 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371103 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311104 ]
1105 }
[email protected]8603c5de2014-04-16 20:34:311106}
1107
[email protected]ef0eb442014-05-15 09:32:181108if (is_android) {
1109 generate_jni("net_jni_headers") {
1110 sources = [
tbansalc04b7aa2016-07-02 06:54:371111 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181112 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1113 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1114 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011115 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181116 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531117 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171118 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181119 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1120 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1121 "android/java/src/org/chromium/net/X509Util.java",
1122 ]
1123 jni_package = "net"
1124 }
cjhopmandad5f4272014-09-05 01:00:551125 generate_jni("net_test_jni_headers") {
1126 sources = [
1127 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531128 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351129 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551130 ]
brettwcdccaf02015-07-27 16:27:091131 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551132 }
[email protected]ef0eb442014-05-15 09:32:181133}
[email protected]8603c5de2014-04-16 20:34:311134
1135if (is_android || is_linux) {
1136 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241137 testonly = true
scottmg34fb7e52014-12-03 23:27:241138 sources = [
1139 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1140 ]
[email protected]8603c5de2014-04-16 20:34:311141 deps = [
1142 ":net",
1143 "//base",
brettwba7a73d2015-08-31 22:17:391144 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311145 ]
1146 }
1147}
[email protected]8a3f8242014-06-05 18:05:121148
rch47ad01f2015-03-20 21:17:231149source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491150 sources = [
ckrasica7fd1242016-05-14 20:36:011151 "tools/quic/chlo_extractor.cc",
1152 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311153 "tools/quic/quic_client_base.cc",
1154 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051155 "tools/quic/quic_client_session.cc",
1156 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561157 "tools/quic/quic_dispatcher.cc",
1158 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211159 "tools/quic/quic_in_memory_cache.cc",
1160 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561161 "tools/quic/quic_per_connection_packet_writer.cc",
1162 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581163 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491164 "tools/quic/quic_simple_client.cc",
1165 "tools/quic/quic_simple_client.h",
ianswett6c7b7ed2016-09-13 19:35:271166 "tools/quic/quic_simple_crypto_server_stream_helper.cc",
1167 "tools/quic/quic_simple_crypto_server_stream_helper.h",
alyssara473d6f2016-08-04 16:54:041168 "tools/quic/quic_simple_dispatcher.cc",
1169 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281170 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1171 "tools/quic/quic_simple_per_connection_packet_writer.h",
1172 "tools/quic/quic_simple_server.cc",
1173 "tools/quic/quic_simple_server.h",
1174 "tools/quic/quic_simple_server_packet_writer.cc",
1175 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391176 "tools/quic/quic_simple_server_session.cc",
1177 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311178 "tools/quic/quic_simple_server_session_helper.cc",
1179 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401180 "tools/quic/quic_simple_server_stream.cc",
1181 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051182 "tools/quic/quic_spdy_client_stream.cc",
1183 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211184 "tools/quic/quic_time_wait_list_manager.cc",
1185 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371186 "tools/quic/stateless_rejector.cc",
1187 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371188 "tools/quic/synchronous_host_resolver.cc",
1189 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491190 ]
1191 deps = [
tfarina8ac4d17f2015-12-16 02:11:111192 ":balsa",
rcha9d12ce12015-03-19 23:06:491193 ":net",
1194 "//base",
rch47ad01f2015-03-20 21:17:231195 "//base/third_party/dynamic_annotations",
1196 "//url",
1197 ]
1198}
1199
ricea7afa5232015-12-01 20:55:231200action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
1201 script = "//net/tools/dafsa/make_dafsa.py"
1202 sources = [
1203 "base/stale_while_revalidate_experiment_domains.gperf",
1204 ]
1205 outputs = [
1206 "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1207 ]
1208 args = [
1209 "{{source}}",
1210 rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
1211 root_build_dir),
1212 ]
1213}
1214
1215source_set("stale_while_revalidate_experiment_domains") {
1216 sources = [
1217 "base/stale_while_revalidate_experiment_domains.cc",
1218 "base/stale_while_revalidate_experiment_domains.h",
1219 ]
1220 deps = [
1221 ":net",
1222 ":stale_while_revalidate_experiment_domains_dafsa",
1223 "//base",
1224 ]
kapishnikovabe280e2016-04-14 19:07:161225 configs += net_configs
ricea7afa5232015-12-01 20:55:231226}
1227
sherouk51b4b098b2015-08-10 09:00:431228if (!is_ios) {
1229 executable("quic_client") {
1230 sources = [
1231 "tools/quic/quic_simple_client_bin.cc",
1232 ]
1233 deps = [
1234 ":net",
1235 ":simple_quic_tools",
1236 "//base",
brettwba7a73d2015-08-31 22:17:391237 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071238 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431239 "//url",
1240 ]
1241 }
1242 executable("quic_server") {
1243 sources = [
1244 "tools/quic/quic_simple_server_bin.cc",
1245 ]
1246 deps = [
1247 ":net",
1248 ":simple_quic_tools",
1249 "//base",
brettwba7a73d2015-08-31 22:17:391250 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071251 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431252 "//third_party/boringssl",
1253 "//third_party/protobuf:protobuf_lite",
1254 ]
1255 }
rchf80f62d12016-05-11 00:47:311256 executable("quic_packet_printer") {
1257 sources = [
1258 "tools/quic/quic_packet_printer_bin.cc",
1259 ]
1260 deps = [
1261 ":net",
1262 ":simple_quic_tools",
1263 "//base",
1264 "//build/config/sanitizers:deps",
1265 "//build/win:default_exe_manifest",
1266 "//third_party/boringssl",
1267 "//third_party/protobuf:protobuf_lite",
1268 ]
1269 }
mpwbbea85d2016-08-27 14:39:211270 executable("quic_reject_reason_decoder") {
1271 sources = [
1272 "tools/quic/quic_reject_reason_decoder_bin.cc",
1273 ]
1274 deps = [
1275 ":net",
1276 ":simple_quic_tools",
1277 "//base",
1278 "//build/config/sanitizers:deps",
1279 "//build/win:default_exe_manifest",
1280 "//third_party/boringssl",
1281 "//third_party/protobuf:protobuf_lite",
1282 ]
1283 }
danzh1401f0a2016-05-19 13:41:101284 executable("crypto_message_printer") {
1285 sources = [
1286 "tools/quic/crypto_message_printer_bin.cc",
1287 ]
1288 deps = [
1289 ":net",
1290 "//base",
1291 "//build/config/sanitizers:deps",
1292 "//build/win:default_exe_manifest",
1293 ]
1294 }
rch216445c2015-03-27 00:23:281295}
1296
sdefresneb0a31642016-03-18 11:04:451297bundle_data("net_unittests_bundle_data") {
1298 testonly = true
sdefresne04f91142016-04-21 08:41:591299 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451300 outputs = [
1301 "{{bundle_resources_dir}}/" +
1302 "{{source_root_relative_dir}}/{{source_file_part}}",
1303 ]
1304}
1305
dpranke64df2832015-07-31 22:33:361306test("net_unittests") {
1307 sources = gypi_values.net_test_sources
1308
1309 configs += [
1310 "//build/config:precompiled_headers",
1311
1312 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1313 "//build/config/compiler:no_size_t_to_int_warning",
1314 ]
1315 defines = []
1316
1317 deps = [
1318 ":balsa",
1319 ":extras",
dpranke64df2832015-07-31 22:33:361320 ":net",
1321 ":simple_quic_tools",
ricea7afa5232015-12-01 20:55:231322 ":stale_while_revalidate_experiment_domains",
dpranke64df2832015-07-31 22:33:361323 ":test_support",
1324 "//base",
1325 "//base:i18n",
dpranke64df2832015-07-31 22:33:361326 "//base/third_party/dynamic_annotations",
1327 "//crypto",
1328 "//crypto:platform",
1329 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361330 "//net/base/registry_controlled_domains",
1331 "//sql",
1332 "//testing/gmock",
1333 "//testing/gtest",
1334 "//third_party/zlib",
1335 "//url",
kapishnikovabe280e2016-04-14 19:07:161336 "//url:url_features",
dpranke64df2832015-07-31 22:33:361337 ]
1338
jbudorick944eb922016-06-20 15:38:301339 data = []
svaldez2135be52016-04-20 16:34:531340 data_deps = [
1341 "third_party/nist-pkits/",
1342 ]
dpranke64df2832015-07-31 22:33:361343
1344 if (is_linux || is_mac || is_win) {
1345 deps += [
1346 "//third_party/pyftpdlib/",
1347 "//third_party/pywebsocket/",
1348 "//third_party/tlslite/",
1349 ]
mattm6586b432016-02-12 04:52:391350 data_deps += [
dpranke64df2832015-07-31 22:33:361351 "//third_party/pyftpdlib/",
1352 "//third_party/pywebsocket/",
1353 "//third_party/tlslite/",
1354 ]
1355 data += [
1356 "tools/testserver/",
1357 "//third_party/pyftpdlib/",
1358 "//third_party/pywebsocket/",
1359 "//third_party/tlslite/",
1360 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231361 ]
1362 }
1363
dpranke64df2832015-07-31 22:33:361364 if (is_desktop_linux) {
1365 deps += [ ":epoll_quic_tools" ]
1366 }
1367 if (is_linux) {
1368 sources += gypi_values.net_linux_test_sources
1369 deps += [
1370 ":epoll_quic_tools",
1371 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421372 ]
dpranke64df2832015-07-31 22:33:361373 }
[email protected]8a3f8242014-06-05 18:05:121374
dpranke64df2832015-07-31 22:33:361375 if (is_mac || is_ios) {
1376 sources += gypi_values.net_base_test_mac_ios_sources
1377 }
1378
mattmaf868e72016-09-23 23:25:201379 if (is_mac) {
1380 libs = [ "Security.framework" ]
1381 }
1382
dpranke64df2832015-07-31 22:33:361383 if (is_chromeos) {
1384 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1385 }
1386
1387 if (v8_use_external_startup_data) {
1388 deps += [ "//gin" ]
1389 }
1390
1391 if (!use_nss_certs) {
1392 sources -= [
mattm9c63d442016-09-03 00:45:511393 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361394 "cert/nss_cert_database_unittest.cc",
1395 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121396 ]
dpranke64df2832015-07-31 22:33:361397 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411398 sources -= [
dpranke64df2832015-07-31 22:33:361399 "cert/nss_cert_database_chromeos_unittest.cc",
1400 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411401 ]
brettw43ae0e12015-07-14 22:12:361402 }
[email protected]8a3f8242014-06-05 18:05:121403 }
dpranke64df2832015-07-31 22:33:361404
dpranke64df2832015-07-31 22:33:361405 if (use_kerberos) {
1406 defines += [ "USE_KERBEROS" ]
1407 }
1408
1409 # These are excluded on Android, because the actual Kerberos support, which
1410 # these test, is in a separate app on Android.
1411 if (!use_kerberos || is_android) {
1412 sources -= [
1413 "http/http_auth_gssapi_posix_unittest.cc",
1414 "http/mock_gssapi_library_posix.cc",
1415 "http/mock_gssapi_library_posix.h",
1416 ]
1417 }
1418 if (!use_kerberos) {
1419 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1420 }
1421
svaldez2135be52016-04-20 16:34:531422 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531423 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361424 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1425 }
1426
1427 if (!use_openssl_certs) {
1428 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1429 }
1430
jbudorick1273a842016-04-01 19:50:051431 if (enable_websockets) {
1432 sources += gypi_values.net_websockets_test_sources
1433 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361434 }
1435
1436 if (disable_file_support) {
1437 sources -= [
1438 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161439 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041440 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361441 "url_request/url_request_file_job_unittest.cc",
1442 ]
1443 }
1444
1445 if (disable_ftp_support) {
1446 sources -= [
1447 "ftp/ftp_auth_cache_unittest.cc",
1448 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1449 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361450 "ftp/ftp_directory_listing_parser_unittest.cc",
1451 "ftp/ftp_directory_listing_parser_unittest.h",
1452 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1453 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1454 "ftp/ftp_network_transaction_unittest.cc",
1455 "ftp/ftp_util_unittest.cc",
1456 "url_request/url_request_ftp_job_unittest.cc",
1457 ]
1458 }
1459
1460 if (!enable_built_in_dns) {
1461 sources -= [
1462 "dns/address_sorter_posix_unittest.cc",
1463 "dns/address_sorter_unittest.cc",
1464 ]
1465 }
1466
xunjieli905496a2015-08-31 15:51:171467 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361468 deps += [ ":net_with_v8" ]
1469 } else {
1470 sources -= [
1471 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1472 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1473 "proxy/proxy_resolver_v8_unittest.cc",
1474 ]
1475 }
1476
1477 if (use_v8_in_net && !is_android) {
1478 deps += [
1479 ":net_browser_services",
1480 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081481 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361482 ]
1483 } else {
1484 sources -= [
1485 "dns/host_resolver_mojo_unittest.cc",
1486 "dns/mojo_host_resolver_impl_unittest.cc",
1487 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1488 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1489 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1490 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1491 "proxy/proxy_service_mojo_unittest.cc",
1492 ]
1493 }
1494
1495 if (!enable_mdns) {
1496 sources -= [
1497 "dns/mdns_cache_unittest.cc",
1498 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361499 ]
1500 }
1501
1502 if (is_ios) {
dpranke64df2832015-07-31 22:33:361503 sources -= [
1504 # TODO(droger): The following tests are disabled because the
1505 # implementation is missing or incomplete.
1506 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1507 "base/keygen_handler_unittest.cc",
1508 "disk_cache/backend_unittest.cc",
1509 "disk_cache/blockfile/block_files_unittest.cc",
1510
1511 # Need to read input data files.
1512 "filter/gzip_filter_unittest.cc",
1513 "socket/ssl_server_socket_unittest.cc",
1514 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1515
1516 # Need TestServer.
1517 "cert_net/cert_net_fetcher_impl_unittest.cc",
1518 "proxy/proxy_script_fetcher_impl_unittest.cc",
1519 "socket/ssl_client_socket_unittest.cc",
1520 "url_request/url_fetcher_impl_unittest.cc",
1521 "url_request/url_request_context_builder_unittest.cc",
1522
1523 # Needs GetAppOutput().
1524 "test/python_utils_unittest.cc",
1525
1526 # The following tests are disabled because they don't apply to
1527 # iOS.
1528 # OS is not "linux" or "freebsd" or "openbsd".
1529 "socket/unix_domain_client_socket_posix_unittest.cc",
1530 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361531 ]
rsesek7d4ab4bc2016-07-22 17:35:131532
1533 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361534 }
1535
kapishnikovabe280e2016-04-14 19:07:161536 # Unit tests that aren't supported by the current ICU alternatives on Android.
1537 if (is_android && use_platform_icu_alternatives) {
1538 sources -= [
1539 "base/filename_util_unittest.cc",
1540 "base/url_util_unittest.cc",
1541 "cert/x509_certificate_unittest.cc",
1542 "proxy/proxy_resolver_v8_unittest.cc",
1543 "url_request/url_request_job_unittest.cc",
1544 ]
1545 }
1546
1547 # Unit tests that are not supported by the current ICU alternatives on iOS.
1548 if (is_ios && use_platform_icu_alternatives) {
1549 sources -= [
1550 "base/filename_util_unittest.cc",
1551 "base/url_util_unittest.cc",
1552 "cert/x509_certificate_unittest.cc",
1553 "http/http_auth_handler_basic_unittest.cc",
1554 "http/http_auth_handler_digest_unittest.cc",
1555 "http/http_auth_handler_factory_unittest.cc",
1556 "http/http_auth_unittest.cc",
1557 "http/http_content_disposition_unittest.cc",
1558 "http/http_network_transaction_unittest.cc",
1559 "http/http_proxy_client_socket_pool_unittest.cc",
1560 "socket/ssl_client_socket_pool_unittest.cc",
1561 "spdy/spdy_network_transaction_unittest.cc",
1562 "spdy/spdy_proxy_client_socket_unittest.cc",
1563 "url_request/url_request_job_unittest.cc",
1564 "url_request/url_request_unittest.cc",
1565 ]
1566 }
1567
1568 # Exclude brotli test if the support for brotli is disabled.
1569 # Also, exclude the test from iOS for now (needs to read input data files).
1570 if (disable_brotli_filter || is_ios) {
1571 sources -= [ "filter/brotli_filter_unittest.cc" ]
xunjieli084a9292016-09-23 18:15:041572 sources -= [ "filter/brotli_source_stream_unittest.cc" ]
kapishnikovabe280e2016-04-14 19:07:161573 }
1574
dpranke64df2832015-07-31 22:33:361575 if (is_android) {
agrieve732db3a2016-04-26 19:18:191576 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191577 deps += [
1578 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451579 "//base:base_java_unittest_support",
1580 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451581 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191582 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451583 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191584
1585 # TODO(mmenke): This depends on test_support_base, which depends on
1586 # icu. Figure out a way to remove that dependency.
1587 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071588 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451589 ]
1590 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361591 set_sources_assignment_filter([])
1592 sources += [ "base/address_tracker_linux_unittest.cc" ]
1593 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001594 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361595 }
1596
dpranke64df2832015-07-31 22:33:361597 # Symbols for crashes when running tests on swarming.
1598 if (symbol_level > 0) {
1599 if (is_win) {
1600 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1601 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131602 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1603 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361604 }
1605 }
maksim.sisovc69619d2016-05-20 19:23:551606
1607 if (is_win) {
mmenke91c17162016-06-02 16:03:231608 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551609 }
dpranke64df2832015-07-31 22:33:361610}
1611
1612# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031613if (!is_ios) {
1614 # TODO(crbug.com/594965): this should be converted to "app" template and
1615 # enabled on iOS too.
1616 executable("net_perftests") {
1617 testonly = true
1618 sources = [
1619 "base/mime_sniffer_perftest.cc",
1620 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051621 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031622 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1623 "proxy/proxy_resolver_perftest.cc",
1624 "udp/udp_socket_perftest.cc",
1625 ]
[email protected]8a3f8242014-06-05 18:05:121626
sdefresne3001f172016-03-16 10:30:031627 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1628 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1629 deps = [
1630 ":extras",
1631 ":net",
1632 ":test_support",
1633 "//base",
1634 "//base:i18n",
1635 "//base/test:test_support_perf",
1636 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071637 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031638 "//testing/gtest",
1639 "//url",
1640 ]
rockot9c67e5f2015-03-12 20:01:211641
sdefresne3001f172016-03-16 10:30:031642 if (enable_websockets) {
1643 sources += [ "websockets/websocket_frame_perftest.cc" ]
1644 }
rockot9c67e5f2015-03-12 20:01:211645
sdefresne3001f172016-03-16 10:30:031646 if (use_v8_in_net) {
1647 deps += [ ":net_with_v8" ]
1648 } else {
1649 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1650 }
rockot9c67e5f2015-03-12 20:01:211651 }
rockot9c67e5f2015-03-12 20:01:211652}
mefff34b822016-01-11 15:28:081653
eromanfe8659e2016-03-02 23:47:021654# Fuzzers
1655
mmenke35a30012016-07-15 19:20:121656# This has a global (InitGlobals) that must always be linked in, so
1657# must be a source set instead of a static library.
1658source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161659 testonly = true
1660
1661 sources = [
csharrison37ef9852016-08-23 19:00:191662 "base/fuzzer_test_support.cc",
mmenke99b57172016-04-14 20:44:331663 "socket/fuzzed_socket.cc",
1664 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221665 "socket/fuzzed_socket_factory.cc",
1666 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231667 "udp/fuzzed_datagram_client_socket.cc",
1668 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161669 ]
csharrisonf30fc95f2016-08-19 21:43:441670 public_deps = [
1671 "//base/test:test_support",
1672 ]
eroman02b4fe562016-03-04 12:15:161673 deps = [
1674 "//base",
1675 "//base:i18n",
mmenke99b57172016-04-14 20:44:331676 "//net",
eroman02b4fe562016-03-04 12:15:161677 ]
1678}
1679
csharrisonaa314dc2016-04-29 20:15:371680fuzzer_test("net_data_job_fuzzer") {
1681 sources = [
1682 "url_request/url_request_data_job_fuzzer.cc",
1683 ]
1684 deps = [
1685 ":net_fuzzer_test_support",
1686 ":test_support",
1687 "//base",
1688 "//net",
1689 ]
1690}
1691
mmenke5552a6a2016-03-28 23:11:591692fuzzer_test("net_mime_sniffer_fuzzer") {
1693 sources = [
1694 "base/mime_sniffer_fuzzer.cc",
1695 ]
1696 deps = [
1697 ":net_fuzzer_test_support",
1698 "//base",
1699 "//net",
1700 ]
mmoroz4a561d32016-07-07 17:45:121701 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591702}
1703
mmoroz565e8df22016-03-04 18:17:201704fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301705 sources = [
1706 "proxy/parse_proxy_list_pac_fuzzer.cc",
1707 ]
1708 deps = [
eroman02b4fe562016-03-04 12:15:161709 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301710 "//net",
1711 ]
1712}
1713
mmoroz565e8df22016-03-04 18:17:201714fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301715 sources = [
1716 "proxy/parse_proxy_list_fuzzer.cc",
1717 ]
1718 deps = [
eroman02b4fe562016-03-04 12:15:161719 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301720 "//net",
1721 ]
1722}
1723
mmoroz565e8df22016-03-04 18:17:201724fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301725 sources = [
1726 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1727 ]
1728 deps = [
eroman02b4fe562016-03-04 12:15:161729 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301730 "//net",
1731 ]
1732}
1733
mmoroz565e8df22016-03-04 18:17:201734fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301735 sources = [
1736 "proxy/parse_proxy_rules_fuzzer.cc",
1737 ]
1738 deps = [
eroman02b4fe562016-03-04 12:15:161739 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301740 "//net",
1741 ]
metzman31db75e2016-08-03 22:33:271742 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301743}
1744
mmoroz565e8df22016-03-04 18:17:201745fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301746 sources = [
1747 "base/parse_data_url_fuzzer.cc",
1748 ]
1749 deps = [
eroman02b4fe562016-03-04 12:15:161750 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301751 "//base",
1752 "//net",
1753 ]
mmoroz4a561d32016-07-07 17:45:121754 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301755}
1756
mmoroz565e8df22016-03-04 18:17:201757fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301758 sources = [
1759 "base/parse_ip_pattern_fuzzer.cc",
1760 ]
1761 deps = [
eroman02b4fe562016-03-04 12:15:161762 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301763 "//net",
1764 ]
1765}
1766
mmoroz565e8df22016-03-04 18:17:201767fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301768 sources = [
1769 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1770 ]
1771 deps = [
eroman02b4fe562016-03-04 12:15:161772 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301773 "//base",
eromane6264fd2016-03-02 22:46:301774 "//net",
1775 ]
mmoroz4a561d32016-07-07 17:45:121776 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301777}
1778
mattmafe43b82016-04-28 20:40:541779fuzzer_test("net_cert_verify_name_match_fuzzer") {
1780 sources = [
1781 "cert/internal/verify_name_match_fuzzer.cc",
1782 ]
1783 deps = [
1784 ":net_fuzzer_test_support",
1785 "//base",
1786 "//net",
1787 ]
1788}
1789
mattm2c637da42016-04-28 02:55:591790fuzzer_test("net_cert_normalize_name_fuzzer") {
1791 sources = [
1792 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1793 ]
1794 deps = [
1795 "//base",
1796 "//net",
1797 ]
1798}
1799
mattmafe43b82016-04-28 20:40:541800fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1801 sources = [
1802 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1803 ]
1804 deps = [
1805 ":net_fuzzer_test_support",
1806 "//base",
1807 "//net",
1808 ]
1809}
1810
nharper85d3b6f2016-04-28 20:58:191811fuzzer_test("net_cert_parse_certificate_fuzzer") {
1812 sources = [
1813 "cert/internal/parse_certificate_fuzzer.cc",
1814 ]
1815 deps = [
1816 "//base",
1817 "//net",
1818 ]
1819}
1820
mmoroz565e8df22016-03-04 18:17:201821fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301822 sources = [
1823 "cookies/parse_cookie_line_fuzzer.cc",
1824 ]
1825 deps = [
eroman02b4fe562016-03-04 12:15:161826 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301827 "//net",
1828 ]
1829}
1830
mmoroz565e8df22016-03-04 18:17:201831fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021832 sources = [
1833 "dns/dns_record_fuzzer.cc",
1834 ]
1835 deps = [
eroman02b4fe562016-03-04 12:15:161836 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021837 "//base",
1838 "//net",
1839 ]
mmoroz4a561d32016-07-07 17:45:121840 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021841}
1842
zhongyi273af9f2016-04-28 18:46:341843fuzzer_test("net_dns_hosts_parse_fuzzer") {
1844 sources = [
1845 "dns/dns_hosts_parse_fuzzer.cc",
1846 ]
1847 deps = [
1848 ":net_fuzzer_test_support",
1849 "//base",
1850 "//net",
1851 ]
mmoroz4a561d32016-07-07 17:45:121852 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341853}
1854
mmenke91c17162016-06-02 16:03:231855fuzzer_test("net_host_resolver_impl_fuzzer") {
1856 sources = [
1857 "dns/fuzzed_host_resolver.cc",
1858 "dns/fuzzed_host_resolver.h",
1859 "dns/host_resolver_impl_fuzzer.cc",
1860 ]
1861 deps = [
1862 ":net_fuzzer_test_support",
1863 ":test_support",
1864 "//base",
1865 "//net",
1866 ]
mmoroz4a561d32016-07-07 17:45:121867 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231868}
1869
mmenke44e8e9c2016-03-29 18:38:571870fuzzer_test("net_http_stream_parser_fuzzer") {
1871 sources = [
1872 "http/http_stream_parser_fuzzer.cc",
1873 ]
1874 deps = [
1875 ":net_fuzzer_test_support",
1876 ":test_support",
1877 "//base",
1878 "//net",
1879 ]
mmoroz4a561d32016-07-07 17:45:121880 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571881}
1882
mmoroz565e8df22016-03-04 18:17:201883fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021884 sources = [
1885 "ftp/ftp_ctrl_response_fuzzer.cc",
1886 ]
1887 deps = [
eroman02b4fe562016-03-04 12:15:161888 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021889 "//base",
1890 "//net",
1891 ]
1892}
1893
mmoroz565e8df22016-03-04 18:17:201894fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021895 sources = [
1896 "ftp/ftp_directory_listing_fuzzer.cc",
1897 ]
1898 deps = [
eroman02b4fe562016-03-04 12:15:161899 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021900 "//base",
eromanfe8659e2016-03-02 23:47:021901 "//net",
1902 ]
1903}
1904
mmoroz565e8df22016-03-04 18:17:201905fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021906 sources = [
1907 "base/unescape_url_component_fuzzer.cc",
1908 ]
1909 deps = [
eroman02b4fe562016-03-04 12:15:161910 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021911 "//base",
1912 "//net",
1913 ]
mmoroz34eb0082016-03-11 14:32:011914 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331915 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021916}
1917
ricea7b870e72016-09-01 04:41:041918fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1919 sources = [
1920 "websockets/websocket_deflate_stream_fuzzer.cc",
1921 ]
1922 deps = [
1923 ":net_fuzzer_test_support",
1924 "//net",
1925 ]
1926 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1927 libfuzzer_options = [ "max_len=512" ]
1928}
1929
riceaf9dcc092016-09-13 12:42:001930fuzzer_test("net_websocket_extension_parser_fuzzer") {
1931 sources = [
1932 "websockets/websocket_extension_parser_fuzzer.cc",
1933 ]
1934 deps = [
1935 ":net_fuzzer_test_support",
1936 "//net",
1937 ]
1938 dict = "data/fuzzer_dictionaries/net_websocket_extension_parser_fuzzer.dict"
1939 libfuzzer_options = [ "max_len = 256" ]
1940}
1941
mmoroz565e8df22016-03-04 18:17:201942fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021943 sources = [
1944 "websockets/websocket_frame_parser_fuzzer.cc",
1945 ]
1946 deps = [
eroman02b4fe562016-03-04 12:15:161947 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021948 "//net",
1949 ]
mmoroz4a561d32016-07-07 17:45:121950 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071951 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021952}
1953
mmoroz565e8df22016-03-04 18:17:201954fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021955 sources = [
1956 "http/http_chunked_decoder_fuzzer.cc",
1957 ]
1958 deps = [
eroman02b4fe562016-03-04 12:15:161959 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021960 "//net",
1961 ]
1962}
1963
mmenke8e9314bc2016-04-15 21:45:021964fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1965 sources = [
1966 "http/http_proxy_client_socket_fuzzer.cc",
1967 ]
1968 deps = [
1969 ":net_fuzzer_test_support",
1970 ":test_support",
1971 "//base",
1972 "//net",
1973 ]
mmoroz4a561d32016-07-07 17:45:121974 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021975}
1976
mmoroz9299ef9b2016-09-01 17:37:091977fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1978 sources = [
1979 "base/parse_url_hostname_to_address_fuzzer.cc",
1980 ]
1981 deps = [
1982 ":net_fuzzer_test_support",
1983 "//base",
1984 "//net",
1985 ]
1986 libfuzzer_options = [ "max_len=512" ]
1987 seed_corpus = "data/fuzzer_data/hostnames/"
1988}
1989
mmoroz565e8df22016-03-04 18:17:201990fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021991 sources = [
rchd4db7c152016-07-29 21:58:121992 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021993 ]
1994 deps = [
eroman02b4fe562016-03-04 12:15:161995 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021996 "//base",
1997 "//net",
1998 ]
1999}
mmenke99b57172016-04-14 20:44:332000
2001fuzzer_test("net_socks_client_socket_fuzzer") {
2002 sources = [
2003 "socket/socks_client_socket_fuzzer.cc",
2004 ]
2005 deps = [
2006 ":net_fuzzer_test_support",
2007 ":test_support",
2008 "//base",
2009 "//net",
2010 ]
2011}
2012
2013fuzzer_test("net_socks5_client_socket_fuzzer") {
2014 sources = [
2015 "socket/socks5_client_socket_fuzzer.cc",
2016 ]
2017 deps = [
2018 ":net_fuzzer_test_support",
2019 ":test_support",
2020 "//base",
2021 "//net",
2022 ]
2023}
mmenkec951d412016-04-28 19:05:222024
2025fuzzer_test("net_url_request_fuzzer") {
2026 sources = [
2027 "url_request/url_request_fuzzer.cc",
2028 ]
2029 deps = [
2030 ":net_fuzzer_test_support",
2031 ":test_support",
2032 "//base",
2033 "//net",
2034 ]
mmoroz4a561d32016-07-07 17:45:122035 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222036}
csharrison88d2a612016-09-09 16:58:542037
2038fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
2039 sources = [
2040 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2041 ]
2042 deps = [
2043 ":net_fuzzer_test_support",
2044 ":test_support",
2045 "//base",
2046 "//net",
2047 ]
2048}