blob: ef893b8112cb3d2949fe38431bed85d398cd26a5 [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) {
xunjieli084a9292016-09-23 18:15:04389 sources += [ "filter/brotli_source_stream.cc" ]
kapishnikovabe280e2016-04-14 19:07:16390 deps += [ "//third_party/brotli" ]
391 } else {
xunjieli084a9292016-09-23 18:15:04392 sources += [ "filter/brotli_source_stream_disabled.cc" ]
kapishnikovabe280e2016-04-14 19:07:16393 }
[email protected]85191ed2014-05-15 00:41:49394 }
[email protected]4625ade2014-04-15 19:26:44395}
396
397grit("net_resources") {
398 source = "base/net_resources.grd"
[email protected]7ae52902014-08-18 22:36:01399 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:32400 outputs = [
401 "grit/net_resources.h",
402 "net_resources.pak",
[email protected]b89c53842014-07-23 16:32:32403 ]
[email protected]4625ade2014-04-15 19:26:44404}
405
rtennetib6f1c0d2015-04-03 17:52:06406proto_library("net_quic_proto") {
kapishnikovabe280e2016-04-14 19:07:16407 visibility = [ ":net" ]
brettw2e7db0a2015-04-24 22:59:17408
rtennetib6f1c0d2015-04-03 17:52:06409 sources = [
rchd4db7c152016-07-29 21:58:12410 "quic/core/proto/cached_network_parameters.proto",
411 "quic/core/proto/source_address_token.proto",
rtennetib6f1c0d2015-04-03 17:52:06412 ]
413 cc_generator_options = "dllexport_decl=NET_EXPORT_PRIVATE:"
414 cc_include = "net/base/net_export.h"
brettw7ef80452016-06-30 00:43:18415 component_build_force_source_set = true
rtennetib6f1c0d2015-04-03 17:52:06416
417 defines = [ "NET_IMPLEMENTATION" ]
418
419 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
420}
421
Brett Wilson83fd4242014-09-02 19:45:33422static_library("extras") {
mef327a8e42014-08-29 17:10:03423 sources = gypi_values.net_extras_sources
424 configs += [ "//build/config/compiler:wexit_time_destructors" ]
425 deps = [
426 ":net",
brettwbc44c0a92015-02-20 22:30:39427 "//base",
mef327a8e42014-08-29 17:10:03428 "//sql:sql",
429 ]
430}
431
[email protected]8a3f8242014-06-05 18:05:12432static_library("http_server") {
[email protected]4625ade2014-04-15 19:26:44433 sources = [
434 "server/http_connection.cc",
435 "server/http_connection.h",
436 "server/http_server.cc",
437 "server/http_server.h",
438 "server/http_server_request_info.cc",
439 "server/http_server_request_info.h",
440 "server/http_server_response_info.cc",
441 "server/http_server_response_info.h",
442 "server/web_socket.cc",
443 "server/web_socket.h",
dgozmana6e70092014-12-12 14:46:21444 "server/web_socket_encoder.cc",
445 "server/web_socket_encoder.h",
[email protected]4625ade2014-04-15 19:26:44446 ]
jambc6cc8e2014-11-14 17:56:29447 configs += [
brettwd1c719a2015-02-19 23:17:04448 "//build/config/compiler:no_size_t_to_int_warning",
jambc6cc8e2014-11-14 17:56:29449 "//build/config/compiler:wexit_time_destructors",
jambc6cc8e2014-11-14 17:56:29450 ]
[email protected]4625ade2014-04-15 19:26:44451 deps = [
452 ":net",
453 "//base",
454 ]
455}
456
sdefresne3001f172016-03-16 10:30:03457if (!is_ios) {
458 executable("dump_cache") {
459 testonly = true
460 sources = [
461 "tools/dump_cache/dump_cache.cc",
462 "tools/dump_cache/dump_files.cc",
463 "tools/dump_cache/dump_files.h",
464 ]
[email protected]4625ade2014-04-15 19:26:44465
sdefresne3001f172016-03-16 10:30:03466 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
467 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31468
sdefresne3001f172016-03-16 10:30:03469 deps = [
470 ":net",
471 ":test_support",
472 "//base",
473 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07474 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:03475 ]
476 }
[email protected]8603c5de2014-04-16 20:34:31477}
478
sdefresneb0a31642016-03-18 11:04:45479bundle_data("test_support_bundle_data") {
sdefresne04f91142016-04-21 08:41:59480 visibility = [ ":test_support" ]
sdefresneb0a31642016-03-18 11:04:45481 testonly = true
sdefresne04f91142016-04-21 08:41:59482 sources = gypi_values.net_test_support_data_sources
sdefresneb0a31642016-03-18 11:04:45483 outputs = [
484 "{{bundle_resources_dir}}/" +
485 "{{source_root_relative_dir}}/{{source_file_part}}",
486 ]
487}
488
brettw3871f522016-07-14 22:08:34489static_library("test_support") {
Brett Wilson8f80ad0b2014-09-08 19:50:24490 testonly = true
[email protected]8603c5de2014-04-16 20:34:31491 sources = [
[email protected]8603c5de2014-04-16 20:34:31492 "base/load_timing_info_test_util.cc",
493 "base/load_timing_info_test_util.h",
494 "base/mock_file_stream.cc",
495 "base/mock_file_stream.h",
496 "base/test_completion_callback.cc",
497 "base/test_completion_callback.h",
[email protected]8603c5de2014-04-16 20:34:31498 "cert/mock_cert_verifier.cc",
499 "cert/mock_cert_verifier.h",
ryanchung987b2ff2016-02-19 00:17:12500 "cert/mock_client_cert_verifier.cc",
501 "cert/mock_client_cert_verifier.h",
[email protected]8603c5de2014-04-16 20:34:31502 "cookies/cookie_monster_store_test.cc",
503 "cookies/cookie_monster_store_test.h",
504 "cookies/cookie_store_test_callbacks.cc",
505 "cookies/cookie_store_test_callbacks.h",
506 "cookies/cookie_store_test_helpers.cc",
507 "cookies/cookie_store_test_helpers.h",
drogerfd8b2772015-12-04 14:34:56508 "cookies/cookie_store_unittest.h",
[email protected]8603c5de2014-04-16 20:34:31509 "disk_cache/disk_cache_test_base.cc",
510 "disk_cache/disk_cache_test_base.h",
511 "disk_cache/disk_cache_test_util.cc",
512 "disk_cache/disk_cache_test_util.h",
513 "dns/dns_test_util.cc",
514 "dns/dns_test_util.h",
515 "dns/mock_host_resolver.cc",
516 "dns/mock_host_resolver.h",
517 "dns/mock_mdns_socket_factory.cc",
518 "dns/mock_mdns_socket_factory.h",
xunjieli6cc8b84b2016-11-08 15:23:39519 "filter/mock_source_stream.cc",
520 "filter/mock_source_stream.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
666if (use_v8_in_net) {
667 component("net_with_v8") {
668 sources = [
669 "proxy/proxy_resolver_v8.cc",
670 "proxy/proxy_resolver_v8.h",
671 "proxy/proxy_resolver_v8_tracing.cc",
672 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47673 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
674 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31675 "proxy/proxy_service_v8.cc",
676 "proxy/proxy_service_v8.h",
677 ]
678
679 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11680
[email protected]8603c5de2014-04-16 20:34:31681 configs += [
brettwd1c719a2015-02-19 23:17:04682 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31683 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11684 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31685 ]
686
Brett Wilsone53895272014-09-23 23:41:46687 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31688 ":net",
Brett Wilsone53895272014-09-23 23:41:46689 ]
690 deps = [
[email protected]8603c5de2014-04-16 20:34:31691 "//base",
692 "//gin",
693 "//url",
694 "//v8",
695 ]
696 }
697}
698
amistry7e6ebfdc82015-02-13 04:19:11699if (use_v8_in_net && !is_android) {
700 source_set("net_browser_services") {
701 sources = [
702 "dns/mojo_host_resolver_impl.cc",
703 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01704 "proxy/in_process_mojo_proxy_resolver_factory.cc",
705 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17706 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35707 "proxy/proxy_resolver_factory_mojo.cc",
708 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01709 "proxy/proxy_service_mojo.cc",
710 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11711 ]
712
713 public_deps = [
tfarina8ac4d17f2015-12-16 02:11:11714 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39715 "//base",
rockot85dce0862015-11-13 01:33:59716 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11717 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01718
719 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
720 # this dependency since in_process_mojo_proxy_resolver_factory creates
721 # the utility process side Mojo services in the browser process.
722 # Ultimately, this will go away when we only support out-of-process.
723 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11724 ]
725 }
726
sammc5403aa1d2015-02-25 04:59:21727 source_set("net_utility_services") {
728 sources = [
sammc6ac3fe52015-02-25 06:00:28729 "dns/host_resolver_mojo.cc",
730 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24731 "proxy/mojo_proxy_resolver_factory_impl.cc",
732 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21733 "proxy/mojo_proxy_resolver_impl.cc",
734 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51735 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21736 ]
737
rockot9509ec82015-04-14 02:50:56738 deps = [
739 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11740 "//base",
rockot9509ec82015-04-14 02:50:56741 ]
742
sammc5403aa1d2015-02-25 04:59:21743 public_deps = [
sammc5403aa1d2015-02-25 04:59:21744 ":net",
rockot85dce0862015-11-13 01:33:59745 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21746 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21747 ]
748 }
amistry7e6ebfdc82015-02-13 04:19:11749}
750
[email protected]8603c5de2014-04-16 20:34:31751if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40752 executable("cert_verify_tool") {
753 testonly = true
754 sources = [
755 "tools/cert_verify_tool/cert_verify_tool.cc",
756 "tools/cert_verify_tool/cert_verify_tool_util.cc",
757 "tools/cert_verify_tool/cert_verify_tool_util.h",
758 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
759 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42760 "tools/cert_verify_tool/verify_using_path_builder.cc",
761 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40762 ]
763
764 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
765 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
766 deps = [
767 ":net",
768 ":test_support",
769 "//base",
770 "//build/config/sanitizers:deps",
771 "//build/win:default_exe_manifest",
772 ]
773 }
774
[email protected]8603c5de2014-04-16 20:34:31775 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24776 testonly = true
scottmg34fb7e52014-12-03 23:27:24777 sources = [
778 "tools/crash_cache/crash_cache.cc",
779 ]
dpranke43276212015-02-20 02:55:19780
brettwd1c719a2015-02-19 23:17:04781 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
782 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31783 deps = [
784 ":net",
[email protected]b2b2bf52014-05-28 20:26:57785 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31786 "//base",
brettwba7a73d2015-08-31 22:17:39787 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07788 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31789 ]
790 }
791
792 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24793 testonly = true
scottmg34fb7e52014-12-03 23:27:24794 sources = [
795 "tools/crl_set_dump/crl_set_dump.cc",
796 ]
dpranke43276212015-02-20 02:55:19797
brettwd1c719a2015-02-19 23:17:04798 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
799 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31800 deps = [
801 ":net",
802 "//base",
brettwba7a73d2015-08-31 22:17:39803 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07804 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31805 ]
806 }
807
808 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24809 testonly = true
scottmg34fb7e52014-12-03 23:27:24810 sources = [
811 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
812 ]
dpranke43276212015-02-20 02:55:19813
brettwd1c719a2015-02-19 23:17:04814 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
815 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31816 deps = [
817 ":net",
818 "//base",
brettwba7a73d2015-08-31 22:17:39819 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07820 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31821 ]
822 }
823
824 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24825 testonly = true
[email protected]8603c5de2014-04-16 20:34:31826 sources = [
827 "tools/gdig/file_net_log.cc",
828 "tools/gdig/gdig.cc",
829 ]
830 deps = [
831 ":net",
832 "//base",
brettwba7a73d2015-08-31 22:17:39833 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07834 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31835 ]
836 }
837
838 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24839 testonly = true
scottmg34fb7e52014-12-03 23:27:24840 sources = [
841 "tools/get_server_time/get_server_time.cc",
842 ]
dpranke43276212015-02-20 02:55:19843
brettwd1c719a2015-02-19 23:17:04844 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
845 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31846 deps = [
847 ":net",
848 "//base",
849 "//base:i18n",
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 "//url",
853 ]
854 }
855
rockot9c67e5f2015-03-12 20:01:21856 executable("hpack_example_generator") {
857 testonly = true
858 sources = [
859 "spdy/fuzzing/hpack_example_generator.cc",
860 ]
861
862 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
863 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
864 deps = [
rockot9c67e5f2015-03-12 20:01:21865 ":net",
brettwba7a73d2015-08-31 22:17:39866 "//base",
867 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07868 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21869 ]
870 }
871
872 executable("hpack_fuzz_mutator") {
873 testonly = true
874 sources = [
875 "spdy/fuzzing/hpack_fuzz_mutator.cc",
876 ]
877
878 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
879 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
880 deps = [
rockot9c67e5f2015-03-12 20:01:21881 ":net",
brettwba7a73d2015-08-31 22:17:39882 "//base",
883 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07884 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21885 ]
886 }
887
888 executable("hpack_fuzz_wrapper") {
889 testonly = true
890 sources = [
891 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
892 ]
893
894 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
895 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
896 deps = [
rockot9c67e5f2015-03-12 20:01:21897 ":net",
brettwba7a73d2015-08-31 22:17:39898 "//base",
899 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07900 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21901 ]
902 }
903
[email protected]8603c5de2014-04-16 20:34:31904 if (use_v8_in_net) {
905 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24906 testonly = true
scottmg34fb7e52014-12-03 23:27:24907 sources = [
908 "tools/net_watcher/net_watcher.cc",
909 ]
[email protected]8603c5de2014-04-16 20:34:31910 deps = [
911 ":net",
912 ":net_with_v8",
913 "//base",
brettwba7a73d2015-08-31 22:17:39914 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07915 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31916 ]
[email protected]8603c5de2014-04-16 20:34:31917 }
918 }
919
920 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24921 testonly = true
scottmg34fb7e52014-12-03 23:27:24922 sources = [
923 "tools/testserver/run_testserver.cc",
924 ]
[email protected]8603c5de2014-04-16 20:34:31925 deps = [
[email protected]b2b2bf52014-05-28 20:26:57926 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31927 "//base",
928 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39929 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07930 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31931 "//testing/gtest",
932 ]
933 }
934
935 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24936 testonly = true
scottmg34fb7e52014-12-03 23:27:24937 sources = [
rvargase23fcf652015-03-04 19:59:22938 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:24939 ]
dpranke43276212015-02-20 02:55:19940
brettwd1c719a2015-02-19 23:17:04941 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
942 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31943 deps = [
944 ":net",
[email protected]b2b2bf52014-05-28 20:26:57945 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31946 "//base",
brettwba7a73d2015-08-31 22:17:39947 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07948 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31949 ]
950 }
951
952 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:24953 sources = [
954 "tools/tld_cleanup/tld_cleanup.cc",
955 ]
dpranke43276212015-02-20 02:55:19956
brettwd1c719a2015-02-19 23:17:04957 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
958 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31959 deps = [
960 "//base",
961 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39962 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07963 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31964 "//net/tools/tld_cleanup",
965 ]
966 }
967}
968
gabadie0774bee2016-05-12 14:02:58969if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:42970 executable("cachetool") {
971 testonly = true
972 sources = [
973 "tools/cachetool/cachetool.cc",
974 ]
975 deps = [
976 ":net",
977 ":test_support",
978 "//base",
979 ]
980 }
981
982 executable("content_decoder_tool") {
983 testonly = true
984 sources = [
gabadie64af64a2016-03-29 16:36:42985 "tools/content_decoder_tool/content_decoder_tool.cc",
xunjielibb2d9f202016-11-01 16:37:27986 "tools/content_decoder_tool/content_decoder_tool.h",
987 "tools/content_decoder_tool/content_decoder_tool_bin.cc",
gabadie64af64a2016-03-29 16:36:42988 ]
989 deps = [
990 ":net",
991 ":test_support",
992 "//base",
993 "//url",
994 ]
995 }
gabadie0774bee2016-05-12 14:02:58996}
gabadie64af64a2016-03-29 16:36:42997
gabadie0774bee2016-05-12 14:02:58998if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:12999 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311000 sources = [
1001 "tools/epoll_server/epoll_server.cc",
1002 "tools/epoll_server/epoll_server.h",
1003 ]
1004 deps = [
1005 ":net",
1006 "//base",
1007 ]
1008 }
1009
rch216445c2015-03-27 00:23:281010 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311011 sources = [
1012 "tools/quic/quic_client.cc",
1013 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311014 "tools/quic/quic_default_packet_writer.cc",
1015 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071016 "tools/quic/quic_epoll_alarm_factory.cc",
1017 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311018 "tools/quic/quic_epoll_clock.cc",
1019 "tools/quic/quic_epoll_clock.h",
1020 "tools/quic/quic_epoll_connection_helper.cc",
1021 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551022 "tools/quic/quic_packet_reader.cc",
1023 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311024 "tools/quic/quic_packet_writer_wrapper.cc",
1025 "tools/quic/quic_packet_writer_wrapper.h",
1026 "tools/quic/quic_server.cc",
1027 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311028 "tools/quic/quic_socket_utils.cc",
1029 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311030 ]
1031 deps = [
[email protected]8603c5de2014-04-16 20:34:311032 ":epoll_server",
1033 ":net",
tfarina8ac4d17f2015-12-16 02:11:111034 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311035 "//base",
1036 "//base/third_party/dynamic_annotations",
1037 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371038 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311039 "//url",
1040 ]
1041 }
1042
rch216445c2015-03-27 00:23:281043 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241044 sources = [
1045 "tools/quic/quic_client_bin.cc",
1046 ]
[email protected]8603c5de2014-04-16 20:34:311047 deps = [
rch216445c2015-03-27 00:23:281048 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281049 ":epoll_server",
rch216445c2015-03-27 00:23:281050 ":net",
1051 ":simple_quic_tools",
1052 "//base",
brettwba7a73d2015-08-31 22:17:391053 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281054 "//third_party/boringssl",
1055 ]
1056 }
1057
1058 executable("epoll_quic_server") {
1059 sources = [
1060 "tools/quic/quic_server_bin.cc",
1061 ]
1062 deps = [
rch216445c2015-03-27 00:23:281063 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281064 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311065 ":net",
rchda78df5a2015-03-22 05:16:371066 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311067 "//base",
brettwba7a73d2015-08-31 22:17:391068 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371069 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311070 ]
1071 }
[email protected]8603c5de2014-04-16 20:34:311072}
1073
[email protected]ef0eb442014-05-15 09:32:181074if (is_android) {
1075 generate_jni("net_jni_headers") {
1076 sources = [
tbansalc04b7aa2016-07-02 06:54:371077 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181078 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1079 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1080 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011081 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181082 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531083 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171084 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181085 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1086 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1087 "android/java/src/org/chromium/net/X509Util.java",
1088 ]
1089 jni_package = "net"
1090 }
cjhopmandad5f4272014-09-05 01:00:551091 generate_jni("net_test_jni_headers") {
1092 sources = [
1093 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531094 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351095 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551096 ]
brettwcdccaf02015-07-27 16:27:091097 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551098 }
[email protected]ef0eb442014-05-15 09:32:181099}
[email protected]8603c5de2014-04-16 20:34:311100
1101if (is_android || is_linux) {
1102 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241103 testonly = true
scottmg34fb7e52014-12-03 23:27:241104 sources = [
1105 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1106 ]
[email protected]8603c5de2014-04-16 20:34:311107 deps = [
1108 ":net",
1109 "//base",
brettwba7a73d2015-08-31 22:17:391110 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311111 ]
1112 }
1113}
[email protected]8a3f8242014-06-05 18:05:121114
rch47ad01f2015-03-20 21:17:231115source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491116 sources = [
ckrasica7fd1242016-05-14 20:36:011117 "tools/quic/chlo_extractor.cc",
1118 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311119 "tools/quic/quic_client_base.cc",
1120 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051121 "tools/quic/quic_client_session.cc",
1122 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561123 "tools/quic/quic_dispatcher.cc",
1124 "tools/quic/quic_dispatcher.h",
rch0e945472015-03-26 15:19:211125 "tools/quic/quic_in_memory_cache.cc",
1126 "tools/quic/quic_in_memory_cache.h",
rchc99f380c2015-03-26 19:50:561127 "tools/quic/quic_per_connection_packet_writer.cc",
1128 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581129 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491130 "tools/quic/quic_simple_client.cc",
1131 "tools/quic/quic_simple_client.h",
ianswett6c7b7ed2016-09-13 19:35:271132 "tools/quic/quic_simple_crypto_server_stream_helper.cc",
1133 "tools/quic/quic_simple_crypto_server_stream_helper.h",
alyssara473d6f2016-08-04 16:54:041134 "tools/quic/quic_simple_dispatcher.cc",
1135 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281136 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1137 "tools/quic/quic_simple_per_connection_packet_writer.h",
1138 "tools/quic/quic_simple_server.cc",
1139 "tools/quic/quic_simple_server.h",
1140 "tools/quic/quic_simple_server_packet_writer.cc",
1141 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391142 "tools/quic/quic_simple_server_session.cc",
1143 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311144 "tools/quic/quic_simple_server_session_helper.cc",
1145 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401146 "tools/quic/quic_simple_server_stream.cc",
1147 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051148 "tools/quic/quic_spdy_client_stream.cc",
1149 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211150 "tools/quic/quic_time_wait_list_manager.cc",
1151 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371152 "tools/quic/stateless_rejector.cc",
1153 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371154 "tools/quic/synchronous_host_resolver.cc",
1155 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491156 ]
1157 deps = [
1158 ":net",
1159 "//base",
rch47ad01f2015-03-20 21:17:231160 "//base/third_party/dynamic_annotations",
1161 "//url",
1162 ]
1163}
1164
sherouk51b4b098b2015-08-10 09:00:431165if (!is_ios) {
1166 executable("quic_client") {
1167 sources = [
1168 "tools/quic/quic_simple_client_bin.cc",
1169 ]
1170 deps = [
1171 ":net",
1172 ":simple_quic_tools",
1173 "//base",
brettwba7a73d2015-08-31 22:17:391174 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071175 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431176 "//url",
1177 ]
1178 }
1179 executable("quic_server") {
1180 sources = [
1181 "tools/quic/quic_simple_server_bin.cc",
1182 ]
1183 deps = [
1184 ":net",
1185 ":simple_quic_tools",
1186 "//base",
brettwba7a73d2015-08-31 22:17:391187 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071188 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431189 "//third_party/boringssl",
1190 "//third_party/protobuf:protobuf_lite",
1191 ]
1192 }
rchf80f62d12016-05-11 00:47:311193 executable("quic_packet_printer") {
1194 sources = [
1195 "tools/quic/quic_packet_printer_bin.cc",
1196 ]
1197 deps = [
1198 ":net",
1199 ":simple_quic_tools",
1200 "//base",
1201 "//build/config/sanitizers:deps",
1202 "//build/win:default_exe_manifest",
1203 "//third_party/boringssl",
1204 "//third_party/protobuf:protobuf_lite",
1205 ]
1206 }
mpwbbea85d2016-08-27 14:39:211207 executable("quic_reject_reason_decoder") {
1208 sources = [
1209 "tools/quic/quic_reject_reason_decoder_bin.cc",
1210 ]
1211 deps = [
1212 ":net",
1213 ":simple_quic_tools",
1214 "//base",
1215 "//build/config/sanitizers:deps",
1216 "//build/win:default_exe_manifest",
1217 "//third_party/boringssl",
1218 "//third_party/protobuf:protobuf_lite",
1219 ]
1220 }
danzh1401f0a2016-05-19 13:41:101221 executable("crypto_message_printer") {
1222 sources = [
1223 "tools/quic/crypto_message_printer_bin.cc",
1224 ]
1225 deps = [
1226 ":net",
1227 "//base",
1228 "//build/config/sanitizers:deps",
1229 "//build/win:default_exe_manifest",
1230 ]
1231 }
rch216445c2015-03-27 00:23:281232}
1233
sdefresneb0a31642016-03-18 11:04:451234bundle_data("net_unittests_bundle_data") {
1235 testonly = true
sdefresne04f91142016-04-21 08:41:591236 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451237 outputs = [
1238 "{{bundle_resources_dir}}/" +
1239 "{{source_root_relative_dir}}/{{source_file_part}}",
1240 ]
1241}
1242
dpranke64df2832015-07-31 22:33:361243test("net_unittests") {
1244 sources = gypi_values.net_test_sources
1245
1246 configs += [
1247 "//build/config:precompiled_headers",
1248
1249 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1250 "//build/config/compiler:no_size_t_to_int_warning",
1251 ]
1252 defines = []
1253
1254 deps = [
dpranke64df2832015-07-31 22:33:361255 ":extras",
dpranke64df2832015-07-31 22:33:361256 ":net",
1257 ":simple_quic_tools",
1258 ":test_support",
1259 "//base",
1260 "//base:i18n",
dpranke64df2832015-07-31 22:33:361261 "//base/third_party/dynamic_annotations",
1262 "//crypto",
1263 "//crypto:platform",
1264 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361265 "//net/base/registry_controlled_domains",
1266 "//sql",
1267 "//testing/gmock",
1268 "//testing/gtest",
1269 "//third_party/zlib",
1270 "//url",
kapishnikovabe280e2016-04-14 19:07:161271 "//url:url_features",
dpranke64df2832015-07-31 22:33:361272 ]
1273
jbudorick944eb922016-06-20 15:38:301274 data = []
svaldez2135be52016-04-20 16:34:531275 data_deps = [
1276 "third_party/nist-pkits/",
1277 ]
dpranke64df2832015-07-31 22:33:361278
1279 if (is_linux || is_mac || is_win) {
1280 deps += [
1281 "//third_party/pyftpdlib/",
1282 "//third_party/pywebsocket/",
1283 "//third_party/tlslite/",
1284 ]
mattm6586b432016-02-12 04:52:391285 data_deps += [
dpranke64df2832015-07-31 22:33:361286 "//third_party/pyftpdlib/",
1287 "//third_party/pywebsocket/",
1288 "//third_party/tlslite/",
1289 ]
1290 data += [
1291 "tools/testserver/",
1292 "//third_party/pyftpdlib/",
1293 "//third_party/pywebsocket/",
1294 "//third_party/tlslite/",
1295 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231296 ]
1297 }
1298
dpranke64df2832015-07-31 22:33:361299 if (is_desktop_linux) {
1300 deps += [ ":epoll_quic_tools" ]
1301 }
1302 if (is_linux) {
1303 sources += gypi_values.net_linux_test_sources
1304 deps += [
1305 ":epoll_quic_tools",
1306 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421307 ]
dpranke64df2832015-07-31 22:33:361308 }
[email protected]8a3f8242014-06-05 18:05:121309
dpranke64df2832015-07-31 22:33:361310 if (is_mac || is_ios) {
1311 sources += gypi_values.net_base_test_mac_ios_sources
1312 }
1313
mattmaf868e72016-09-23 23:25:201314 if (is_mac) {
1315 libs = [ "Security.framework" ]
1316 }
1317
dpranke64df2832015-07-31 22:33:361318 if (is_chromeos) {
1319 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1320 }
1321
1322 if (v8_use_external_startup_data) {
1323 deps += [ "//gin" ]
1324 }
1325
1326 if (!use_nss_certs) {
1327 sources -= [
mattm9c63d442016-09-03 00:45:511328 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361329 "cert/nss_cert_database_unittest.cc",
1330 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121331 ]
dpranke64df2832015-07-31 22:33:361332 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411333 sources -= [
dpranke64df2832015-07-31 22:33:361334 "cert/nss_cert_database_chromeos_unittest.cc",
1335 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411336 ]
brettw43ae0e12015-07-14 22:12:361337 }
[email protected]8a3f8242014-06-05 18:05:121338 }
dpranke64df2832015-07-31 22:33:361339
dpranke64df2832015-07-31 22:33:361340 if (use_kerberos) {
1341 defines += [ "USE_KERBEROS" ]
1342 }
1343
1344 # These are excluded on Android, because the actual Kerberos support, which
1345 # these test, is in a separate app on Android.
1346 if (!use_kerberos || is_android) {
1347 sources -= [
1348 "http/http_auth_gssapi_posix_unittest.cc",
1349 "http/mock_gssapi_library_posix.cc",
1350 "http/mock_gssapi_library_posix.h",
1351 ]
1352 }
1353 if (!use_kerberos) {
1354 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1355 }
1356
svaldez2135be52016-04-20 16:34:531357 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531358 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361359 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1360 }
1361
1362 if (!use_openssl_certs) {
1363 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1364 }
1365
jbudorick1273a842016-04-01 19:50:051366 if (enable_websockets) {
1367 sources += gypi_values.net_websockets_test_sources
1368 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361369 }
1370
1371 if (disable_file_support) {
1372 sources -= [
1373 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161374 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041375 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361376 "url_request/url_request_file_job_unittest.cc",
1377 ]
1378 }
1379
1380 if (disable_ftp_support) {
1381 sources -= [
1382 "ftp/ftp_auth_cache_unittest.cc",
1383 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1384 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361385 "ftp/ftp_directory_listing_parser_unittest.cc",
1386 "ftp/ftp_directory_listing_parser_unittest.h",
1387 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1388 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1389 "ftp/ftp_network_transaction_unittest.cc",
1390 "ftp/ftp_util_unittest.cc",
1391 "url_request/url_request_ftp_job_unittest.cc",
1392 ]
1393 }
1394
1395 if (!enable_built_in_dns) {
1396 sources -= [
1397 "dns/address_sorter_posix_unittest.cc",
1398 "dns/address_sorter_unittest.cc",
1399 ]
1400 }
1401
xunjieli905496a2015-08-31 15:51:171402 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361403 deps += [ ":net_with_v8" ]
1404 } else {
1405 sources -= [
1406 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1407 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1408 "proxy/proxy_resolver_v8_unittest.cc",
1409 ]
1410 }
1411
1412 if (use_v8_in_net && !is_android) {
1413 deps += [
1414 ":net_browser_services",
1415 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081416 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361417 ]
1418 } else {
1419 sources -= [
1420 "dns/host_resolver_mojo_unittest.cc",
1421 "dns/mojo_host_resolver_impl_unittest.cc",
1422 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1423 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1424 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1425 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1426 "proxy/proxy_service_mojo_unittest.cc",
1427 ]
1428 }
1429
1430 if (!enable_mdns) {
1431 sources -= [
1432 "dns/mdns_cache_unittest.cc",
1433 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361434 ]
1435 }
1436
1437 if (is_ios) {
dpranke64df2832015-07-31 22:33:361438 sources -= [
1439 # TODO(droger): The following tests are disabled because the
1440 # implementation is missing or incomplete.
1441 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1442 "base/keygen_handler_unittest.cc",
1443 "disk_cache/backend_unittest.cc",
1444 "disk_cache/blockfile/block_files_unittest.cc",
1445
1446 # Need to read input data files.
dpranke64df2832015-07-31 22:33:361447 "socket/ssl_server_socket_unittest.cc",
1448 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1449
1450 # Need TestServer.
1451 "cert_net/cert_net_fetcher_impl_unittest.cc",
1452 "proxy/proxy_script_fetcher_impl_unittest.cc",
1453 "socket/ssl_client_socket_unittest.cc",
1454 "url_request/url_fetcher_impl_unittest.cc",
1455 "url_request/url_request_context_builder_unittest.cc",
1456
1457 # Needs GetAppOutput().
1458 "test/python_utils_unittest.cc",
1459
1460 # The following tests are disabled because they don't apply to
1461 # iOS.
1462 # OS is not "linux" or "freebsd" or "openbsd".
1463 "socket/unix_domain_client_socket_posix_unittest.cc",
1464 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361465 ]
rsesek7d4ab4bc2016-07-22 17:35:131466
1467 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361468 }
1469
kapishnikovabe280e2016-04-14 19:07:161470 # Unit tests that aren't supported by the current ICU alternatives on Android.
1471 if (is_android && use_platform_icu_alternatives) {
1472 sources -= [
1473 "base/filename_util_unittest.cc",
1474 "base/url_util_unittest.cc",
1475 "cert/x509_certificate_unittest.cc",
1476 "proxy/proxy_resolver_v8_unittest.cc",
1477 "url_request/url_request_job_unittest.cc",
1478 ]
1479 }
1480
1481 # Unit tests that are not supported by the current ICU alternatives on iOS.
1482 if (is_ios && use_platform_icu_alternatives) {
1483 sources -= [
1484 "base/filename_util_unittest.cc",
1485 "base/url_util_unittest.cc",
1486 "cert/x509_certificate_unittest.cc",
1487 "http/http_auth_handler_basic_unittest.cc",
1488 "http/http_auth_handler_digest_unittest.cc",
1489 "http/http_auth_handler_factory_unittest.cc",
1490 "http/http_auth_unittest.cc",
1491 "http/http_content_disposition_unittest.cc",
1492 "http/http_network_transaction_unittest.cc",
1493 "http/http_proxy_client_socket_pool_unittest.cc",
1494 "socket/ssl_client_socket_pool_unittest.cc",
1495 "spdy/spdy_network_transaction_unittest.cc",
1496 "spdy/spdy_proxy_client_socket_unittest.cc",
1497 "url_request/url_request_job_unittest.cc",
1498 "url_request/url_request_unittest.cc",
1499 ]
1500 }
1501
1502 # Exclude brotli test if the support for brotli is disabled.
xunjielif54f24a02016-11-04 15:51:541503 if (disable_brotli_filter) {
xunjieli084a9292016-09-23 18:15:041504 sources -= [ "filter/brotli_source_stream_unittest.cc" ]
kapishnikovabe280e2016-04-14 19:07:161505 }
1506
dpranke64df2832015-07-31 22:33:361507 if (is_android) {
agrieve732db3a2016-04-26 19:18:191508 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191509 deps += [
1510 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451511 "//base:base_java_unittest_support",
1512 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451513 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191514 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451515 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191516
1517 # TODO(mmenke): This depends on test_support_base, which depends on
1518 # icu. Figure out a way to remove that dependency.
1519 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071520 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451521 ]
1522 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361523 set_sources_assignment_filter([])
1524 sources += [ "base/address_tracker_linux_unittest.cc" ]
1525 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001526 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361527 }
1528
dpranke64df2832015-07-31 22:33:361529 # Symbols for crashes when running tests on swarming.
1530 if (symbol_level > 0) {
1531 if (is_win) {
1532 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1533 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131534 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1535 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361536 }
1537 }
maksim.sisovc69619d2016-05-20 19:23:551538
1539 if (is_win) {
mmenke91c17162016-06-02 16:03:231540 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551541 }
dpranke64df2832015-07-31 22:33:361542}
1543
1544# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031545if (!is_ios) {
1546 # TODO(crbug.com/594965): this should be converted to "app" template and
1547 # enabled on iOS too.
1548 executable("net_perftests") {
1549 testonly = true
1550 sources = [
1551 "base/mime_sniffer_perftest.cc",
1552 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051553 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031554 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1555 "proxy/proxy_resolver_perftest.cc",
tfarina5dd13c22016-11-16 12:08:261556 "socket/udp_socket_perftest.cc",
sdefresne3001f172016-03-16 10:30:031557 ]
[email protected]8a3f8242014-06-05 18:05:121558
sdefresne3001f172016-03-16 10:30:031559 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1560 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1561 deps = [
1562 ":extras",
1563 ":net",
1564 ":test_support",
1565 "//base",
1566 "//base:i18n",
1567 "//base/test:test_support_perf",
1568 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071569 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031570 "//testing/gtest",
1571 "//url",
1572 ]
rockot9c67e5f2015-03-12 20:01:211573
sdefresne3001f172016-03-16 10:30:031574 if (enable_websockets) {
1575 sources += [ "websockets/websocket_frame_perftest.cc" ]
1576 }
rockot9c67e5f2015-03-12 20:01:211577
sdefresne3001f172016-03-16 10:30:031578 if (use_v8_in_net) {
1579 deps += [ ":net_with_v8" ]
1580 } else {
1581 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1582 }
rockot9c67e5f2015-03-12 20:01:211583 }
rockot9c67e5f2015-03-12 20:01:211584}
mefff34b822016-01-11 15:28:081585
eromanfe8659e2016-03-02 23:47:021586# Fuzzers
1587
mmenke35a30012016-07-15 19:20:121588# This has a global (InitGlobals) that must always be linked in, so
1589# must be a source set instead of a static library.
1590source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161591 testonly = true
1592
1593 sources = [
csharrison37ef9852016-08-23 19:00:191594 "base/fuzzer_test_support.cc",
xunjieli75837332016-10-31 16:51:261595 "filter/fuzzed_source_stream.cc",
1596 "filter/fuzzed_source_stream.h",
tfarina5dd13c22016-11-16 12:08:261597 "socket/fuzzed_datagram_client_socket.cc",
1598 "socket/fuzzed_datagram_client_socket.h",
mmenke99b57172016-04-14 20:44:331599 "socket/fuzzed_socket.cc",
1600 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221601 "socket/fuzzed_socket_factory.cc",
1602 "socket/fuzzed_socket_factory.h",
eroman02b4fe562016-03-04 12:15:161603 ]
csharrisonf30fc95f2016-08-19 21:43:441604 public_deps = [
1605 "//base/test:test_support",
1606 ]
eroman02b4fe562016-03-04 12:15:161607 deps = [
1608 "//base",
1609 "//base:i18n",
mmenke99b57172016-04-14 20:44:331610 "//net",
eroman02b4fe562016-03-04 12:15:161611 ]
1612}
1613
csharrisonaa314dc2016-04-29 20:15:371614fuzzer_test("net_data_job_fuzzer") {
1615 sources = [
1616 "url_request/url_request_data_job_fuzzer.cc",
1617 ]
1618 deps = [
1619 ":net_fuzzer_test_support",
1620 ":test_support",
1621 "//base",
1622 "//net",
1623 ]
1624}
1625
mmenke5552a6a2016-03-28 23:11:591626fuzzer_test("net_mime_sniffer_fuzzer") {
1627 sources = [
1628 "base/mime_sniffer_fuzzer.cc",
1629 ]
1630 deps = [
1631 ":net_fuzzer_test_support",
1632 "//base",
1633 "//net",
1634 ]
mmoroz4a561d32016-07-07 17:45:121635 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591636}
1637
mmoroz565e8df22016-03-04 18:17:201638fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301639 sources = [
1640 "proxy/parse_proxy_list_pac_fuzzer.cc",
1641 ]
1642 deps = [
eroman02b4fe562016-03-04 12:15:161643 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301644 "//net",
1645 ]
1646}
1647
mmoroz565e8df22016-03-04 18:17:201648fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301649 sources = [
1650 "proxy/parse_proxy_list_fuzzer.cc",
1651 ]
1652 deps = [
eroman02b4fe562016-03-04 12:15:161653 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301654 "//net",
1655 ]
1656}
1657
mmoroz565e8df22016-03-04 18:17:201658fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301659 sources = [
1660 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1661 ]
1662 deps = [
eroman02b4fe562016-03-04 12:15:161663 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301664 "//net",
1665 ]
1666}
1667
mmoroz565e8df22016-03-04 18:17:201668fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301669 sources = [
1670 "proxy/parse_proxy_rules_fuzzer.cc",
1671 ]
1672 deps = [
eroman02b4fe562016-03-04 12:15:161673 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301674 "//net",
1675 ]
metzman31db75e2016-08-03 22:33:271676 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301677}
1678
mmoroz565e8df22016-03-04 18:17:201679fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301680 sources = [
1681 "base/parse_data_url_fuzzer.cc",
1682 ]
1683 deps = [
eroman02b4fe562016-03-04 12:15:161684 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301685 "//base",
1686 "//net",
1687 ]
mmoroz4a561d32016-07-07 17:45:121688 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301689}
1690
mmoroz565e8df22016-03-04 18:17:201691fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301692 sources = [
1693 "base/parse_ip_pattern_fuzzer.cc",
1694 ]
1695 deps = [
eroman02b4fe562016-03-04 12:15:161696 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301697 "//net",
1698 ]
1699}
1700
mmoroz565e8df22016-03-04 18:17:201701fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301702 sources = [
1703 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1704 ]
1705 deps = [
eroman02b4fe562016-03-04 12:15:161706 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301707 "//base",
eromane6264fd2016-03-02 22:46:301708 "//net",
1709 ]
mmoroz4a561d32016-07-07 17:45:121710 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301711}
1712
mattmafe43b82016-04-28 20:40:541713fuzzer_test("net_cert_verify_name_match_fuzzer") {
1714 sources = [
1715 "cert/internal/verify_name_match_fuzzer.cc",
1716 ]
1717 deps = [
1718 ":net_fuzzer_test_support",
1719 "//base",
1720 "//net",
1721 ]
1722}
1723
mattm2c637da42016-04-28 02:55:591724fuzzer_test("net_cert_normalize_name_fuzzer") {
1725 sources = [
1726 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1727 ]
1728 deps = [
1729 "//base",
1730 "//net",
1731 ]
1732}
1733
mattmafe43b82016-04-28 20:40:541734fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1735 sources = [
1736 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1737 ]
1738 deps = [
1739 ":net_fuzzer_test_support",
1740 "//base",
1741 "//net",
1742 ]
1743}
1744
nharper85d3b6f2016-04-28 20:58:191745fuzzer_test("net_cert_parse_certificate_fuzzer") {
1746 sources = [
1747 "cert/internal/parse_certificate_fuzzer.cc",
1748 ]
1749 deps = [
1750 "//base",
1751 "//net",
1752 ]
1753}
1754
mmoroz565e8df22016-03-04 18:17:201755fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301756 sources = [
1757 "cookies/parse_cookie_line_fuzzer.cc",
1758 ]
1759 deps = [
eroman02b4fe562016-03-04 12:15:161760 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301761 "//net",
1762 ]
1763}
1764
mmoroz565e8df22016-03-04 18:17:201765fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021766 sources = [
1767 "dns/dns_record_fuzzer.cc",
1768 ]
1769 deps = [
eroman02b4fe562016-03-04 12:15:161770 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021771 "//base",
1772 "//net",
1773 ]
mmoroz4a561d32016-07-07 17:45:121774 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021775}
1776
zhongyi273af9f2016-04-28 18:46:341777fuzzer_test("net_dns_hosts_parse_fuzzer") {
1778 sources = [
1779 "dns/dns_hosts_parse_fuzzer.cc",
1780 ]
1781 deps = [
1782 ":net_fuzzer_test_support",
1783 "//base",
1784 "//net",
1785 ]
mmoroz4a561d32016-07-07 17:45:121786 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341787}
1788
mmenke91c17162016-06-02 16:03:231789fuzzer_test("net_host_resolver_impl_fuzzer") {
1790 sources = [
1791 "dns/fuzzed_host_resolver.cc",
1792 "dns/fuzzed_host_resolver.h",
1793 "dns/host_resolver_impl_fuzzer.cc",
1794 ]
1795 deps = [
1796 ":net_fuzzer_test_support",
1797 ":test_support",
1798 "//base",
1799 "//net",
1800 ]
mmoroz4a561d32016-07-07 17:45:121801 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231802}
1803
mmenke44e8e9c2016-03-29 18:38:571804fuzzer_test("net_http_stream_parser_fuzzer") {
1805 sources = [
1806 "http/http_stream_parser_fuzzer.cc",
1807 ]
1808 deps = [
1809 ":net_fuzzer_test_support",
1810 ":test_support",
1811 "//base",
1812 "//net",
1813 ]
mmoroz4a561d32016-07-07 17:45:121814 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571815}
1816
xunjielid5ffeaf2016-11-01 15:22:001817if (!disable_brotli_filter) {
1818 fuzzer_test("net_brotli_source_stream_fuzzer") {
1819 sources = [
1820 "filter/brotli_source_stream_fuzzer.cc",
1821 ]
1822 deps = [
1823 ":net_fuzzer_test_support",
1824 ":test_support",
1825 "//base",
1826 "//net",
1827 ]
1828 }
1829}
1830
xunjieli75837332016-10-31 16:51:261831fuzzer_test("net_gzip_source_stream_fuzzer") {
1832 sources = [
1833 "filter/gzip_source_stream_fuzzer.cc",
1834 ]
1835 deps = [
1836 ":net_fuzzer_test_support",
1837 ":test_support",
1838 "//base",
1839 "//net",
1840 ]
1841}
1842
mmoroz565e8df22016-03-04 18:17:201843fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021844 sources = [
1845 "ftp/ftp_ctrl_response_fuzzer.cc",
1846 ]
1847 deps = [
eroman02b4fe562016-03-04 12:15:161848 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021849 "//base",
1850 "//net",
1851 ]
1852}
1853
mmoroz565e8df22016-03-04 18:17:201854fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021855 sources = [
1856 "ftp/ftp_directory_listing_fuzzer.cc",
1857 ]
1858 deps = [
eroman02b4fe562016-03-04 12:15:161859 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021860 "//base",
eromanfe8659e2016-03-02 23:47:021861 "//net",
1862 ]
1863}
1864
mmoroz565e8df22016-03-04 18:17:201865fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021866 sources = [
1867 "base/unescape_url_component_fuzzer.cc",
1868 ]
1869 deps = [
eroman02b4fe562016-03-04 12:15:161870 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021871 "//base",
1872 "//net",
1873 ]
mmoroz34eb0082016-03-11 14:32:011874 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331875 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021876}
1877
ricea7b870e72016-09-01 04:41:041878fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1879 sources = [
1880 "websockets/websocket_deflate_stream_fuzzer.cc",
1881 ]
1882 deps = [
1883 ":net_fuzzer_test_support",
1884 "//net",
1885 ]
1886 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1887 libfuzzer_options = [ "max_len=512" ]
1888}
1889
riceaf9dcc092016-09-13 12:42:001890fuzzer_test("net_websocket_extension_parser_fuzzer") {
1891 sources = [
1892 "websockets/websocket_extension_parser_fuzzer.cc",
1893 ]
1894 deps = [
1895 ":net_fuzzer_test_support",
1896 "//net",
1897 ]
1898 dict = "data/fuzzer_dictionaries/net_websocket_extension_parser_fuzzer.dict"
1899 libfuzzer_options = [ "max_len = 256" ]
1900}
1901
mmoroz565e8df22016-03-04 18:17:201902fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021903 sources = [
1904 "websockets/websocket_frame_parser_fuzzer.cc",
1905 ]
1906 deps = [
eroman02b4fe562016-03-04 12:15:161907 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021908 "//net",
1909 ]
mmoroz4a561d32016-07-07 17:45:121910 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071911 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021912}
1913
mmoroz565e8df22016-03-04 18:17:201914fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021915 sources = [
1916 "http/http_chunked_decoder_fuzzer.cc",
1917 ]
1918 deps = [
eroman02b4fe562016-03-04 12:15:161919 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021920 "//net",
1921 ]
1922}
1923
mmenke8e9314bc2016-04-15 21:45:021924fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1925 sources = [
1926 "http/http_proxy_client_socket_fuzzer.cc",
1927 ]
1928 deps = [
1929 ":net_fuzzer_test_support",
1930 ":test_support",
1931 "//base",
1932 "//net",
1933 ]
mmoroz4a561d32016-07-07 17:45:121934 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021935}
1936
mmoroz9299ef9b2016-09-01 17:37:091937fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1938 sources = [
1939 "base/parse_url_hostname_to_address_fuzzer.cc",
1940 ]
1941 deps = [
1942 ":net_fuzzer_test_support",
1943 "//base",
1944 "//net",
1945 ]
1946 libfuzzer_options = [ "max_len=512" ]
1947 seed_corpus = "data/fuzzer_data/hostnames/"
1948}
1949
mmoroz565e8df22016-03-04 18:17:201950fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021951 sources = [
rchd4db7c152016-07-29 21:58:121952 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021953 ]
1954 deps = [
eroman02b4fe562016-03-04 12:15:161955 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021956 "//base",
1957 "//net",
1958 ]
1959}
mmenke99b57172016-04-14 20:44:331960
1961fuzzer_test("net_socks_client_socket_fuzzer") {
1962 sources = [
1963 "socket/socks_client_socket_fuzzer.cc",
1964 ]
1965 deps = [
1966 ":net_fuzzer_test_support",
1967 ":test_support",
1968 "//base",
1969 "//net",
1970 ]
1971}
1972
1973fuzzer_test("net_socks5_client_socket_fuzzer") {
1974 sources = [
1975 "socket/socks5_client_socket_fuzzer.cc",
1976 ]
1977 deps = [
1978 ":net_fuzzer_test_support",
1979 ":test_support",
1980 "//base",
1981 "//net",
1982 ]
1983}
mmenkec951d412016-04-28 19:05:221984
1985fuzzer_test("net_url_request_fuzzer") {
1986 sources = [
1987 "url_request/url_request_fuzzer.cc",
1988 ]
1989 deps = [
1990 ":net_fuzzer_test_support",
1991 ":test_support",
1992 "//base",
1993 "//net",
1994 ]
mmoroz4a561d32016-07-07 17:45:121995 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:221996}
csharrison88d2a612016-09-09 16:58:541997
1998fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
1999 sources = [
2000 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2001 ]
2002 deps = [
2003 ":net_fuzzer_test_support",
2004 ":test_support",
2005 "//base",
2006 "//net",
2007 ]
2008}
martijndb9ad4f2016-10-26 18:34:092009
2010fuzzer_test("net_http_security_headers_hsts_fuzzer") {
2011 sources = [
2012 "http/http_security_headers_hsts_fuzzer.cc",
2013 ]
2014 deps = [
2015 "//base",
2016 "//net",
2017 ]
2018 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2019}
2020
2021fuzzer_test("net_http_security_headers_hpkp_fuzzer") {
2022 sources = [
2023 "http/http_security_headers_hpkp_fuzzer.cc",
2024 ]
2025 deps = [
martijn15387afb2016-10-27 22:21:042026 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092027 "//base",
2028 "//net",
2029 "//url",
2030 ]
2031 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2032}
2033
2034fuzzer_test("net_http_security_headers_hpkp_report_only_fuzzer") {
2035 sources = [
2036 "http/http_security_headers_hpkp_report_only_fuzzer.cc",
2037 ]
2038 deps = [
martijn15387afb2016-10-27 22:21:042039 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092040 "//base",
2041 "//net",
2042 "//url",
2043 ]
2044 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2045}