blob: 5a09452908f3fdded6ff6bd041b0ab69e3f9559f [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
brettwa1228ebb2016-10-28 03:51:3443buildflag_header("features") {
44 header = "net_features.h"
45 flags = [
46 "POSIX_AVOID_MMAP=$posix_avoid_mmap",
47 "DISABLE_FILE_SUPPORT=$disable_file_support",
48 "DISABLE_FTP_SUPPORT=$disable_ftp_support",
brettw5224a182016-10-28 22:13:0249 "ENABLE_MDNS=$enable_mdns",
brettwa1228ebb2016-10-28 03:51:3450 "ENABLE_WEBSOCKETS=$enable_websockets",
51 ]
[email protected]4625ade2014-04-15 19:26:4452}
53
xunjieli905496a2015-08-31 15:51:1754config("net_internal_config") {
[email protected]8603c5de2014-04-16 20:34:3155 defines = [
[email protected]8603c5de2014-04-16 20:34:3156 "DLOPEN_KERBEROS",
scottmg34fb7e52014-12-03 23:27:2457 "NET_IMPLEMENTATION",
[email protected]8603c5de2014-04-16 20:34:3158 ]
dpranke43276212015-02-20 02:55:1959
[email protected]4625ade2014-04-15 19:26:4460 if (use_kerberos) {
61 defines += [ "USE_KERBEROS" ]
62 if (is_android) {
xunjieli905496a2015-08-31 15:51:1763 include_dirs = [ "/usr/include/kerberosV" ]
[email protected]4625ade2014-04-15 19:26:4464 }
[email protected]4625ade2014-04-15 19:26:4465 }
66
67 if (enable_built_in_dns) {
68 defines += [ "ENABLE_BUILT_IN_DNS" ]
xunjieli905496a2015-08-31 15:51:1769 }
70}
71
kapishnikovabe280e2016-04-14 19:07:1672net_configs = [
xunjieli905496a2015-08-31 15:51:1773 ":net_internal_config",
74 "//build/config:precompiled_headers",
75
76 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
77 "//build/config/compiler:no_size_t_to_int_warning",
rsesek99679aa2016-06-28 21:24:1778 "//build/config/compiler:wexit_time_destructors",
xunjieli905496a2015-08-31 15:51:1779]
80
kapishnikovabe280e2016-04-14 19:07:1681if (use_glib && use_gconf && !is_chromeos) {
agrieve95ba4442016-04-25 15:47:1382 net_configs += [ "//build/config/linux/gconf" ]
kapishnikovabe280e2016-04-14 19:07:1683}
xunjieli905496a2015-08-31 15:51:1784
kapishnikovabe280e2016-04-14 19:07:1685if (is_linux) {
86 net_configs += [ "//build/config/linux:libresolv" ]
xunjieli905496a2015-08-31 15:51:1787}
88
89component("net") {
kapishnikovabe280e2016-04-14 19:07:1690 sources = gypi_values.net_nacl_common_sources
91 net_unfiltered_sources = []
92
93 deps = [
94 ":net_resources",
95 "//base",
96 "//net/base/registry_controlled_domains",
97 "//third_party/protobuf:protobuf_lite",
98 "//url:url_features",
99 ]
100
101 public_deps = [
102 ":net_quic_proto",
103 "//crypto",
104 "//crypto:platform",
105 ]
106
107 if (!is_nacl) {
108 sources += gypi_values.net_non_nacl_sources
109
110 deps += [
111 "//base/third_party/dynamic_annotations",
112 "//components/prefs",
113 "//sdch",
114 "//third_party/zlib",
115 ]
116
117 if (!use_kerberos) {
118 sources -= [
119 "http/http_auth_handler_negotiate.cc",
120 "http/http_auth_handler_negotiate.h",
121 ]
122 }
123
124 if (is_posix) {
125 if (posix_avoid_mmap) {
126 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
127 } else {
128 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
129 }
130 }
131
132 if (!enable_built_in_dns) {
133 sources -= [
134 "dns/address_sorter_posix.cc",
135 "dns/address_sorter_posix.h",
136 "dns/dns_client.cc",
137 ]
138 }
139
kapishnikovabe280e2016-04-14 19:07:16140 if (!use_openssl_certs) {
141 sources -= [
142 "base/crypto_module_openssl.cc",
143 "base/keygen_handler_openssl.cc",
144 "base/openssl_private_key_store.h",
145 "base/openssl_private_key_store_memory.cc",
146 "cert/cert_database_openssl.cc",
147 "cert/cert_verify_proc_openssl.cc",
148 "cert/cert_verify_proc_openssl.h",
149 "cert/test_root_certs_openssl.cc",
150 "cert/x509_certificate_openssl.cc",
151 "ssl/openssl_client_key_store.cc",
152 "ssl/openssl_client_key_store.h",
153 ]
154 if (is_android) {
155 sources -= [ "base/openssl_private_key_store_android.cc" ]
156 }
157 } else {
158 if (is_android) {
159 # Android doesn't use these even when using OpenSSL.
160 sources -= [
161 "base/openssl_private_key_store_memory.cc",
162 "cert/cert_database_openssl.cc",
163 "cert/cert_verify_proc_openssl.cc",
164 "cert/test_root_certs_openssl.cc",
165 ]
166 }
167 }
168
169 if (!use_kerberos || is_android) {
170 sources -= [
171 "http/http_auth_gssapi_posix.cc",
172 "http/http_auth_gssapi_posix.h",
173 ]
174 }
175
mostynb75e8d632016-08-02 16:46:53176 if (use_gio) {
dsinclair8490e052016-05-04 15:33:33177 deps += [ "//build/linux/libgio" ]
kapishnikovabe280e2016-04-14 19:07:16178 }
179
180 if (!use_nss_certs) {
181 sources -= [
182 "base/crypto_module_nss.cc",
183 "base/keygen_handler_nss.cc",
184 "cert/cert_database_nss.cc",
mattm9c63d442016-09-03 00:45:51185 "cert/internal/trust_store_nss.cc",
186 "cert/internal/trust_store_nss.h",
kapishnikovabe280e2016-04-14 19:07:16187 "cert/nss_cert_database.cc",
188 "cert/nss_cert_database.h",
189 "cert/x509_certificate_nss.cc",
190 "ssl/client_cert_store_nss.cc",
191 "ssl/client_cert_store_nss.h",
192 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
193 "third_party/mozilla_security_manager/nsKeygenHandler.h",
194 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
195 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
196 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
197 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
198 ]
199 if (is_chromeos) {
200 # These were already removed on non-ChromeOS.
201 sources -= [
202 "cert/nss_cert_database_chromeos.cc",
203 "cert/nss_cert_database_chromeos.h",
204 "cert/nss_profile_filter_chromeos.cc",
205 "cert/nss_profile_filter_chromeos.h",
206 ]
207 }
208 sources -= [
209 "ssl/client_key_store.cc",
210 "ssl/client_key_store.h",
211 "ssl/ssl_platform_key_nss.cc",
212 ]
svaldez2135be52016-04-20 16:34:53213 } else {
davidben8d569f52016-07-29 16:03:18214 sources += [
215 "third_party/nss/ssl/cmpcert.cc",
216 "third_party/nss/ssl/cmpcert.h",
217 ]
kapishnikovabe280e2016-04-14 19:07:16218 }
219
svaldez2135be52016-04-20 16:34:53220 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16221 # These files are part of the partial implementation of NSS for
222 # cert verification, so keep them in that case.
223 sources -= [
224 "cert/cert_verify_proc_nss.cc",
225 "cert/cert_verify_proc_nss.h",
226 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53227 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16228 "cert_net/nss_ocsp.cc",
229 "cert_net/nss_ocsp.h",
230 ]
231 }
232
kapishnikovabe280e2016-04-14 19:07:16233 if (is_chromecast && use_nss_certs) {
234 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
235 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
236 }
237
238 if (!enable_mdns) {
239 sources -= [
240 "dns/mdns_cache.cc",
241 "dns/mdns_cache.h",
242 "dns/mdns_client.cc",
243 "dns/mdns_client.h",
244 "dns/mdns_client_impl.cc",
245 "dns/mdns_client_impl.h",
kapishnikovabe280e2016-04-14 19:07:16246 ]
247 }
248
249 if (is_win) {
250 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
251 } else { # !is_win
252 sources -= [
253 "base/winsock_init.cc",
254 "base/winsock_init.h",
255 "base/winsock_util.cc",
256 "base/winsock_util.h",
257 "proxy/proxy_resolver_winhttp.cc",
258 "proxy/proxy_resolver_winhttp.h",
259 ]
260 }
261
262 if (is_ios) {
263 # Add back some sources that were otherwise filtered out.
264 # iOS needs some Mac files.
265 net_unfiltered_sources += [
266 "base/mac/url_conversions.h",
267 "base/mac/url_conversions.mm",
268 "base/network_change_notifier_mac.cc",
269 "base/network_config_watcher_mac.cc",
270 "base/network_interfaces_mac.cc",
271 "base/network_interfaces_mac.h",
272 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53273 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16274 "proxy/proxy_resolver_mac.cc",
275 "proxy/proxy_server_mac.cc",
276 ]
277
278 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
279 }
280
kapishnikovabe280e2016-04-14 19:07:16281 if (is_ios || is_mac) {
282 sources += gypi_values.net_base_mac_ios_sources
283 }
284
285 if (is_android) {
286 deps += [ ":net_jni_headers" ]
287
288 # Add some Linux sources that were excluded by the filter, but which
289 # are needed.
290 net_unfiltered_sources += [
291 "base/address_tracker_linux.cc",
292 "base/address_tracker_linux.h",
293 "base/network_interfaces_linux.cc",
294 "base/network_interfaces_linux.h",
295 "base/platform_mime_util_linux.cc",
296 ]
297 }
298 } else {
299 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
300 }
xunjieli905496a2015-08-31 15:51:17301
302 # Add back some sources that were otherwise filtered out.
303 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16304 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17305 set_sources_assignment_filter(sources_assignment_filter)
306
307 cflags = []
kapishnikovabe280e2016-04-14 19:07:16308 configs += net_configs
xunjieli905496a2015-08-31 15:51:17309
brettwa1228ebb2016-10-28 03:51:34310 public_deps += [
311 ":features",
312 "//url",
313 ]
[email protected]4625ade2014-04-15 19:26:44314
315 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44316 libs = [
rsesek02aa51c2016-05-11 02:13:57317 "CFNetwork.framework",
318 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19319 "Foundation.framework",
320 "Security.framework",
321 "SystemConfiguration.framework",
322 "resolv",
[email protected]4625ade2014-04-15 19:26:44323 ]
324 }
325
326 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44327 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19328 "CFNetwork.framework",
329 "MobileCoreServices.framework",
330 "Security.framework",
331 "SystemConfiguration.framework",
332 "resolv",
[email protected]4625ade2014-04-15 19:26:44333 ]
xunjieli06d93982015-08-27 17:13:02334 }
xunjieli4c8c6922015-08-27 16:02:40335
jam5332a632016-04-01 22:36:05336 if (is_win) {
337 libs = [
338 "crypt32.lib",
339 "dhcpcsvc.lib",
340 "iphlpapi.lib",
davidben62399192016-09-13 01:54:22341 "ncrypt.lib",
jam5332a632016-04-01 22:36:05342 "rpcrt4.lib",
343 "secur32.lib",
344 "urlmon.lib",
345 "winhttp.lib",
346 ]
347 }
348
sergeyu99d83f92015-09-14 23:03:33349 if (!is_nacl) {
350 if (!disable_file_support) {
351 sources += gypi_values.net_file_support_sources
352 }
xunjieli06d93982015-08-27 17:13:02353
sergeyu99d83f92015-09-14 23:03:33354 if (!disable_ftp_support) {
355 sources += gypi_values.net_ftp_support_sources
356 }
xunjieli905496a2015-08-31 15:51:17357
sergeyu99d83f92015-09-14 23:03:33358 if (enable_websockets) {
359 sources += gypi_values.net_websockets_sources
360 }
xunjieli905496a2015-08-31 15:51:17361
sergeyu99d83f92015-09-14 23:03:33362 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16363 if (use_platform_icu_alternatives) {
364 if (is_android) {
365 # Use ICU alternative on Android.
torned8b7d9252016-08-04 19:41:45366 sources += [ "base/net_string_util_icu_alternatives_android.cc" ]
kapishnikovabe280e2016-04-14 19:07:16367 deps += [ ":net_jni_headers" ]
368 } else if (is_ios) {
369 # Use ICU alternative on iOS.
370 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
371 } else {
372 assert(false,
373 "ICU alternative is not implemented for platform: " + target_os)
374 }
375 } else {
376 # Use ICU.
377 deps += [
378 "//base:i18n",
379 "//third_party/icu",
380 ]
381 sources += [
382 "base/filename_util_icu.cc",
383 "base/net_string_util_icu.cc",
384 ]
385 }
eustasfbec9132015-12-30 14:56:51386
387 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16388 if (!disable_brotli_filter) {
389 sources += [ "filter/brotli_filter.cc" ]
xunjieli084a9292016-09-23 18:15:04390 sources += [ "filter/brotli_source_stream.cc" ]
kapishnikovabe280e2016-04-14 19:07:16391 deps += [ "//third_party/brotli" ]
392 } else {
393 sources += [ "filter/brotli_filter_disabled.cc" ]
xunjieli084a9292016-09-23 18:15:04394 sources += [ "filter/brotli_source_stream_disabled.cc" ]
kapishnikovabe280e2016-04-14 19:07:16395 }
[email protected]85191ed2014-05-15 00:41:49396 }
[email protected]4625ade2014-04-15 19:26:44397}
398
399grit("net_resources") {
400 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01401 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32402 outputs = [
403 "grit/net_resources.h",
404 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32405 ]
[email protected]4625ade2014-04-15 19:26:44406}
407
rtennetib6f1c0d2015-04-03 17:52:06408proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16409 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17410
rtennetib6f1c0d2015-04-03 17:52:06411 sources = [
rchd4db7c152016-07-29 21:58:12412 "quic/core/proto/cached_network_parameters.proto",
413 "quic/core/proto/source_address_token.proto",
rtennetib6f1c0d2015-04-03 17:52:06414 ]
415 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
416 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18417 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06418
419 defines = [ "NET_IMPLEMENTATION" ]
420
421 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
422}
423
Brett Wilson83fd4242014-09-02 19:45:33424static_library("extras") {
mef327a8e42014-08-29 17:10:03425 sources = gypi_values.net_extras_sources
426 configs += [ "//build/config/compiler:wexit_time_destructors" ]
427 deps = [
428 ":net",
brettwbc44c0a92015-02-20 22:30:39429 "//base",
mef327a8e42014-08-29 17:10:03430 "//sql:sql",
431 ]
432}
433
[email protected]8a3f8242014-06-05 18:05:12434static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44435 sources = [
436 "server/http_connection.cc",
437 "server/http_connection.h",
438 "server/http_server.cc",
439 "server/http_server.h",
440 "server/http_server_request_info.cc",
441 "server/http_server_request_info.h",
442 "server/http_server_response_info.cc",
443 "server/http_server_response_info.h",
444 "server/web_socket.cc",
445 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21446 "server/web_socket_encoder.cc",
447 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44448 ]
jambc6cc8e2014-11-14 17:56:29449 configs += [
brettwd1c719a2015-02-19 23:17:04450 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29451 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29452 ]
[email protected]4625ade2014-04-15 19:26:44453 deps = [
454 ":net",
455 "//base",
456 ]
457}
458
sdefresne3001f172016-03-16 10:30:03459if (!is_ios) {
460 executable("dump_cache") {
461 testonly = true
462 sources = [
463 "tools/dump_cache/dump_cache.cc",
464 "tools/dump_cache/dump_files.cc",
465 "tools/dump_cache/dump_files.h",
466 ]
[email protected]4625ade2014-04-15 19:26:44467
sdefresne3001f172016-03-16 10:30:03468 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
469 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31470
sdefresne3001f172016-03-16 10:30:03471 deps = [
472 ":net",
473 ":test_support",
474 "//base",
475 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07476 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03477 ]
478 }
[email protected]8603c5de2014-04-16 20:34:31479}
480
sdefresneb0a31642016-03-18 11:04:45481bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59482 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45483 testonly = true
sdefresne04f91142016-04-21 08:41:59484 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45485 outputs = [
486 "{{bundle_resources_dir}}/" +
487 "{{source_root_relative_dir}}/{{source_file_part}}",
488 ]
489}
490
brettw3871f522016-07-14 22:08:34491static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24492 testonly = true
[email protected]8603c5de2014-04-16 20:34:31493 sources = [
[email protected]8603c5de2014-04-16 20:34:31494 "base/load_timing_info_test_util.cc",
495 "base/load_timing_info_test_util.h",
496 "base/mock_file_stream.cc",
497 "base/mock_file_stream.h",
498 "base/test_completion_callback.cc",
499 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31500 "cert/mock_cert_verifier.cc",
501 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12502 "cert/mock_client_cert_verifier.cc",
503 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31504 "cookies/cookie_monster_store_test.cc",
505 "cookies/cookie_monster_store_test.h",
506 "cookies/cookie_store_test_callbacks.cc",
507 "cookies/cookie_store_test_callbacks.h",
508 "cookies/cookie_store_test_helpers.cc",
509 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56510 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31511 "disk_cache/disk_cache_test_base.cc",
512 "disk_cache/disk_cache_test_base.h",
513 "disk_cache/disk_cache_test_util.cc",
514 "disk_cache/disk_cache_test_util.h",
515 "dns/dns_test_util.cc",
516 "dns/dns_test_util.h",
517 "dns/mock_host_resolver.cc",
518 "dns/mock_host_resolver.h",
519 "dns/mock_mdns_socket_factory.cc",
520 "dns/mock_mdns_socket_factory.h",
zhongyi3c412982016-06-18 00:34:30521 "http/http_stream_factory_test_util.cc",
522 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12523 "http/http_transaction_test_util.cc",
524 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51525 "log/test_net_log.cc",
526 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46527 "log/test_net_log_entry.cc",
528 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59529 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46530 "log/test_net_log_util.h",
tbansal785a6ab2016-10-10 20:19:28531 "nqe/network_quality_estimator_test_util.cc",
532 "nqe/network_quality_estimator_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31533 "proxy/mock_proxy_resolver.cc",
534 "proxy/mock_proxy_resolver.h",
535 "proxy/mock_proxy_script_fetcher.cc",
536 "proxy/mock_proxy_script_fetcher.h",
537 "proxy/proxy_config_service_common_unittest.cc",
538 "proxy/proxy_config_service_common_unittest.h",
539 "socket/socket_test_util.cc",
540 "socket/socket_test_util.h",
541 "test/cert_test_util.cc",
542 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07543 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23544 "test/channel_id_test_util.cc",
545 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31546 "test/ct_test_util.cc",
547 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45548 "test/embedded_test_server/default_handlers.cc",
549 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31550 "test/embedded_test_server/embedded_test_server.cc",
551 "test/embedded_test_server/embedded_test_server.h",
552 "test/embedded_test_server/http_connection.cc",
553 "test/embedded_test_server/http_connection.h",
554 "test/embedded_test_server/http_request.cc",
555 "test/embedded_test_server/http_request.h",
556 "test/embedded_test_server/http_response.cc",
557 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53558 "test/embedded_test_server/request_handler_util.cc",
559 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28560 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24561 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31562 "test/net_test_suite.cc",
563 "test/net_test_suite.h",
564 "test/python_utils.cc",
565 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24566 "test/scoped_disable_exit_on_dfatal.cc",
567 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36568 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43569 "test/test_data_directory.cc",
570 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43571 "test/url_request/ssl_certificate_error_job.cc",
572 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30573 "test/url_request/url_request_failed_job.cc",
574 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34575 "test/url_request/url_request_hanging_read_job.cc",
576 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40577 "test/url_request/url_request_mock_data_job.cc",
578 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44579 "test/url_request/url_request_slow_download_job.cc",
580 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31581 "url_request/test_url_fetcher_factory.cc",
582 "url_request/test_url_fetcher_factory.h",
583 "url_request/url_request_test_util.cc",
584 "url_request/url_request_test_util.h",
585 ]
sherouk3eee4a82015-09-01 10:42:33586 if (!is_ios) {
587 sources += [
588 "test/spawned_test_server/base_test_server.cc",
589 "test/spawned_test_server/base_test_server.h",
590 "test/spawned_test_server/local_test_server.cc",
591 "test/spawned_test_server/local_test_server.h",
592 "test/spawned_test_server/local_test_server_posix.cc",
593 "test/spawned_test_server/local_test_server_win.cc",
594 "test/spawned_test_server/spawned_test_server.h",
595 ]
596 }
[email protected]8603c5de2014-04-16 20:34:31597
brettwbc8b2a22015-07-28 18:24:42598 configs += [
599 "//build/config:precompiled_headers",
600
601 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
602 "//build/config/compiler:no_size_t_to_int_warning",
603 ]
[email protected]8603c5de2014-04-16 20:34:31604
Brett Wilsone53895272014-09-23 23:41:46605 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31606 "//base",
607 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12608 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23609 "//net",
[email protected]8603c5de2014-04-16 20:34:31610 "//net/tools/tld_cleanup",
611 "//testing/gmock",
612 "//testing/gtest",
613 "//url",
614 ]
615
rsesek7d4ab4bc2016-07-22 17:35:13616 deps = []
sdefresne04f91142016-04-21 08:41:59617
jbudorick944eb922016-06-20 15:38:30618 data = [
619 "data/",
620 ]
621
rsesek7d4ab4bc2016-07-22 17:35:13622 if (is_ios) {
623 deps += [ ":test_support_bundle_data" ]
624 } else {
jamb533b7e2015-03-04 17:12:05625 public_deps += [ "//third_party/protobuf:py_proto" ]
626 }
627
svaldez2135be52016-04-20 16:34:53628 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24629 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31630 }
631
sherouk3eee4a82015-09-01 10:42:33632 if (is_android) {
633 sources += [
[email protected]8603c5de2014-04-16 20:34:31634 "test/spawned_test_server/remote_test_server.cc",
635 "test/spawned_test_server/remote_test_server.h",
636 "test/spawned_test_server/spawner_communicator.cc",
637 "test/spawned_test_server/spawner_communicator.h",
638 ]
639 }
640
641 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46642 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31643 }
644
645 if (!enable_mdns) {
646 sources -= [
647 "dns/mock_mdns_socket_factory.cc",
648 "dns/mock_mdns_socket_factory.h",
649 ]
650 }
651
davidben15d69d482014-09-29 18:24:08652 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24653 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07654 }
xunjielia6888202015-04-14 21:34:25655
656 if (!disable_file_support) {
657 sources += [
658 "test/url_request/url_request_mock_http_job.cc",
659 "test/url_request/url_request_mock_http_job.h",
660 "url_request/test_url_request_interceptor.cc",
661 "url_request/test_url_request_interceptor.h",
662 ]
663 }
[email protected]8603c5de2014-04-16 20:34:31664}
665
[email protected]ceeaac792014-06-25 05:14:43666source_set("balsa") {
667 sources = [
668 "tools/balsa/balsa_enums.h",
669 "tools/balsa/balsa_frame.cc",
670 "tools/balsa/balsa_frame.h",
671 "tools/balsa/balsa_headers.cc",
672 "tools/balsa/balsa_headers.h",
673 "tools/balsa/balsa_headers_token_utils.cc",
674 "tools/balsa/balsa_headers_token_utils.h",
675 "tools/balsa/balsa_visitor_interface.h",
676 "tools/balsa/http_message_constants.cc",
677 "tools/balsa/http_message_constants.h",
678 "tools/balsa/noop_balsa_visitor.h",
679 "tools/balsa/simple_buffer.cc",
680 "tools/balsa/simple_buffer.h",
[email protected]ceeaac792014-06-25 05:14:43681 "tools/balsa/string_piece_utils.h",
rtennetie0ee6eb2015-05-01 00:55:09682 "tools/quic/spdy_balsa_utils.cc",
683 "tools/quic/spdy_balsa_utils.h",
[email protected]ceeaac792014-06-25 05:14:43684 ]
685 deps = [
686 ":net",
687 "//base",
[email protected]22fe91d2014-08-12 17:07:12688 "//url",
[email protected]ceeaac792014-06-25 05:14:43689 ]
690}
691
[email protected]8603c5de2014-04-16 20:34:31692if (use_v8_in_net) {
693 component("net_with_v8") {
694 sources = [
695 "proxy/proxy_resolver_v8.cc",
696 "proxy/proxy_resolver_v8.h",
697 "proxy/proxy_resolver_v8_tracing.cc",
698 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47699 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
700 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31701 "proxy/proxy_service_v8.cc",
702 "proxy/proxy_service_v8.h",
703 ]
704
705 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11706
[email protected]8603c5de2014-04-16 20:34:31707 configs += [
brettwd1c719a2015-02-19 23:17:04708 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31709 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11710 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31711 ]
712
Brett Wilsone53895272014-09-23 23:41:46713 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31714 ":net",
Brett Wilsone53895272014-09-23 23:41:46715 ]
716 deps = [
[email protected]8603c5de2014-04-16 20:34:31717 "//base",
718 "//gin",
719 "//url",
720 "//v8",
721 ]
722 }
723}
724
amistry7e6ebfdc82015-02-13 04:19:11725if (use_v8_in_net && !is_android) {
726 source_set("net_browser_services") {
727 sources = [
728 "dns/mojo_host_resolver_impl.cc",
729 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01730 "proxy/in_process_mojo_proxy_resolver_factory.cc",
731 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17732 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35733 "proxy/proxy_resolver_factory_mojo.cc",
734 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01735 "proxy/proxy_service_mojo.cc",
736 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11737 ]
738
739 public_deps = [
tfarina8ac4d17f2015-12-16 02:11:11740 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39741 "//base",
rockot85dce0862015-11-13 01:33:59742 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11743 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01744
745 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
746 # this dependency since in_process_mojo_proxy_resolver_factory creates
747 # the utility process side Mojo services in the browser process.
748 # Ultimately, this will go away when we only support out-of-process.
749 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11750 ]
751 }
752
sammc5403aa1d2015-02-25 04:59:21753 source_set("net_utility_services") {
754 sources = [
sammc6ac3fe52015-02-25 06:00:28755 "dns/host_resolver_mojo.cc",
756 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24757 "proxy/mojo_proxy_resolver_factory_impl.cc",
758 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21759 "proxy/mojo_proxy_resolver_impl.cc",
760 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51761 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21762 ]
763
rockot9509ec82015-04-14 02:50:56764 deps = [
765 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11766 "//base",
rockot9509ec82015-04-14 02:50:56767 ]
768
sammc5403aa1d2015-02-25 04:59:21769 public_deps = [
sammc5403aa1d2015-02-25 04:59:21770 ":net",
rockot85dce0862015-11-13 01:33:59771 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21772 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21773 ]
774 }
amistry7e6ebfdc82015-02-13 04:19:11775}
776
[email protected]8603c5de2014-04-16 20:34:31777if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40778 executable("cert_verify_tool") {
779 testonly = true
780 sources = [
781 "tools/cert_verify_tool/cert_verify_tool.cc",
782 "tools/cert_verify_tool/cert_verify_tool_util.cc",
783 "tools/cert_verify_tool/cert_verify_tool_util.h",
784 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
785 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42786 "tools/cert_verify_tool/verify_using_path_builder.cc",
787 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40788 ]
789
790 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
791 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
792 deps = [
793 ":net",
794 ":test_support",
795 "//base",
796 "//build/config/sanitizers:deps",
797 "//build/win:default_exe_manifest",
798 ]
799 }
800
[email protected]8603c5de2014-04-16 20:34:31801 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24802 testonly = true
scottmg34fb7e52014-12-03 23:27:24803 sources = [
804 "tools/crash_cache/crash_cache.cc",
805 ]
dpranke43276212015-02-20 02:55:19806
brettwd1c719a2015-02-19 23:17:04807 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
808 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31809 deps = [
810 ":net",
[email protected]b2b2bf52014-05-28 20:26:57811 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31812 "//base",
brettwba7a73d2015-08-31 22:17:39813 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07814 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31815 ]
816 }
817
818 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24819 testonly = true
scottmg34fb7e52014-12-03 23:27:24820 sources = [
821 "tools/crl_set_dump/crl_set_dump.cc",
822 ]
dpranke43276212015-02-20 02:55:19823
brettwd1c719a2015-02-19 23:17:04824 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
825 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31826 deps = [
827 ":net",
828 "//base",
brettwba7a73d2015-08-31 22:17:39829 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07830 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31831 ]
832 }
833
834 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24835 testonly = true
scottmg34fb7e52014-12-03 23:27:24836 sources = [
837 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
838 ]
dpranke43276212015-02-20 02:55:19839
brettwd1c719a2015-02-19 23:17:04840 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
841 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31842 deps = [
843 ":net",
844 "//base",
brettwba7a73d2015-08-31 22:17:39845 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07846 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31847 ]
848 }
849
850 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24851 testonly = true
[email protected]8603c5de2014-04-16 20:34:31852 sources = [
853 "tools/gdig/file_net_log.cc",
854 "tools/gdig/gdig.cc",
855 ]
856 deps = [
857 ":net",
858 "//base",
brettwba7a73d2015-08-31 22:17:39859 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07860 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31861 ]
862 }
863
864 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24865 testonly = true
scottmg34fb7e52014-12-03 23:27:24866 sources = [
867 "tools/get_server_time/get_server_time.cc",
868 ]
dpranke43276212015-02-20 02:55:19869
brettwd1c719a2015-02-19 23:17:04870 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
871 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31872 deps = [
873 ":net",
874 "//base",
875 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39876 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07877 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31878 "//url",
879 ]
880 }
881
rockot9c67e5f2015-03-12 20:01:21882 executable("hpack_example_generator") {
883 testonly = true
884 sources = [
885 "spdy/fuzzing/hpack_example_generator.cc",
886 ]
887
888 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
889 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
890 deps = [
rockot9c67e5f2015-03-12 20:01:21891 ":net",
brettwba7a73d2015-08-31 22:17:39892 "//base",
893 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07894 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21895 ]
896 }
897
898 executable("hpack_fuzz_mutator") {
899 testonly = true
900 sources = [
901 "spdy/fuzzing/hpack_fuzz_mutator.cc",
902 ]
903
904 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
905 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
906 deps = [
rockot9c67e5f2015-03-12 20:01:21907 ":net",
brettwba7a73d2015-08-31 22:17:39908 "//base",
909 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07910 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21911 ]
912 }
913
914 executable("hpack_fuzz_wrapper") {
915 testonly = true
916 sources = [
917 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
918 ]
919
920 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
921 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
922 deps = [
rockot9c67e5f2015-03-12 20:01:21923 ":net",
brettwba7a73d2015-08-31 22:17:39924 "//base",
925 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07926 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21927 ]
928 }
929
[email protected]8603c5de2014-04-16 20:34:31930 if (use_v8_in_net) {
931 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24932 testonly = true
scottmg34fb7e52014-12-03 23:27:24933 sources = [
934 "tools/net_watcher/net_watcher.cc",
935 ]
[email protected]8603c5de2014-04-16 20:34:31936 deps = [
937 ":net",
938 ":net_with_v8",
939 "//base",
brettwba7a73d2015-08-31 22:17:39940 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07941 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31942 ]
[email protected]8603c5de2014-04-16 20:34:31943 }
944 }
945
946 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24947 testonly = true
scottmg34fb7e52014-12-03 23:27:24948 sources = [
949 "tools/testserver/run_testserver.cc",
950 ]
[email protected]8603c5de2014-04-16 20:34:31951 deps = [
[email protected]b2b2bf52014-05-28 20:26:57952 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31953 "//base",
954 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39955 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07956 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31957 "//testing/gtest",
958 ]
959 }
960
961 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24962 testonly = true
scottmg34fb7e52014-12-03 23:27:24963 sources = [
rvargase23fcf652015-03-04 19:59:22964 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:24965 ]
dpranke43276212015-02-20 02:55:19966
brettwd1c719a2015-02-19 23:17:04967 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
968 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31969 deps = [
970 ":net",
[email protected]b2b2bf52014-05-28 20:26:57971 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31972 "//base",
brettwba7a73d2015-08-31 22:17:39973 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07974 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31975 ]
976 }
977
978 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:24979 sources = [
980 "tools/tld_cleanup/tld_cleanup.cc",
981 ]
dpranke43276212015-02-20 02:55:19982
brettwd1c719a2015-02-19 23:17:04983 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
984 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31985 deps = [
986 "//base",
987 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39988 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07989 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31990 "//net/tools/tld_cleanup",
991 ]
992 }
993}
994
gabadie0774bee2016-05-12 14:02:58995if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:42996 executable("cachetool") {
997 testonly = true
998 sources = [
999 "tools/cachetool/cachetool.cc",
1000 ]
1001 deps = [
1002 ":net",
1003 ":test_support",
1004 "//base",
1005 ]
1006 }
1007
1008 executable("content_decoder_tool") {
1009 testonly = true
1010 sources = [
xunjielidf4f3712016-10-28 23:52:261011 "filter/mock_filter_context.cc",
1012 "filter/mock_filter_context.h",
gabadie64af64a2016-03-29 16:36:421013 "tools/content_decoder_tool/content_decoder_tool.cc",
1014 ]
1015 deps = [
1016 ":net",
1017 ":test_support",
1018 "//base",
1019 "//url",
1020 ]
1021 }
gabadie0774bee2016-05-12 14:02:581022}
gabadie64af64a2016-03-29 16:36:421023
gabadie0774bee2016-05-12 14:02:581024if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121025 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311026 sources = [
1027 "tools/epoll_server/epoll_server.cc",
1028 "tools/epoll_server/epoll_server.h",
1029 ]
1030 deps = [
1031 ":net",
1032 "//base",
1033 ]
1034 }
1035
rch216445c2015-03-27 00:23:281036 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311037 sources = [
1038 "tools/quic/quic_client.cc",
1039 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311040 "tools/quic/quic_default_packet_writer.cc",
1041 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071042 "tools/quic/quic_epoll_alarm_factory.cc",
1043 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311044 "tools/quic/quic_epoll_clock.cc",
1045 "tools/quic/quic_epoll_clock.h",
1046 "tools/quic/quic_epoll_connection_helper.cc",
1047 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551048 "tools/quic/quic_packet_reader.cc",
1049 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311050 "tools/quic/quic_packet_writer_wrapper.cc",
1051 "tools/quic/quic_packet_writer_wrapper.h",
1052 "tools/quic/quic_server.cc",
1053 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311054 "tools/quic/quic_socket_utils.cc",
1055 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311056 ]
1057 deps = [
1058 ":balsa",
1059 ":epoll_server",
1060 ":net",
tfarina8ac4d17f2015-12-16 02:11:111061 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311062 "//base",
1063 "//base/third_party/dynamic_annotations",
1064 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371065 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311066 "//url",
1067 ]
1068 }
1069
rch216445c2015-03-27 00:23:281070 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241071 sources = [
1072 "tools/quic/quic_client_bin.cc",
1073 ]
[email protected]8603c5de2014-04-16 20:34:311074 deps = [
brettwbc44c0a92015-02-20 22:30:391075 ":balsa",
rch216445c2015-03-27 00:23:281076 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281077 ":epoll_server",
rch216445c2015-03-27 00:23:281078 ":net",
1079 ":simple_quic_tools",
1080 "//base",
brettwba7a73d2015-08-31 22:17:391081 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281082 "//third_party/boringssl",
1083 ]
1084 }
1085
1086 executable("epoll_quic_server") {
1087 sources = [
1088 "tools/quic/quic_server_bin.cc",
1089 ]
1090 deps = [
1091 ":balsa",
rch216445c2015-03-27 00:23:281092 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281093 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311094 ":net",
rchda78df5a2015-03-22 05:16:371095 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311096 "//base",
brettwba7a73d2015-08-31 22:17:391097 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371098 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311099 ]
1100 }
[email protected]8603c5de2014-04-16 20:34:311101}
1102
[email protected]ef0eb442014-05-15 09:32:181103if (is_android) {
1104 generate_jni("net_jni_headers") {
1105 sources = [
tbansalc04b7aa2016-07-02 06:54:371106 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181107 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1108 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1109 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011110 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181111 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531112 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171113 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181114 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1115 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1116 "android/java/src/org/chromium/net/X509Util.java",
1117 ]
1118 jni_package = "net"
1119 }
cjhopmandad5f4272014-09-05 01:00:551120 generate_jni("net_test_jni_headers") {
1121 sources = [
1122 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531123 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351124 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551125 ]
brettwcdccaf02015-07-27 16:27:091126 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551127 }
[email protected]ef0eb442014-05-15 09:32:181128}
[email protected]8603c5de2014-04-16 20:34:311129
1130if (is_android || is_linux) {
1131 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241132 testonly = true
scottmg34fb7e52014-12-03 23:27:241133 sources = [
1134 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1135 ]
[email protected]8603c5de2014-04-16 20:34:311136 deps = [
1137 ":net",
1138 "//base",
brettwba7a73d2015-08-31 22:17:391139 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311140 ]
1141 }
1142}
[email protected]8a3f8242014-06-05 18:05:121143
rch47ad01f2015-03-20 21:17:231144source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491145 sources = [
ckrasica7fd1242016-05-14 20:36:011146 "tools/quic/chlo_extractor.cc",
1147 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311148 "tools/quic/quic_client_base.cc",
1149 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051150 "tools/quic/quic_client_session.cc",
1151 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561152 "tools/quic/quic_dispatcher.cc",
1153 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211154 "tools/quic/quic_in_memory_cache.cc",
1155 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561156 "tools/quic/quic_per_connection_packet_writer.cc",
1157 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581158 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491159 "tools/quic/quic_simple_client.cc",
1160 "tools/quic/quic_simple_client.h",
ianswett6c7b7ed2016-09-13 19:35:271161 "tools/quic/quic_simple_crypto_server_stream_helper.cc",
1162 "tools/quic/quic_simple_crypto_server_stream_helper.h",
alyssara473d6f2016-08-04 16:54:041163 "tools/quic/quic_simple_dispatcher.cc",
1164 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281165 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1166 "tools/quic/quic_simple_per_connection_packet_writer.h",
1167 "tools/quic/quic_simple_server.cc",
1168 "tools/quic/quic_simple_server.h",
1169 "tools/quic/quic_simple_server_packet_writer.cc",
1170 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391171 "tools/quic/quic_simple_server_session.cc",
1172 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311173 "tools/quic/quic_simple_server_session_helper.cc",
1174 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401175 "tools/quic/quic_simple_server_stream.cc",
1176 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051177 "tools/quic/quic_spdy_client_stream.cc",
1178 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211179 "tools/quic/quic_time_wait_list_manager.cc",
1180 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371181 "tools/quic/stateless_rejector.cc",
1182 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371183 "tools/quic/synchronous_host_resolver.cc",
1184 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491185 ]
1186 deps = [
tfarina8ac4d17f2015-12-16 02:11:111187 ":balsa",
rcha9d12ce12015-03-19 23:06:491188 ":net",
1189 "//base",
rch47ad01f2015-03-20 21:17:231190 "//base/third_party/dynamic_annotations",
1191 "//url",
1192 ]
1193}
1194
sherouk51b4b098b2015-08-10 09:00:431195if (!is_ios) {
1196 executable("quic_client") {
1197 sources = [
1198 "tools/quic/quic_simple_client_bin.cc",
1199 ]
1200 deps = [
1201 ":net",
1202 ":simple_quic_tools",
1203 "//base",
brettwba7a73d2015-08-31 22:17:391204 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071205 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431206 "//url",
1207 ]
1208 }
1209 executable("quic_server") {
1210 sources = [
1211 "tools/quic/quic_simple_server_bin.cc",
1212 ]
1213 deps = [
1214 ":net",
1215 ":simple_quic_tools",
1216 "//base",
brettwba7a73d2015-08-31 22:17:391217 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071218 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431219 "//third_party/boringssl",
1220 "//third_party/protobuf:protobuf_lite",
1221 ]
1222 }
rchf80f62d12016-05-11 00:47:311223 executable("quic_packet_printer") {
1224 sources = [
1225 "tools/quic/quic_packet_printer_bin.cc",
1226 ]
1227 deps = [
1228 ":net",
1229 ":simple_quic_tools",
1230 "//base",
1231 "//build/config/sanitizers:deps",
1232 "//build/win:default_exe_manifest",
1233 "//third_party/boringssl",
1234 "//third_party/protobuf:protobuf_lite",
1235 ]
1236 }
mpwbbea85d2016-08-27 14:39:211237 executable("quic_reject_reason_decoder") {
1238 sources = [
1239 "tools/quic/quic_reject_reason_decoder_bin.cc",
1240 ]
1241 deps = [
1242 ":net",
1243 ":simple_quic_tools",
1244 "//base",
1245 "//build/config/sanitizers:deps",
1246 "//build/win:default_exe_manifest",
1247 "//third_party/boringssl",
1248 "//third_party/protobuf:protobuf_lite",
1249 ]
1250 }
danzh1401f0a2016-05-19 13:41:101251 executable("crypto_message_printer") {
1252 sources = [
1253 "tools/quic/crypto_message_printer_bin.cc",
1254 ]
1255 deps = [
1256 ":net",
1257 "//base",
1258 "//build/config/sanitizers:deps",
1259 "//build/win:default_exe_manifest",
1260 ]
1261 }
rch216445c2015-03-27 00:23:281262}
1263
sdefresneb0a31642016-03-18 11:04:451264bundle_data("net_unittests_bundle_data") {
1265 testonly = true
sdefresne04f91142016-04-21 08:41:591266 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451267 outputs = [
1268 "{{bundle_resources_dir}}/" +
1269 "{{source_root_relative_dir}}/{{source_file_part}}",
1270 ]
1271}
1272
dpranke64df2832015-07-31 22:33:361273test("net_unittests") {
1274 sources = gypi_values.net_test_sources
1275
1276 configs += [
1277 "//build/config:precompiled_headers",
1278
1279 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1280 "//build/config/compiler:no_size_t_to_int_warning",
1281 ]
1282 defines = []
1283
1284 deps = [
1285 ":balsa",
1286 ":extras",
dpranke64df2832015-07-31 22:33:361287 ":net",
1288 ":simple_quic_tools",
1289 ":test_support",
1290 "//base",
1291 "//base:i18n",
dpranke64df2832015-07-31 22:33:361292 "//base/third_party/dynamic_annotations",
1293 "//crypto",
1294 "//crypto:platform",
1295 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361296 "//net/base/registry_controlled_domains",
1297 "//sql",
1298 "//testing/gmock",
1299 "//testing/gtest",
1300 "//third_party/zlib",
1301 "//url",
kapishnikovabe280e2016-04-14 19:07:161302 "//url:url_features",
dpranke64df2832015-07-31 22:33:361303 ]
1304
jbudorick944eb922016-06-20 15:38:301305 data = []
svaldez2135be52016-04-20 16:34:531306 data_deps = [
1307 "third_party/nist-pkits/",
1308 ]
dpranke64df2832015-07-31 22:33:361309
1310 if (is_linux || is_mac || is_win) {
1311 deps += [
1312 "//third_party/pyftpdlib/",
1313 "//third_party/pywebsocket/",
1314 "//third_party/tlslite/",
1315 ]
mattm6586b432016-02-12 04:52:391316 data_deps += [
dpranke64df2832015-07-31 22:33:361317 "//third_party/pyftpdlib/",
1318 "//third_party/pywebsocket/",
1319 "//third_party/tlslite/",
1320 ]
1321 data += [
1322 "tools/testserver/",
1323 "//third_party/pyftpdlib/",
1324 "//third_party/pywebsocket/",
1325 "//third_party/tlslite/",
1326 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231327 ]
1328 }
1329
dpranke64df2832015-07-31 22:33:361330 if (is_desktop_linux) {
1331 deps += [ ":epoll_quic_tools" ]
1332 }
1333 if (is_linux) {
1334 sources += gypi_values.net_linux_test_sources
1335 deps += [
1336 ":epoll_quic_tools",
1337 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421338 ]
dpranke64df2832015-07-31 22:33:361339 }
[email protected]8a3f8242014-06-05 18:05:121340
dpranke64df2832015-07-31 22:33:361341 if (is_mac || is_ios) {
1342 sources += gypi_values.net_base_test_mac_ios_sources
1343 }
1344
mattmaf868e72016-09-23 23:25:201345 if (is_mac) {
1346 libs = [ "Security.framework" ]
1347 }
1348
dpranke64df2832015-07-31 22:33:361349 if (is_chromeos) {
1350 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1351 }
1352
1353 if (v8_use_external_startup_data) {
1354 deps += [ "//gin" ]
1355 }
1356
1357 if (!use_nss_certs) {
1358 sources -= [
mattm9c63d442016-09-03 00:45:511359 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361360 "cert/nss_cert_database_unittest.cc",
1361 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121362 ]
dpranke64df2832015-07-31 22:33:361363 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411364 sources -= [
dpranke64df2832015-07-31 22:33:361365 "cert/nss_cert_database_chromeos_unittest.cc",
1366 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411367 ]
brettw43ae0e12015-07-14 22:12:361368 }
[email protected]8a3f8242014-06-05 18:05:121369 }
dpranke64df2832015-07-31 22:33:361370
dpranke64df2832015-07-31 22:33:361371 if (use_kerberos) {
1372 defines += [ "USE_KERBEROS" ]
1373 }
1374
1375 # These are excluded on Android, because the actual Kerberos support, which
1376 # these test, is in a separate app on Android.
1377 if (!use_kerberos || is_android) {
1378 sources -= [
1379 "http/http_auth_gssapi_posix_unittest.cc",
1380 "http/mock_gssapi_library_posix.cc",
1381 "http/mock_gssapi_library_posix.h",
1382 ]
1383 }
1384 if (!use_kerberos) {
1385 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1386 }
1387
svaldez2135be52016-04-20 16:34:531388 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531389 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361390 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1391 }
1392
1393 if (!use_openssl_certs) {
1394 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1395 }
1396
jbudorick1273a842016-04-01 19:50:051397 if (enable_websockets) {
1398 sources += gypi_values.net_websockets_test_sources
1399 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361400 }
1401
1402 if (disable_file_support) {
1403 sources -= [
1404 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161405 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041406 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361407 "url_request/url_request_file_job_unittest.cc",
1408 ]
1409 }
1410
1411 if (disable_ftp_support) {
1412 sources -= [
1413 "ftp/ftp_auth_cache_unittest.cc",
1414 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1415 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361416 "ftp/ftp_directory_listing_parser_unittest.cc",
1417 "ftp/ftp_directory_listing_parser_unittest.h",
1418 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1419 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1420 "ftp/ftp_network_transaction_unittest.cc",
1421 "ftp/ftp_util_unittest.cc",
1422 "url_request/url_request_ftp_job_unittest.cc",
1423 ]
1424 }
1425
1426 if (!enable_built_in_dns) {
1427 sources -= [
1428 "dns/address_sorter_posix_unittest.cc",
1429 "dns/address_sorter_unittest.cc",
1430 ]
1431 }
1432
xunjieli905496a2015-08-31 15:51:171433 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361434 deps += [ ":net_with_v8" ]
1435 } else {
1436 sources -= [
1437 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1438 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1439 "proxy/proxy_resolver_v8_unittest.cc",
1440 ]
1441 }
1442
1443 if (use_v8_in_net && !is_android) {
1444 deps += [
1445 ":net_browser_services",
1446 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081447 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361448 ]
1449 } else {
1450 sources -= [
1451 "dns/host_resolver_mojo_unittest.cc",
1452 "dns/mojo_host_resolver_impl_unittest.cc",
1453 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1454 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1455 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1456 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1457 "proxy/proxy_service_mojo_unittest.cc",
1458 ]
1459 }
1460
1461 if (!enable_mdns) {
1462 sources -= [
1463 "dns/mdns_cache_unittest.cc",
1464 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361465 ]
1466 }
1467
1468 if (is_ios) {
dpranke64df2832015-07-31 22:33:361469 sources -= [
1470 # TODO(droger): The following tests are disabled because the
1471 # implementation is missing or incomplete.
1472 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1473 "base/keygen_handler_unittest.cc",
1474 "disk_cache/backend_unittest.cc",
1475 "disk_cache/blockfile/block_files_unittest.cc",
1476
1477 # Need to read input data files.
1478 "filter/gzip_filter_unittest.cc",
1479 "socket/ssl_server_socket_unittest.cc",
1480 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1481
1482 # Need TestServer.
1483 "cert_net/cert_net_fetcher_impl_unittest.cc",
1484 "proxy/proxy_script_fetcher_impl_unittest.cc",
1485 "socket/ssl_client_socket_unittest.cc",
1486 "url_request/url_fetcher_impl_unittest.cc",
1487 "url_request/url_request_context_builder_unittest.cc",
1488
1489 # Needs GetAppOutput().
1490 "test/python_utils_unittest.cc",
1491
1492 # The following tests are disabled because they don't apply to
1493 # iOS.
1494 # OS is not "linux" or "freebsd" or "openbsd".
1495 "socket/unix_domain_client_socket_posix_unittest.cc",
1496 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361497 ]
rsesek7d4ab4bc2016-07-22 17:35:131498
1499 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361500 }
1501
kapishnikovabe280e2016-04-14 19:07:161502 # Unit tests that aren't supported by the current ICU alternatives on Android.
1503 if (is_android && use_platform_icu_alternatives) {
1504 sources -= [
1505 "base/filename_util_unittest.cc",
1506 "base/url_util_unittest.cc",
1507 "cert/x509_certificate_unittest.cc",
1508 "proxy/proxy_resolver_v8_unittest.cc",
1509 "url_request/url_request_job_unittest.cc",
1510 ]
1511 }
1512
1513 # Unit tests that are not supported by the current ICU alternatives on iOS.
1514 if (is_ios && use_platform_icu_alternatives) {
1515 sources -= [
1516 "base/filename_util_unittest.cc",
1517 "base/url_util_unittest.cc",
1518 "cert/x509_certificate_unittest.cc",
1519 "http/http_auth_handler_basic_unittest.cc",
1520 "http/http_auth_handler_digest_unittest.cc",
1521 "http/http_auth_handler_factory_unittest.cc",
1522 "http/http_auth_unittest.cc",
1523 "http/http_content_disposition_unittest.cc",
1524 "http/http_network_transaction_unittest.cc",
1525 "http/http_proxy_client_socket_pool_unittest.cc",
1526 "socket/ssl_client_socket_pool_unittest.cc",
1527 "spdy/spdy_network_transaction_unittest.cc",
1528 "spdy/spdy_proxy_client_socket_unittest.cc",
1529 "url_request/url_request_job_unittest.cc",
1530 "url_request/url_request_unittest.cc",
1531 ]
1532 }
1533
1534 # Exclude brotli test if the support for brotli is disabled.
1535 # Also, exclude the test from iOS for now (needs to read input data files).
1536 if (disable_brotli_filter || is_ios) {
1537 sources -= [ "filter/brotli_filter_unittest.cc" ]
xunjieli084a9292016-09-23 18:15:041538 sources -= [ "filter/brotli_source_stream_unittest.cc" ]
kapishnikovabe280e2016-04-14 19:07:161539 }
1540
dpranke64df2832015-07-31 22:33:361541 if (is_android) {
agrieve732db3a2016-04-26 19:18:191542 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191543 deps += [
1544 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451545 "//base:base_java_unittest_support",
1546 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451547 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191548 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451549 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191550
1551 # TODO(mmenke): This depends on test_support_base, which depends on
1552 # icu. Figure out a way to remove that dependency.
1553 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071554 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451555 ]
1556 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361557 set_sources_assignment_filter([])
1558 sources += [ "base/address_tracker_linux_unittest.cc" ]
1559 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001560 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361561 }
1562
dpranke64df2832015-07-31 22:33:361563 # Symbols for crashes when running tests on swarming.
1564 if (symbol_level > 0) {
1565 if (is_win) {
1566 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1567 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131568 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1569 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361570 }
1571 }
maksim.sisovc69619d2016-05-20 19:23:551572
1573 if (is_win) {
mmenke91c17162016-06-02 16:03:231574 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551575 }
dpranke64df2832015-07-31 22:33:361576}
1577
1578# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031579if (!is_ios) {
1580 # TODO(crbug.com/594965): this should be converted to "app" template and
1581 # enabled on iOS too.
1582 executable("net_perftests") {
1583 testonly = true
1584 sources = [
1585 "base/mime_sniffer_perftest.cc",
1586 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051587 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031588 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1589 "proxy/proxy_resolver_perftest.cc",
1590 "udp/udp_socket_perftest.cc",
1591 ]
[email protected]8a3f8242014-06-05 18:05:121592
sdefresne3001f172016-03-16 10:30:031593 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1594 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1595 deps = [
1596 ":extras",
1597 ":net",
1598 ":test_support",
1599 "//base",
1600 "//base:i18n",
1601 "//base/test:test_support_perf",
1602 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071603 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031604 "//testing/gtest",
1605 "//url",
1606 ]
rockot9c67e5f2015-03-12 20:01:211607
sdefresne3001f172016-03-16 10:30:031608 if (enable_websockets) {
1609 sources += [ "websockets/websocket_frame_perftest.cc" ]
1610 }
rockot9c67e5f2015-03-12 20:01:211611
sdefresne3001f172016-03-16 10:30:031612 if (use_v8_in_net) {
1613 deps += [ ":net_with_v8" ]
1614 } else {
1615 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1616 }
rockot9c67e5f2015-03-12 20:01:211617 }
rockot9c67e5f2015-03-12 20:01:211618}
mefff34b822016-01-11 15:28:081619
eromanfe8659e2016-03-02 23:47:021620# Fuzzers
1621
mmenke35a30012016-07-15 19:20:121622# This has a global (InitGlobals) that must always be linked in, so
1623# must be a source set instead of a static library.
1624source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161625 testonly = true
1626
1627 sources = [
csharrison37ef9852016-08-23 19:00:191628 "base/fuzzer_test_support.cc",
xunjieli75837332016-10-31 16:51:261629 "filter/fuzzed_source_stream.cc",
1630 "filter/fuzzed_source_stream.h",
mmenke99b57172016-04-14 20:44:331631 "socket/fuzzed_socket.cc",
1632 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221633 "socket/fuzzed_socket_factory.cc",
1634 "socket/fuzzed_socket_factory.h",
mmenke91c17162016-06-02 16:03:231635 "udp/fuzzed_datagram_client_socket.cc",
1636 "udp/fuzzed_datagram_client_socket.h",
eroman02b4fe562016-03-04 12:15:161637 ]
csharrisonf30fc95f2016-08-19 21:43:441638 public_deps = [
1639 "//base/test:test_support",
1640 ]
eroman02b4fe562016-03-04 12:15:161641 deps = [
1642 "//base",
1643 "//base:i18n",
mmenke99b57172016-04-14 20:44:331644 "//net",
eroman02b4fe562016-03-04 12:15:161645 ]
1646}
1647
csharrisonaa314dc2016-04-29 20:15:371648fuzzer_test("net_data_job_fuzzer") {
1649 sources = [
1650 "url_request/url_request_data_job_fuzzer.cc",
1651 ]
1652 deps = [
1653 ":net_fuzzer_test_support",
1654 ":test_support",
1655 "//base",
1656 "//net",
1657 ]
1658}
1659
mmenke5552a6a2016-03-28 23:11:591660fuzzer_test("net_mime_sniffer_fuzzer") {
1661 sources = [
1662 "base/mime_sniffer_fuzzer.cc",
1663 ]
1664 deps = [
1665 ":net_fuzzer_test_support",
1666 "//base",
1667 "//net",
1668 ]
mmoroz4a561d32016-07-07 17:45:121669 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591670}
1671
mmoroz565e8df22016-03-04 18:17:201672fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301673 sources = [
1674 "proxy/parse_proxy_list_pac_fuzzer.cc",
1675 ]
1676 deps = [
eroman02b4fe562016-03-04 12:15:161677 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301678 "//net",
1679 ]
1680}
1681
mmoroz565e8df22016-03-04 18:17:201682fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301683 sources = [
1684 "proxy/parse_proxy_list_fuzzer.cc",
1685 ]
1686 deps = [
eroman02b4fe562016-03-04 12:15:161687 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301688 "//net",
1689 ]
1690}
1691
mmoroz565e8df22016-03-04 18:17:201692fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301693 sources = [
1694 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1695 ]
1696 deps = [
eroman02b4fe562016-03-04 12:15:161697 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301698 "//net",
1699 ]
1700}
1701
mmoroz565e8df22016-03-04 18:17:201702fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301703 sources = [
1704 "proxy/parse_proxy_rules_fuzzer.cc",
1705 ]
1706 deps = [
eroman02b4fe562016-03-04 12:15:161707 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301708 "//net",
1709 ]
metzman31db75e2016-08-03 22:33:271710 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301711}
1712
mmoroz565e8df22016-03-04 18:17:201713fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301714 sources = [
1715 "base/parse_data_url_fuzzer.cc",
1716 ]
1717 deps = [
eroman02b4fe562016-03-04 12:15:161718 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301719 "//base",
1720 "//net",
1721 ]
mmoroz4a561d32016-07-07 17:45:121722 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301723}
1724
mmoroz565e8df22016-03-04 18:17:201725fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301726 sources = [
1727 "base/parse_ip_pattern_fuzzer.cc",
1728 ]
1729 deps = [
eroman02b4fe562016-03-04 12:15:161730 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301731 "//net",
1732 ]
1733}
1734
mmoroz565e8df22016-03-04 18:17:201735fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301736 sources = [
1737 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1738 ]
1739 deps = [
eroman02b4fe562016-03-04 12:15:161740 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301741 "//base",
eromane6264fd2016-03-02 22:46:301742 "//net",
1743 ]
mmoroz4a561d32016-07-07 17:45:121744 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301745}
1746
mattmafe43b82016-04-28 20:40:541747fuzzer_test("net_cert_verify_name_match_fuzzer") {
1748 sources = [
1749 "cert/internal/verify_name_match_fuzzer.cc",
1750 ]
1751 deps = [
1752 ":net_fuzzer_test_support",
1753 "//base",
1754 "//net",
1755 ]
1756}
1757
mattm2c637da42016-04-28 02:55:591758fuzzer_test("net_cert_normalize_name_fuzzer") {
1759 sources = [
1760 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1761 ]
1762 deps = [
1763 "//base",
1764 "//net",
1765 ]
1766}
1767
mattmafe43b82016-04-28 20:40:541768fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1769 sources = [
1770 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1771 ]
1772 deps = [
1773 ":net_fuzzer_test_support",
1774 "//base",
1775 "//net",
1776 ]
1777}
1778
nharper85d3b6f2016-04-28 20:58:191779fuzzer_test("net_cert_parse_certificate_fuzzer") {
1780 sources = [
1781 "cert/internal/parse_certificate_fuzzer.cc",
1782 ]
1783 deps = [
1784 "//base",
1785 "//net",
1786 ]
1787}
1788
mmoroz565e8df22016-03-04 18:17:201789fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301790 sources = [
1791 "cookies/parse_cookie_line_fuzzer.cc",
1792 ]
1793 deps = [
eroman02b4fe562016-03-04 12:15:161794 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301795 "//net",
1796 ]
1797}
1798
mmoroz565e8df22016-03-04 18:17:201799fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021800 sources = [
1801 "dns/dns_record_fuzzer.cc",
1802 ]
1803 deps = [
eroman02b4fe562016-03-04 12:15:161804 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021805 "//base",
1806 "//net",
1807 ]
mmoroz4a561d32016-07-07 17:45:121808 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021809}
1810
zhongyi273af9f2016-04-28 18:46:341811fuzzer_test("net_dns_hosts_parse_fuzzer") {
1812 sources = [
1813 "dns/dns_hosts_parse_fuzzer.cc",
1814 ]
1815 deps = [
1816 ":net_fuzzer_test_support",
1817 "//base",
1818 "//net",
1819 ]
mmoroz4a561d32016-07-07 17:45:121820 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341821}
1822
mmenke91c17162016-06-02 16:03:231823fuzzer_test("net_host_resolver_impl_fuzzer") {
1824 sources = [
1825 "dns/fuzzed_host_resolver.cc",
1826 "dns/fuzzed_host_resolver.h",
1827 "dns/host_resolver_impl_fuzzer.cc",
1828 ]
1829 deps = [
1830 ":net_fuzzer_test_support",
1831 ":test_support",
1832 "//base",
1833 "//net",
1834 ]
mmoroz4a561d32016-07-07 17:45:121835 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231836}
1837
mmenke44e8e9c2016-03-29 18:38:571838fuzzer_test("net_http_stream_parser_fuzzer") {
1839 sources = [
1840 "http/http_stream_parser_fuzzer.cc",
1841 ]
1842 deps = [
1843 ":net_fuzzer_test_support",
1844 ":test_support",
1845 "//base",
1846 "//net",
1847 ]
mmoroz4a561d32016-07-07 17:45:121848 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571849}
1850
xunjielid5ffeaf2016-11-01 15:22:001851if (!disable_brotli_filter) {
1852 fuzzer_test("net_brotli_source_stream_fuzzer") {
1853 sources = [
1854 "filter/brotli_source_stream_fuzzer.cc",
1855 ]
1856 deps = [
1857 ":net_fuzzer_test_support",
1858 ":test_support",
1859 "//base",
1860 "//net",
1861 ]
1862 }
1863}
1864
xunjieli75837332016-10-31 16:51:261865fuzzer_test("net_gzip_source_stream_fuzzer") {
1866 sources = [
1867 "filter/gzip_source_stream_fuzzer.cc",
1868 ]
1869 deps = [
1870 ":net_fuzzer_test_support",
1871 ":test_support",
1872 "//base",
1873 "//net",
1874 ]
1875}
1876
mmoroz565e8df22016-03-04 18:17:201877fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021878 sources = [
1879 "ftp/ftp_ctrl_response_fuzzer.cc",
1880 ]
1881 deps = [
eroman02b4fe562016-03-04 12:15:161882 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021883 "//base",
1884 "//net",
1885 ]
1886}
1887
mmoroz565e8df22016-03-04 18:17:201888fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021889 sources = [
1890 "ftp/ftp_directory_listing_fuzzer.cc",
1891 ]
1892 deps = [
eroman02b4fe562016-03-04 12:15:161893 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021894 "//base",
eromanfe8659e2016-03-02 23:47:021895 "//net",
1896 ]
1897}
1898
mmoroz565e8df22016-03-04 18:17:201899fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021900 sources = [
1901 "base/unescape_url_component_fuzzer.cc",
1902 ]
1903 deps = [
eroman02b4fe562016-03-04 12:15:161904 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021905 "//base",
1906 "//net",
1907 ]
mmoroz34eb0082016-03-11 14:32:011908 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331909 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021910}
1911
ricea7b870e72016-09-01 04:41:041912fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1913 sources = [
1914 "websockets/websocket_deflate_stream_fuzzer.cc",
1915 ]
1916 deps = [
1917 ":net_fuzzer_test_support",
1918 "//net",
1919 ]
1920 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1921 libfuzzer_options = [ "max_len=512" ]
1922}
1923
riceaf9dcc092016-09-13 12:42:001924fuzzer_test("net_websocket_extension_parser_fuzzer") {
1925 sources = [
1926 "websockets/websocket_extension_parser_fuzzer.cc",
1927 ]
1928 deps = [
1929 ":net_fuzzer_test_support",
1930 "//net",
1931 ]
1932 dict = "data/fuzzer_dictionaries/net_websocket_extension_parser_fuzzer.dict"
1933 libfuzzer_options = [ "max_len = 256" ]
1934}
1935
mmoroz565e8df22016-03-04 18:17:201936fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021937 sources = [
1938 "websockets/websocket_frame_parser_fuzzer.cc",
1939 ]
1940 deps = [
eroman02b4fe562016-03-04 12:15:161941 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021942 "//net",
1943 ]
mmoroz4a561d32016-07-07 17:45:121944 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071945 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021946}
1947
mmoroz565e8df22016-03-04 18:17:201948fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021949 sources = [
1950 "http/http_chunked_decoder_fuzzer.cc",
1951 ]
1952 deps = [
eroman02b4fe562016-03-04 12:15:161953 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021954 "//net",
1955 ]
1956}
1957
mmenke8e9314bc2016-04-15 21:45:021958fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1959 sources = [
1960 "http/http_proxy_client_socket_fuzzer.cc",
1961 ]
1962 deps = [
1963 ":net_fuzzer_test_support",
1964 ":test_support",
1965 "//base",
1966 "//net",
1967 ]
mmoroz4a561d32016-07-07 17:45:121968 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021969}
1970
mmoroz9299ef9b2016-09-01 17:37:091971fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1972 sources = [
1973 "base/parse_url_hostname_to_address_fuzzer.cc",
1974 ]
1975 deps = [
1976 ":net_fuzzer_test_support",
1977 "//base",
1978 "//net",
1979 ]
1980 libfuzzer_options = [ "max_len=512" ]
1981 seed_corpus = "data/fuzzer_data/hostnames/"
1982}
1983
mmoroz565e8df22016-03-04 18:17:201984fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021985 sources = [
rchd4db7c152016-07-29 21:58:121986 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021987 ]
1988 deps = [
eroman02b4fe562016-03-04 12:15:161989 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021990 "//base",
1991 "//net",
1992 ]
1993}
mmenke99b57172016-04-14 20:44:331994
1995fuzzer_test("net_socks_client_socket_fuzzer") {
1996 sources = [
1997 "socket/socks_client_socket_fuzzer.cc",
1998 ]
1999 deps = [
2000 ":net_fuzzer_test_support",
2001 ":test_support",
2002 "//base",
2003 "//net",
2004 ]
2005}
2006
2007fuzzer_test("net_socks5_client_socket_fuzzer") {
2008 sources = [
2009 "socket/socks5_client_socket_fuzzer.cc",
2010 ]
2011 deps = [
2012 ":net_fuzzer_test_support",
2013 ":test_support",
2014 "//base",
2015 "//net",
2016 ]
2017}
mmenkec951d412016-04-28 19:05:222018
2019fuzzer_test("net_url_request_fuzzer") {
2020 sources = [
2021 "url_request/url_request_fuzzer.cc",
2022 ]
2023 deps = [
2024 ":net_fuzzer_test_support",
2025 ":test_support",
2026 "//base",
2027 "//net",
2028 ]
mmoroz4a561d32016-07-07 17:45:122029 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222030}
csharrison88d2a612016-09-09 16:58:542031
2032fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
2033 sources = [
2034 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2035 ]
2036 deps = [
2037 ":net_fuzzer_test_support",
2038 ":test_support",
2039 "//base",
2040 "//net",
2041 ]
2042}
martijndb9ad4f2016-10-26 18:34:092043
2044fuzzer_test("net_http_security_headers_hsts_fuzzer") {
2045 sources = [
2046 "http/http_security_headers_hsts_fuzzer.cc",
2047 ]
2048 deps = [
2049 "//base",
2050 "//net",
2051 ]
2052 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2053}
2054
2055fuzzer_test("net_http_security_headers_hpkp_fuzzer") {
2056 sources = [
2057 "http/http_security_headers_hpkp_fuzzer.cc",
2058 ]
2059 deps = [
martijn15387afb2016-10-27 22:21:042060 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092061 "//base",
2062 "//net",
2063 "//url",
2064 ]
2065 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2066}
2067
2068fuzzer_test("net_http_security_headers_hpkp_report_only_fuzzer") {
2069 sources = [
2070 "http/http_security_headers_hpkp_report_only_fuzzer.cc",
2071 ]
2072 deps = [
martijn15387afb2016-10-27 22:21:042073 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092074 "//base",
2075 "//net",
2076 "//url",
2077 ]
2078 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2079}