blob: abd9c740dfe2d6957389f2b7cb590f8e97f4ab90 [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",
mattm4abbcdbf2016-11-30 20:23:13185 "cert/internal/cert_issuer_source_nss.cc",
186 "cert/internal/cert_issuer_source_nss.h",
mattm9c63d442016-09-03 00:45:51187 "cert/internal/trust_store_nss.cc",
188 "cert/internal/trust_store_nss.h",
kapishnikovabe280e2016-04-14 19:07:16189 "cert/nss_cert_database.cc",
190 "cert/nss_cert_database.h",
191 "cert/x509_certificate_nss.cc",
192 "ssl/client_cert_store_nss.cc",
193 "ssl/client_cert_store_nss.h",
194 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
195 "third_party/mozilla_security_manager/nsKeygenHandler.h",
196 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
197 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
198 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
199 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
200 ]
201 if (is_chromeos) {
202 # These were already removed on non-ChromeOS.
203 sources -= [
204 "cert/nss_cert_database_chromeos.cc",
205 "cert/nss_cert_database_chromeos.h",
206 "cert/nss_profile_filter_chromeos.cc",
207 "cert/nss_profile_filter_chromeos.h",
208 ]
209 }
210 sources -= [
211 "ssl/client_key_store.cc",
212 "ssl/client_key_store.h",
213 "ssl/ssl_platform_key_nss.cc",
214 ]
svaldez2135be52016-04-20 16:34:53215 } else {
davidben8d569f52016-07-29 16:03:18216 sources += [
217 "third_party/nss/ssl/cmpcert.cc",
218 "third_party/nss/ssl/cmpcert.h",
219 ]
kapishnikovabe280e2016-04-14 19:07:16220 }
221
svaldez2135be52016-04-20 16:34:53222 if (!use_nss_certs) {
kapishnikovabe280e2016-04-14 19:07:16223 # These files are part of the partial implementation of NSS for
224 # cert verification, so keep them in that case.
225 sources -= [
226 "cert/cert_verify_proc_nss.cc",
227 "cert/cert_verify_proc_nss.h",
228 "cert/test_root_certs_nss.cc",
svaldez2135be52016-04-20 16:34:53229 "cert/x509_util_nss.cc",
kapishnikovabe280e2016-04-14 19:07:16230 "cert_net/nss_ocsp.cc",
231 "cert_net/nss_ocsp.h",
232 ]
233 }
234
kapishnikovabe280e2016-04-14 19:07:16235 if (is_chromecast && use_nss_certs) {
236 sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
237 sources -= [ "ssl/ssl_platform_key_nss.cc" ]
238 }
239
240 if (!enable_mdns) {
241 sources -= [
242 "dns/mdns_cache.cc",
243 "dns/mdns_cache.h",
244 "dns/mdns_client.cc",
245 "dns/mdns_client.h",
246 "dns/mdns_client_impl.cc",
247 "dns/mdns_client_impl.h",
kapishnikovabe280e2016-04-14 19:07:16248 ]
249 }
250
251 if (is_win) {
252 sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
253 } else { # !is_win
254 sources -= [
255 "base/winsock_init.cc",
256 "base/winsock_init.h",
257 "base/winsock_util.cc",
258 "base/winsock_util.h",
259 "proxy/proxy_resolver_winhttp.cc",
260 "proxy/proxy_resolver_winhttp.h",
261 ]
262 }
263
264 if (is_ios) {
265 # Add back some sources that were otherwise filtered out.
266 # iOS needs some Mac files.
267 net_unfiltered_sources += [
268 "base/mac/url_conversions.h",
269 "base/mac/url_conversions.mm",
270 "base/network_change_notifier_mac.cc",
271 "base/network_config_watcher_mac.cc",
272 "base/network_interfaces_mac.cc",
273 "base/network_interfaces_mac.h",
274 "base/platform_mime_util_mac.mm",
svaldez2135be52016-04-20 16:34:53275 "cert/test_root_certs_mac.cc",
kapishnikovabe280e2016-04-14 19:07:16276 "proxy/proxy_resolver_mac.cc",
277 "proxy/proxy_server_mac.cc",
278 ]
279
280 sources -= [ "disk_cache/blockfile/file_posix.cc" ]
281 }
282
kapishnikovabe280e2016-04-14 19:07:16283 if (is_ios || is_mac) {
284 sources += gypi_values.net_base_mac_ios_sources
285 }
286
287 if (is_android) {
288 deps += [ ":net_jni_headers" ]
289
290 # Add some Linux sources that were excluded by the filter, but which
291 # are needed.
292 net_unfiltered_sources += [
293 "base/address_tracker_linux.cc",
294 "base/address_tracker_linux.h",
295 "base/network_interfaces_linux.cc",
296 "base/network_interfaces_linux.h",
297 "base/platform_mime_util_linux.cc",
298 ]
299 }
300 } else {
301 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
302 }
xunjieli905496a2015-08-31 15:51:17303
304 # Add back some sources that were otherwise filtered out.
305 set_sources_assignment_filter([])
kapishnikovabe280e2016-04-14 19:07:16306 sources += net_unfiltered_sources
xunjieli905496a2015-08-31 15:51:17307 set_sources_assignment_filter(sources_assignment_filter)
308
309 cflags = []
kapishnikovabe280e2016-04-14 19:07:16310 configs += net_configs
xunjieli905496a2015-08-31 15:51:17311
brettwa1228ebb2016-10-28 03:51:34312 public_deps += [
313 ":features",
314 "//url",
315 ]
[email protected]4625ade2014-04-15 19:26:44316
317 if (is_mac) {
[email protected]4625ade2014-04-15 19:26:44318 libs = [
rsesek02aa51c2016-05-11 02:13:57319 "CFNetwork.framework",
320 "CoreServices.framework",
[email protected]ab9ce6e2014-04-17 20:33:19321 "Foundation.framework",
322 "Security.framework",
323 "SystemConfiguration.framework",
324 "resolv",
[email protected]4625ade2014-04-15 19:26:44325 ]
326 }
327
328 if (is_ios) {
[email protected]4625ade2014-04-15 19:26:44329 libs = [
[email protected]ab9ce6e2014-04-17 20:33:19330 "CFNetwork.framework",
331 "MobileCoreServices.framework",
332 "Security.framework",
333 "SystemConfiguration.framework",
334 "resolv",
[email protected]4625ade2014-04-15 19:26:44335 ]
xunjieli06d93982015-08-27 17:13:02336 }
xunjieli4c8c6922015-08-27 16:02:40337
jam5332a632016-04-01 22:36:05338 if (is_win) {
339 libs = [
340 "crypt32.lib",
341 "dhcpcsvc.lib",
342 "iphlpapi.lib",
davidben62399192016-09-13 01:54:22343 "ncrypt.lib",
jam5332a632016-04-01 22:36:05344 "rpcrt4.lib",
345 "secur32.lib",
346 "urlmon.lib",
347 "winhttp.lib",
348 ]
349 }
350
sergeyu99d83f92015-09-14 23:03:33351 if (!is_nacl) {
352 if (!disable_file_support) {
353 sources += gypi_values.net_file_support_sources
354 }
xunjieli06d93982015-08-27 17:13:02355
sergeyu99d83f92015-09-14 23:03:33356 if (!disable_ftp_support) {
357 sources += gypi_values.net_ftp_support_sources
358 }
xunjieli905496a2015-08-31 15:51:17359
sergeyu99d83f92015-09-14 23:03:33360 if (enable_websockets) {
361 sources += gypi_values.net_websockets_sources
362 }
xunjieli905496a2015-08-31 15:51:17363
sergeyu99d83f92015-09-14 23:03:33364 # ICU support.
kapishnikovabe280e2016-04-14 19:07:16365 if (use_platform_icu_alternatives) {
366 if (is_android) {
367 # Use ICU alternative on Android.
torned8b7d9252016-08-04 19:41:45368 sources += [ "base/net_string_util_icu_alternatives_android.cc" ]
kapishnikovabe280e2016-04-14 19:07:16369 deps += [ ":net_jni_headers" ]
370 } else if (is_ios) {
371 # Use ICU alternative on iOS.
372 sources += [ "base/net_string_util_icu_alternatives_ios.mm" ]
373 } else {
374 assert(false,
375 "ICU alternative is not implemented for platform: " + target_os)
376 }
377 } else {
378 # Use ICU.
379 deps += [
380 "//base:i18n",
381 "//third_party/icu",
382 ]
383 sources += [
384 "base/filename_util_icu.cc",
385 "base/net_string_util_icu.cc",
386 ]
387 }
eustasfbec9132015-12-30 14:56:51388
389 # Brotli support.
kapishnikovabe280e2016-04-14 19:07:16390 if (!disable_brotli_filter) {
xunjieli084a9292016-09-23 18:15:04391 sources += [ "filter/brotli_source_stream.cc" ]
kapishnikovabe280e2016-04-14 19:07:16392 deps += [ "//third_party/brotli" ]
393 } else {
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",
xunjieli6cc8b84b2016-11-08 15:23:39521 "filter/mock_source_stream.cc",
522 "filter/mock_source_stream.h",
zhongyi3c412982016-06-18 00:34:30523 "http/http_stream_factory_test_util.cc",
524 "http/http_stream_factory_test_util.h",
[email protected]8a3f8242014-06-05 18:05:12525 "http/http_transaction_test_util.cc",
526 "http/http_transaction_test_util.h",
vishal.b62985ca92015-04-17 08:45:51527 "log/test_net_log.cc",
528 "log/test_net_log.h",
mmenke43758e62015-05-04 21:09:46529 "log/test_net_log_entry.cc",
530 "log/test_net_log_entry.h",
mmenke0034c542015-05-05 22:34:59531 "log/test_net_log_util.cc",
mmenke43758e62015-05-04 21:09:46532 "log/test_net_log_util.h",
tbansal785a6ab2016-10-10 20:19:28533 "nqe/network_quality_estimator_test_util.cc",
534 "nqe/network_quality_estimator_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31535 "proxy/mock_proxy_resolver.cc",
536 "proxy/mock_proxy_resolver.h",
537 "proxy/mock_proxy_script_fetcher.cc",
538 "proxy/mock_proxy_script_fetcher.h",
539 "proxy/proxy_config_service_common_unittest.cc",
540 "proxy/proxy_config_service_common_unittest.h",
541 "socket/socket_test_util.cc",
542 "socket/socket_test_util.h",
543 "test/cert_test_util.cc",
544 "test/cert_test_util.h",
[email protected]83e1ae32014-07-18 10:57:07545 "test/cert_test_util_nss.cc",
nharper2e171cf2015-06-01 20:29:23546 "test/channel_id_test_util.cc",
547 "test/channel_id_test_util.h",
[email protected]8603c5de2014-04-16 20:34:31548 "test/ct_test_util.cc",
549 "test/ct_test_util.h",
svaldez7d25c562015-10-30 19:09:45550 "test/embedded_test_server/default_handlers.cc",
551 "test/embedded_test_server/default_handlers.h",
[email protected]8603c5de2014-04-16 20:34:31552 "test/embedded_test_server/embedded_test_server.cc",
553 "test/embedded_test_server/embedded_test_server.h",
554 "test/embedded_test_server/http_connection.cc",
555 "test/embedded_test_server/http_connection.h",
556 "test/embedded_test_server/http_request.cc",
557 "test/embedded_test_server/http_request.h",
558 "test/embedded_test_server/http_response.cc",
559 "test/embedded_test_server/http_response.h",
svaldez6e7e82a22015-10-28 19:39:53560 "test/embedded_test_server/request_handler_util.cc",
561 "test/embedded_test_server/request_handler_util.h",
sammc6ac3fe52015-02-25 06:00:28562 "test/event_waiter.h",
johnme36ae5802016-05-10 15:46:24563 "test/gtest_util.h",
[email protected]8603c5de2014-04-16 20:34:31564 "test/net_test_suite.cc",
565 "test/net_test_suite.h",
566 "test/python_utils.cc",
567 "test/python_utils.h",
johnme36ae5802016-05-10 15:46:24568 "test/scoped_disable_exit_on_dfatal.cc",
569 "test/scoped_disable_exit_on_dfatal.h",
brettw6315e032015-11-27 18:38:36570 "test/test_certificate_data.h",
rsleevia69c79a2016-06-22 03:28:43571 "test/test_data_directory.cc",
572 "test/test_data_directory.h",
sherouk51b4b098b2015-08-10 09:00:43573 "test/url_request/ssl_certificate_error_job.cc",
574 "test/url_request/ssl_certificate_error_job.h",
Brett Wilson32ce17a2014-11-10 17:45:30575 "test/url_request/url_request_failed_job.cc",
576 "test/url_request/url_request_failed_job.h",
xunjieli5d1f9892016-05-18 20:44:34577 "test/url_request/url_request_hanging_read_job.cc",
578 "test/url_request/url_request_hanging_read_job.h",
mef3e826cf2014-12-13 18:40:40579 "test/url_request/url_request_mock_data_job.cc",
580 "test/url_request/url_request_mock_data_job.h",
jam8e45cd72015-01-20 16:33:44581 "test/url_request/url_request_slow_download_job.cc",
582 "test/url_request/url_request_slow_download_job.h",
[email protected]8603c5de2014-04-16 20:34:31583 "url_request/test_url_fetcher_factory.cc",
584 "url_request/test_url_fetcher_factory.h",
585 "url_request/url_request_test_util.cc",
586 "url_request/url_request_test_util.h",
587 ]
sherouk3eee4a82015-09-01 10:42:33588 if (!is_ios) {
589 sources += [
590 "test/spawned_test_server/base_test_server.cc",
591 "test/spawned_test_server/base_test_server.h",
592 "test/spawned_test_server/local_test_server.cc",
593 "test/spawned_test_server/local_test_server.h",
594 "test/spawned_test_server/local_test_server_posix.cc",
595 "test/spawned_test_server/local_test_server_win.cc",
596 "test/spawned_test_server/spawned_test_server.h",
597 ]
598 }
[email protected]8603c5de2014-04-16 20:34:31599
brettwbc8b2a22015-07-28 18:24:42600 configs += [
601 "//build/config:precompiled_headers",
602
603 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
604 "//build/config/compiler:no_size_t_to_int_warning",
605 ]
[email protected]8603c5de2014-04-16 20:34:31606
Brett Wilsone53895272014-09-23 23:41:46607 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31608 "//base",
609 "//base/test:test_support",
[email protected]22fe91d2014-08-12 17:07:12610 "//crypto",
[email protected]59ff2d42014-04-22 22:25:23611 "//net",
[email protected]8603c5de2014-04-16 20:34:31612 "//net/tools/tld_cleanup",
613 "//testing/gmock",
614 "//testing/gtest",
615 "//url",
616 ]
617
rsesek7d4ab4bc2016-07-22 17:35:13618 deps = []
sdefresne04f91142016-04-21 08:41:59619
jbudorick944eb922016-06-20 15:38:30620 data = [
621 "data/",
622 ]
623
rsesek7d4ab4bc2016-07-22 17:35:13624 if (is_ios) {
625 deps += [ ":test_support_bundle_data" ]
626 } else {
jamb533b7e2015-03-04 17:12:05627 public_deps += [ "//third_party/protobuf:py_proto" ]
628 }
629
svaldez2135be52016-04-20 16:34:53630 if (use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24631 public_deps += [ "//crypto:platform" ]
[email protected]8603c5de2014-04-16 20:34:31632 }
633
sherouk3eee4a82015-09-01 10:42:33634 if (is_android) {
635 sources += [
[email protected]8603c5de2014-04-16 20:34:31636 "test/spawned_test_server/remote_test_server.cc",
637 "test/spawned_test_server/remote_test_server.h",
638 "test/spawned_test_server/spawner_communicator.cc",
639 "test/spawned_test_server/spawner_communicator.h",
640 ]
641 }
642
643 if (use_v8_in_net) {
Brett Wilsone53895272014-09-23 23:41:46644 public_deps += [ ":net_with_v8" ]
[email protected]8603c5de2014-04-16 20:34:31645 }
646
647 if (!enable_mdns) {
648 sources -= [
649 "dns/mock_mdns_socket_factory.cc",
650 "dns/mock_mdns_socket_factory.h",
651 ]
652 }
653
davidben15d69d482014-09-29 18:24:08654 if (!use_nss_certs) {
scottmg34fb7e52014-12-03 23:27:24655 sources -= [ "test/cert_test_util_nss.cc" ]
[email protected]83e1ae32014-07-18 10:57:07656 }
xunjielia6888202015-04-14 21:34:25657
658 if (!disable_file_support) {
659 sources += [
660 "test/url_request/url_request_mock_http_job.cc",
661 "test/url_request/url_request_mock_http_job.h",
662 "url_request/test_url_request_interceptor.cc",
663 "url_request/test_url_request_interceptor.h",
664 ]
665 }
[email protected]8603c5de2014-04-16 20:34:31666}
667
668if (use_v8_in_net) {
669 component("net_with_v8") {
670 sources = [
671 "proxy/proxy_resolver_v8.cc",
672 "proxy/proxy_resolver_v8.h",
673 "proxy/proxy_resolver_v8_tracing.cc",
674 "proxy/proxy_resolver_v8_tracing.h",
sammcf2d1ea02015-06-29 02:58:47675 "proxy/proxy_resolver_v8_tracing_wrapper.cc",
676 "proxy/proxy_resolver_v8_tracing_wrapper.h",
[email protected]8603c5de2014-04-16 20:34:31677 "proxy/proxy_service_v8.cc",
678 "proxy/proxy_service_v8.h",
679 ]
680
681 defines = [ "NET_IMPLEMENTATION" ]
dprankea22b0732015-10-21 21:15:11682
[email protected]8603c5de2014-04-16 20:34:31683 configs += [
brettwd1c719a2015-02-19 23:17:04684 "//build/config/compiler:no_size_t_to_int_warning",
[email protected]8603c5de2014-04-16 20:34:31685 "//build/config/compiler:wexit_time_destructors",
dprankea22b0732015-10-21 21:15:11686 "//v8:external_startup_data",
[email protected]8603c5de2014-04-16 20:34:31687 ]
688
Brett Wilsone53895272014-09-23 23:41:46689 public_deps = [
[email protected]8603c5de2014-04-16 20:34:31690 ":net",
Brett Wilsone53895272014-09-23 23:41:46691 ]
692 deps = [
[email protected]8603c5de2014-04-16 20:34:31693 "//base",
694 "//gin",
695 "//url",
696 "//v8",
697 ]
698 }
699}
700
amistry7e6ebfdc82015-02-13 04:19:11701if (use_v8_in_net && !is_android) {
702 source_set("net_browser_services") {
703 sources = [
704 "dns/mojo_host_resolver_impl.cc",
705 "dns/mojo_host_resolver_impl.h",
amistry6e1ed1b2015-03-12 05:24:01706 "proxy/in_process_mojo_proxy_resolver_factory.cc",
707 "proxy/in_process_mojo_proxy_resolver_factory.h",
sammc1d5df4d2015-05-05 05:06:17708 "proxy/mojo_proxy_resolver_factory.h",
eromandcacef22015-06-01 19:36:35709 "proxy/proxy_resolver_factory_mojo.cc",
710 "proxy/proxy_resolver_factory_mojo.h",
amistry6e1ed1b2015-03-12 05:24:01711 "proxy/proxy_service_mojo.cc",
712 "proxy/proxy_service_mojo.h",
amistry7e6ebfdc82015-02-13 04:19:11713 ]
714
715 public_deps = [
tfarina8ac4d17f2015-12-16 02:11:11716 ":net_with_v8",
brettwbc44c0a92015-02-20 22:30:39717 "//base",
rockot85dce0862015-11-13 01:33:59718 "//mojo/public/cpp/bindings",
amistry7e6ebfdc82015-02-13 04:19:11719 "//net/interfaces",
amistry6e1ed1b2015-03-12 05:24:01720
721 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we need
722 # this dependency since in_process_mojo_proxy_resolver_factory creates
723 # the utility process side Mojo services in the browser process.
724 # Ultimately, this will go away when we only support out-of-process.
725 ":net_utility_services",
amistry7e6ebfdc82015-02-13 04:19:11726 ]
727 }
728
sammc5403aa1d2015-02-25 04:59:21729 source_set("net_utility_services") {
730 sources = [
sammc6ac3fe52015-02-25 06:00:28731 "dns/host_resolver_mojo.cc",
732 "dns/host_resolver_mojo.h",
sammc352f7492015-02-25 09:45:24733 "proxy/mojo_proxy_resolver_factory_impl.cc",
734 "proxy/mojo_proxy_resolver_factory_impl.h",
sammc5403aa1d2015-02-25 04:59:21735 "proxy/mojo_proxy_resolver_impl.cc",
736 "proxy/mojo_proxy_resolver_impl.h",
sammca3242c92015-07-10 02:38:51737 "proxy/mojo_proxy_resolver_v8_tracing_bindings.h",
sammc5403aa1d2015-02-25 04:59:21738 ]
739
rockot9509ec82015-04-14 02:50:56740 deps = [
741 ":net_with_v8",
tfarina8ac4d17f2015-12-16 02:11:11742 "//base",
rockot9509ec82015-04-14 02:50:56743 ]
744
sammc5403aa1d2015-02-25 04:59:21745 public_deps = [
sammc5403aa1d2015-02-25 04:59:21746 ":net",
rockot85dce0862015-11-13 01:33:59747 "//mojo/public/cpp/bindings",
sammc5403aa1d2015-02-25 04:59:21748 "//net/interfaces",
sammc5403aa1d2015-02-25 04:59:21749 ]
750 }
amistry7e6ebfdc82015-02-13 04:19:11751}
752
[email protected]8603c5de2014-04-16 20:34:31753if (!is_ios && !is_android) {
mattm36d89682016-06-08 22:22:40754 executable("cert_verify_tool") {
755 testonly = true
756 sources = [
757 "tools/cert_verify_tool/cert_verify_tool.cc",
758 "tools/cert_verify_tool/cert_verify_tool_util.cc",
759 "tools/cert_verify_tool/cert_verify_tool_util.h",
760 "tools/cert_verify_tool/verify_using_cert_verify_proc.cc",
761 "tools/cert_verify_tool/verify_using_cert_verify_proc.h",
mattm3c66edc2016-07-13 22:40:42762 "tools/cert_verify_tool/verify_using_path_builder.cc",
763 "tools/cert_verify_tool/verify_using_path_builder.h",
mattm36d89682016-06-08 22:22:40764 ]
765
766 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
767 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
768 deps = [
769 ":net",
770 ":test_support",
771 "//base",
772 "//build/config/sanitizers:deps",
773 "//build/win:default_exe_manifest",
774 ]
775 }
776
[email protected]8603c5de2014-04-16 20:34:31777 executable("crash_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24778 testonly = true
scottmg34fb7e52014-12-03 23:27:24779 sources = [
780 "tools/crash_cache/crash_cache.cc",
781 ]
dpranke43276212015-02-20 02:55:19782
brettwd1c719a2015-02-19 23:17:04783 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
784 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31785 deps = [
786 ":net",
[email protected]b2b2bf52014-05-28 20:26:57787 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31788 "//base",
brettwba7a73d2015-08-31 22:17:39789 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07790 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31791 ]
792 }
793
794 executable("crl_set_dump") {
Brett Wilson8f80ad0b2014-09-08 19:50:24795 testonly = true
scottmg34fb7e52014-12-03 23:27:24796 sources = [
797 "tools/crl_set_dump/crl_set_dump.cc",
798 ]
dpranke43276212015-02-20 02:55:19799
brettwd1c719a2015-02-19 23:17:04800 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
801 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31802 deps = [
803 ":net",
804 "//base",
brettwba7a73d2015-08-31 22:17:39805 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07806 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31807 ]
808 }
809
810 executable("dns_fuzz_stub") {
Brett Wilson8f80ad0b2014-09-08 19:50:24811 testonly = true
scottmg34fb7e52014-12-03 23:27:24812 sources = [
813 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
814 ]
dpranke43276212015-02-20 02:55:19815
brettwd1c719a2015-02-19 23:17:04816 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
817 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31818 deps = [
819 ":net",
820 "//base",
brettwba7a73d2015-08-31 22:17:39821 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07822 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31823 ]
824 }
825
826 executable("gdig") {
Brett Wilson8f80ad0b2014-09-08 19:50:24827 testonly = true
[email protected]8603c5de2014-04-16 20:34:31828 sources = [
829 "tools/gdig/file_net_log.cc",
830 "tools/gdig/gdig.cc",
831 ]
832 deps = [
833 ":net",
834 "//base",
brettwba7a73d2015-08-31 22:17:39835 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07836 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31837 ]
838 }
839
840 executable("get_server_time") {
Brett Wilson8f80ad0b2014-09-08 19:50:24841 testonly = true
scottmg34fb7e52014-12-03 23:27:24842 sources = [
843 "tools/get_server_time/get_server_time.cc",
844 ]
dpranke43276212015-02-20 02:55:19845
brettwd1c719a2015-02-19 23:17:04846 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
847 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31848 deps = [
849 ":net",
850 "//base",
851 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39852 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07853 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31854 "//url",
855 ]
856 }
857
rockot9c67e5f2015-03-12 20:01:21858 executable("hpack_example_generator") {
859 testonly = true
860 sources = [
861 "spdy/fuzzing/hpack_example_generator.cc",
862 ]
863
864 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
865 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
866 deps = [
rockot9c67e5f2015-03-12 20:01:21867 ":net",
brettwba7a73d2015-08-31 22:17:39868 "//base",
869 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07870 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21871 ]
872 }
873
874 executable("hpack_fuzz_mutator") {
875 testonly = true
876 sources = [
877 "spdy/fuzzing/hpack_fuzz_mutator.cc",
878 ]
879
880 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
881 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
882 deps = [
rockot9c67e5f2015-03-12 20:01:21883 ":net",
brettwba7a73d2015-08-31 22:17:39884 "//base",
885 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07886 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21887 ]
888 }
889
890 executable("hpack_fuzz_wrapper") {
891 testonly = true
892 sources = [
893 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
894 ]
895
896 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
897 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
898 deps = [
rockot9c67e5f2015-03-12 20:01:21899 ":net",
brettwba7a73d2015-08-31 22:17:39900 "//base",
901 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07902 "//build/win:default_exe_manifest",
rockot9c67e5f2015-03-12 20:01:21903 ]
904 }
905
[email protected]8603c5de2014-04-16 20:34:31906 if (use_v8_in_net) {
907 executable("net_watcher") {
Brett Wilson8f80ad0b2014-09-08 19:50:24908 testonly = true
scottmg34fb7e52014-12-03 23:27:24909 sources = [
910 "tools/net_watcher/net_watcher.cc",
911 ]
[email protected]8603c5de2014-04-16 20:34:31912 deps = [
913 ":net",
914 ":net_with_v8",
915 "//base",
brettwba7a73d2015-08-31 22:17:39916 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07917 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31918 ]
[email protected]8603c5de2014-04-16 20:34:31919 }
920 }
921
922 executable("run_testserver") {
Brett Wilson8f80ad0b2014-09-08 19:50:24923 testonly = true
scottmg34fb7e52014-12-03 23:27:24924 sources = [
925 "tools/testserver/run_testserver.cc",
926 ]
[email protected]8603c5de2014-04-16 20:34:31927 deps = [
[email protected]b2b2bf52014-05-28 20:26:57928 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31929 "//base",
930 "//base/test:test_support",
brettwba7a73d2015-08-31 22:17:39931 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07932 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31933 "//testing/gtest",
934 ]
935 }
936
937 executable("stress_cache") {
Brett Wilson8f80ad0b2014-09-08 19:50:24938 testonly = true
scottmg34fb7e52014-12-03 23:27:24939 sources = [
rvargase23fcf652015-03-04 19:59:22940 "tools/stress_cache/stress_cache.cc",
scottmg34fb7e52014-12-03 23:27:24941 ]
dpranke43276212015-02-20 02:55:19942
brettwd1c719a2015-02-19 23:17:04943 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
944 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31945 deps = [
946 ":net",
[email protected]b2b2bf52014-05-28 20:26:57947 ":test_support",
[email protected]8603c5de2014-04-16 20:34:31948 "//base",
brettwba7a73d2015-08-31 22:17:39949 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07950 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31951 ]
952 }
953
954 executable("tld_cleanup") {
scottmg34fb7e52014-12-03 23:27:24955 sources = [
956 "tools/tld_cleanup/tld_cleanup.cc",
957 ]
dpranke43276212015-02-20 02:55:19958
brettwd1c719a2015-02-19 23:17:04959 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
960 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
[email protected]8603c5de2014-04-16 20:34:31961 deps = [
962 "//base",
963 "//base:i18n",
brettwba7a73d2015-08-31 22:17:39964 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07965 "//build/win:default_exe_manifest",
[email protected]8603c5de2014-04-16 20:34:31966 "//net/tools/tld_cleanup",
967 ]
968 }
969}
970
gabadie0774bee2016-05-12 14:02:58971if (is_linux || is_mac) {
gabadie64af64a2016-03-29 16:36:42972 executable("cachetool") {
973 testonly = true
974 sources = [
975 "tools/cachetool/cachetool.cc",
976 ]
977 deps = [
978 ":net",
979 ":test_support",
980 "//base",
981 ]
982 }
983
984 executable("content_decoder_tool") {
985 testonly = true
986 sources = [
gabadie64af64a2016-03-29 16:36:42987 "tools/content_decoder_tool/content_decoder_tool.cc",
xunjielibb2d9f202016-11-01 16:37:27988 "tools/content_decoder_tool/content_decoder_tool.h",
989 "tools/content_decoder_tool/content_decoder_tool_bin.cc",
gabadie64af64a2016-03-29 16:36:42990 ]
991 deps = [
992 ":net",
993 ":test_support",
994 "//base",
995 "//url",
996 ]
997 }
gabadie0774bee2016-05-12 14:02:58998}
gabadie64af64a2016-03-29 16:36:42999
gabadie0774bee2016-05-12 14:02:581000if (is_linux) {
[email protected]8a3f8242014-06-05 18:05:121001 static_library("epoll_server") {
[email protected]8603c5de2014-04-16 20:34:311002 sources = [
1003 "tools/epoll_server/epoll_server.cc",
1004 "tools/epoll_server/epoll_server.h",
1005 ]
1006 deps = [
1007 ":net",
1008 "//base",
1009 ]
1010 }
1011
rch216445c2015-03-27 00:23:281012 source_set("epoll_quic_tools") {
[email protected]8603c5de2014-04-16 20:34:311013 sources = [
1014 "tools/quic/quic_client.cc",
1015 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311016 "tools/quic/quic_default_packet_writer.cc",
1017 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071018 "tools/quic/quic_epoll_alarm_factory.cc",
1019 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311020 "tools/quic/quic_epoll_clock.cc",
1021 "tools/quic/quic_epoll_clock.h",
1022 "tools/quic/quic_epoll_connection_helper.cc",
1023 "tools/quic/quic_epoll_connection_helper.h",
rtennetifb3fa6c2015-03-16 23:04:551024 "tools/quic/quic_packet_reader.cc",
1025 "tools/quic/quic_packet_reader.h",
[email protected]8603c5de2014-04-16 20:34:311026 "tools/quic/quic_packet_writer_wrapper.cc",
1027 "tools/quic/quic_packet_writer_wrapper.h",
1028 "tools/quic/quic_server.cc",
1029 "tools/quic/quic_server.h",
[email protected]8603c5de2014-04-16 20:34:311030 "tools/quic/quic_socket_utils.cc",
1031 "tools/quic/quic_socket_utils.h",
[email protected]8603c5de2014-04-16 20:34:311032 ]
1033 deps = [
[email protected]8603c5de2014-04-16 20:34:311034 ":epoll_server",
1035 ":net",
tfarina8ac4d17f2015-12-16 02:11:111036 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311037 "//base",
1038 "//base/third_party/dynamic_annotations",
1039 "//crypto",
[email protected]edfd0f42014-07-22 18:20:371040 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311041 "//url",
1042 ]
1043 }
1044
rch216445c2015-03-27 00:23:281045 executable("epoll_quic_client") {
scottmg34fb7e52014-12-03 23:27:241046 sources = [
1047 "tools/quic/quic_client_bin.cc",
1048 ]
[email protected]8603c5de2014-04-16 20:34:311049 deps = [
rch216445c2015-03-27 00:23:281050 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281051 ":epoll_server",
rch216445c2015-03-27 00:23:281052 ":net",
1053 ":simple_quic_tools",
1054 "//base",
brettwba7a73d2015-08-31 22:17:391055 "//build/config/sanitizers:deps",
rch216445c2015-03-27 00:23:281056 "//third_party/boringssl",
1057 ]
1058 }
1059
1060 executable("epoll_quic_server") {
1061 sources = [
1062 "tools/quic/quic_server_bin.cc",
1063 ]
1064 deps = [
rch216445c2015-03-27 00:23:281065 ":epoll_quic_tools",
agrieved7a71c882015-11-20 19:53:281066 ":epoll_server",
[email protected]8603c5de2014-04-16 20:34:311067 ":net",
rchda78df5a2015-03-22 05:16:371068 ":simple_quic_tools",
[email protected]8603c5de2014-04-16 20:34:311069 "//base",
brettwba7a73d2015-08-31 22:17:391070 "//build/config/sanitizers:deps",
[email protected]edfd0f42014-07-22 18:20:371071 "//third_party/boringssl",
[email protected]8603c5de2014-04-16 20:34:311072 ]
1073 }
[email protected]8603c5de2014-04-16 20:34:311074}
1075
[email protected]ef0eb442014-05-15 09:32:181076if (is_android) {
1077 generate_jni("net_jni_headers") {
1078 sources = [
tbansalc04b7aa2016-07-02 06:54:371079 "android/java/src/org/chromium/net/AndroidCellularSignalStrength.java",
[email protected]ef0eb442014-05-15 09:32:181080 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1081 "android/java/src/org/chromium/net/AndroidKeyStore.java",
1082 "android/java/src/org/chromium/net/AndroidNetworkLibrary.java",
tbansal59a1ddc2015-09-14 17:35:011083 "android/java/src/org/chromium/net/AndroidTrafficStats.java",
[email protected]ef0eb442014-05-15 09:32:181084 "android/java/src/org/chromium/net/GURLUtils.java",
aberentec894a52015-07-09 14:45:531085 "android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java",
xunjieli905496a2015-08-31 15:51:171086 "android/java/src/org/chromium/net/NetStringUtil.java",
[email protected]ef0eb442014-05-15 09:32:181087 "android/java/src/org/chromium/net/NetworkChangeNotifier.java",
1088 "android/java/src/org/chromium/net/ProxyChangeListener.java",
1089 "android/java/src/org/chromium/net/X509Util.java",
1090 ]
1091 jni_package = "net"
1092 }
cjhopmandad5f4272014-09-05 01:00:551093 generate_jni("net_test_jni_headers") {
1094 sources = [
1095 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java",
aberentec894a52015-07-09 14:45:531096 "test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
jbudorickccffb982015-12-22 01:21:351097 "test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java",
cjhopmandad5f4272014-09-05 01:00:551098 ]
brettwcdccaf02015-07-27 16:27:091099 jni_package = "net/test"
cjhopmandad5f4272014-09-05 01:00:551100 }
[email protected]ef0eb442014-05-15 09:32:181101}
[email protected]8603c5de2014-04-16 20:34:311102
1103if (is_android || is_linux) {
1104 executable("disk_cache_memory_test") {
Brett Wilson8f80ad0b2014-09-08 19:50:241105 testonly = true
scottmg34fb7e52014-12-03 23:27:241106 sources = [
1107 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1108 ]
[email protected]8603c5de2014-04-16 20:34:311109 deps = [
1110 ":net",
1111 "//base",
brettwba7a73d2015-08-31 22:17:391112 "//build/config/sanitizers:deps",
[email protected]8603c5de2014-04-16 20:34:311113 ]
1114 }
1115}
[email protected]8a3f8242014-06-05 18:05:121116
rch47ad01f2015-03-20 21:17:231117source_set("simple_quic_tools") {
rcha9d12ce12015-03-19 23:06:491118 sources = [
ckrasica7fd1242016-05-14 20:36:011119 "tools/quic/chlo_extractor.cc",
1120 "tools/quic/chlo_extractor.h",
rtennetid67b3a722015-08-18 05:15:311121 "tools/quic/quic_client_base.cc",
1122 "tools/quic/quic_client_base.h",
rched113b22015-03-26 04:54:051123 "tools/quic/quic_client_session.cc",
1124 "tools/quic/quic_client_session.h",
rchc99f380c2015-03-26 19:50:561125 "tools/quic/quic_dispatcher.cc",
1126 "tools/quic/quic_dispatcher.h",
vasilvv28270e8f2016-12-01 21:38:091127 "tools/quic/quic_http_response_cache.cc",
1128 "tools/quic/quic_http_response_cache.h",
rchc99f380c2015-03-26 19:50:561129 "tools/quic/quic_per_connection_packet_writer.cc",
1130 "tools/quic/quic_per_connection_packet_writer.h",
brettw25ca8922016-03-18 22:59:581131 "tools/quic/quic_process_packet_interface.h",
rcha9d12ce12015-03-19 23:06:491132 "tools/quic/quic_simple_client.cc",
1133 "tools/quic/quic_simple_client.h",
ianswett6c7b7ed2016-09-13 19:35:271134 "tools/quic/quic_simple_crypto_server_stream_helper.cc",
1135 "tools/quic/quic_simple_crypto_server_stream_helper.h",
alyssara473d6f2016-08-04 16:54:041136 "tools/quic/quic_simple_dispatcher.cc",
1137 "tools/quic/quic_simple_dispatcher.h",
rch216445c2015-03-27 00:23:281138 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1139 "tools/quic/quic_simple_per_connection_packet_writer.h",
1140 "tools/quic/quic_simple_server.cc",
1141 "tools/quic/quic_simple_server.h",
1142 "tools/quic/quic_simple_server_packet_writer.cc",
1143 "tools/quic/quic_simple_server_packet_writer.h",
jokulikc971baf92016-01-06 00:36:391144 "tools/quic/quic_simple_server_session.cc",
1145 "tools/quic/quic_simple_server_session.h",
mpwb5c8da92016-06-05 20:07:311146 "tools/quic/quic_simple_server_session_helper.cc",
1147 "tools/quic/quic_simple_server_session_helper.h",
danzhb7551342015-12-18 02:06:401148 "tools/quic/quic_simple_server_stream.cc",
1149 "tools/quic/quic_simple_server_stream.h",
rched113b22015-03-26 04:54:051150 "tools/quic/quic_spdy_client_stream.cc",
1151 "tools/quic/quic_spdy_client_stream.h",
rch0e945472015-03-26 15:19:211152 "tools/quic/quic_time_wait_list_manager.cc",
1153 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371154 "tools/quic/stateless_rejector.cc",
1155 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371156 "tools/quic/synchronous_host_resolver.cc",
1157 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491158 ]
1159 deps = [
1160 ":net",
1161 "//base",
rch47ad01f2015-03-20 21:17:231162 "//base/third_party/dynamic_annotations",
1163 "//url",
1164 ]
1165}
1166
sherouk51b4b098b2015-08-10 09:00:431167if (!is_ios) {
1168 executable("quic_client") {
1169 sources = [
1170 "tools/quic/quic_simple_client_bin.cc",
1171 ]
1172 deps = [
1173 ":net",
1174 ":simple_quic_tools",
1175 "//base",
brettwba7a73d2015-08-31 22:17:391176 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071177 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431178 "//url",
1179 ]
1180 }
1181 executable("quic_server") {
1182 sources = [
1183 "tools/quic/quic_simple_server_bin.cc",
1184 ]
1185 deps = [
1186 ":net",
1187 ":simple_quic_tools",
1188 "//base",
brettwba7a73d2015-08-31 22:17:391189 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071190 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431191 "//third_party/boringssl",
1192 "//third_party/protobuf:protobuf_lite",
1193 ]
1194 }
rchf80f62d12016-05-11 00:47:311195 executable("quic_packet_printer") {
1196 sources = [
1197 "tools/quic/quic_packet_printer_bin.cc",
1198 ]
1199 deps = [
1200 ":net",
1201 ":simple_quic_tools",
1202 "//base",
1203 "//build/config/sanitizers:deps",
1204 "//build/win:default_exe_manifest",
1205 "//third_party/boringssl",
1206 "//third_party/protobuf:protobuf_lite",
1207 ]
1208 }
mpwbbea85d2016-08-27 14:39:211209 executable("quic_reject_reason_decoder") {
1210 sources = [
1211 "tools/quic/quic_reject_reason_decoder_bin.cc",
1212 ]
1213 deps = [
1214 ":net",
1215 ":simple_quic_tools",
1216 "//base",
1217 "//build/config/sanitizers:deps",
1218 "//build/win:default_exe_manifest",
1219 "//third_party/boringssl",
1220 "//third_party/protobuf:protobuf_lite",
1221 ]
1222 }
danzh1401f0a2016-05-19 13:41:101223 executable("crypto_message_printer") {
1224 sources = [
1225 "tools/quic/crypto_message_printer_bin.cc",
1226 ]
1227 deps = [
1228 ":net",
1229 "//base",
1230 "//build/config/sanitizers:deps",
1231 "//build/win:default_exe_manifest",
1232 ]
1233 }
rch216445c2015-03-27 00:23:281234}
1235
sdefresneb0a31642016-03-18 11:04:451236bundle_data("net_unittests_bundle_data") {
1237 testonly = true
sdefresne04f91142016-04-21 08:41:591238 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451239 outputs = [
1240 "{{bundle_resources_dir}}/" +
1241 "{{source_root_relative_dir}}/{{source_file_part}}",
1242 ]
1243}
1244
dpranke64df2832015-07-31 22:33:361245test("net_unittests") {
1246 sources = gypi_values.net_test_sources
1247
1248 configs += [
1249 "//build/config:precompiled_headers",
1250
1251 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1252 "//build/config/compiler:no_size_t_to_int_warning",
1253 ]
1254 defines = []
1255
1256 deps = [
dpranke64df2832015-07-31 22:33:361257 ":extras",
dpranke64df2832015-07-31 22:33:361258 ":net",
1259 ":simple_quic_tools",
1260 ":test_support",
1261 "//base",
1262 "//base:i18n",
dpranke64df2832015-07-31 22:33:361263 "//base/third_party/dynamic_annotations",
1264 "//crypto",
1265 "//crypto:platform",
1266 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361267 "//net/base/registry_controlled_domains",
1268 "//sql",
1269 "//testing/gmock",
1270 "//testing/gtest",
1271 "//third_party/zlib",
1272 "//url",
kapishnikovabe280e2016-04-14 19:07:161273 "//url:url_features",
dpranke64df2832015-07-31 22:33:361274 ]
1275
jbudorick944eb922016-06-20 15:38:301276 data = []
svaldez2135be52016-04-20 16:34:531277 data_deps = [
1278 "third_party/nist-pkits/",
1279 ]
dpranke64df2832015-07-31 22:33:361280
1281 if (is_linux || is_mac || is_win) {
1282 deps += [
1283 "//third_party/pyftpdlib/",
1284 "//third_party/pywebsocket/",
1285 "//third_party/tlslite/",
1286 ]
mattm6586b432016-02-12 04:52:391287 data_deps += [
dpranke64df2832015-07-31 22:33:361288 "//third_party/pyftpdlib/",
1289 "//third_party/pywebsocket/",
1290 "//third_party/tlslite/",
1291 ]
1292 data += [
1293 "tools/testserver/",
1294 "//third_party/pyftpdlib/",
1295 "//third_party/pywebsocket/",
1296 "//third_party/tlslite/",
1297 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231298 ]
1299 }
1300
dpranke64df2832015-07-31 22:33:361301 if (is_desktop_linux) {
1302 deps += [ ":epoll_quic_tools" ]
1303 }
1304 if (is_linux) {
1305 sources += gypi_values.net_linux_test_sources
1306 deps += [
1307 ":epoll_quic_tools",
1308 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421309 ]
dpranke64df2832015-07-31 22:33:361310 }
[email protected]8a3f8242014-06-05 18:05:121311
dpranke64df2832015-07-31 22:33:361312 if (is_mac || is_ios) {
1313 sources += gypi_values.net_base_test_mac_ios_sources
1314 }
1315
mattmaf868e72016-09-23 23:25:201316 if (is_mac) {
1317 libs = [ "Security.framework" ]
1318 }
1319
dpranke64df2832015-07-31 22:33:361320 if (is_chromeos) {
1321 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1322 }
1323
1324 if (v8_use_external_startup_data) {
1325 deps += [ "//gin" ]
1326 }
1327
1328 if (!use_nss_certs) {
1329 sources -= [
mattm4abbcdbf2016-11-30 20:23:131330 "cert/internal/cert_issuer_source_nss_unittest.cc",
mattm9c63d442016-09-03 00:45:511331 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361332 "cert/nss_cert_database_unittest.cc",
1333 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121334 ]
dpranke64df2832015-07-31 22:33:361335 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411336 sources -= [
dpranke64df2832015-07-31 22:33:361337 "cert/nss_cert_database_chromeos_unittest.cc",
1338 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411339 ]
brettw43ae0e12015-07-14 22:12:361340 }
[email protected]8a3f8242014-06-05 18:05:121341 }
dpranke64df2832015-07-31 22:33:361342
dpranke64df2832015-07-31 22:33:361343 if (use_kerberos) {
1344 defines += [ "USE_KERBEROS" ]
1345 }
1346
1347 # These are excluded on Android, because the actual Kerberos support, which
1348 # these test, is in a separate app on Android.
1349 if (!use_kerberos || is_android) {
1350 sources -= [
1351 "http/http_auth_gssapi_posix_unittest.cc",
1352 "http/mock_gssapi_library_posix.cc",
1353 "http/mock_gssapi_library_posix.h",
1354 ]
1355 }
1356 if (!use_kerberos) {
1357 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1358 }
1359
svaldez2135be52016-04-20 16:34:531360 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531361 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361362 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1363 }
1364
1365 if (!use_openssl_certs) {
1366 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1367 }
1368
jbudorick1273a842016-04-01 19:50:051369 if (enable_websockets) {
1370 sources += gypi_values.net_websockets_test_sources
1371 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361372 }
1373
1374 if (disable_file_support) {
1375 sources -= [
1376 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161377 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041378 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361379 "url_request/url_request_file_job_unittest.cc",
1380 ]
1381 }
1382
1383 if (disable_ftp_support) {
1384 sources -= [
1385 "ftp/ftp_auth_cache_unittest.cc",
1386 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1387 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361388 "ftp/ftp_directory_listing_parser_unittest.cc",
1389 "ftp/ftp_directory_listing_parser_unittest.h",
1390 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1391 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1392 "ftp/ftp_network_transaction_unittest.cc",
1393 "ftp/ftp_util_unittest.cc",
1394 "url_request/url_request_ftp_job_unittest.cc",
1395 ]
1396 }
1397
1398 if (!enable_built_in_dns) {
1399 sources -= [
1400 "dns/address_sorter_posix_unittest.cc",
1401 "dns/address_sorter_unittest.cc",
1402 ]
1403 }
1404
xunjieli905496a2015-08-31 15:51:171405 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361406 deps += [ ":net_with_v8" ]
1407 } else {
1408 sources -= [
1409 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1410 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1411 "proxy/proxy_resolver_v8_unittest.cc",
1412 ]
1413 }
1414
1415 if (use_v8_in_net && !is_android) {
1416 deps += [
1417 ":net_browser_services",
1418 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081419 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361420 ]
1421 } else {
1422 sources -= [
1423 "dns/host_resolver_mojo_unittest.cc",
1424 "dns/mojo_host_resolver_impl_unittest.cc",
1425 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1426 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1427 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1428 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1429 "proxy/proxy_service_mojo_unittest.cc",
1430 ]
1431 }
1432
1433 if (!enable_mdns) {
1434 sources -= [
1435 "dns/mdns_cache_unittest.cc",
1436 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361437 ]
1438 }
1439
1440 if (is_ios) {
dpranke64df2832015-07-31 22:33:361441 sources -= [
1442 # TODO(droger): The following tests are disabled because the
1443 # implementation is missing or incomplete.
1444 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1445 "base/keygen_handler_unittest.cc",
1446 "disk_cache/backend_unittest.cc",
1447 "disk_cache/blockfile/block_files_unittest.cc",
1448
1449 # Need to read input data files.
dpranke64df2832015-07-31 22:33:361450 "socket/ssl_server_socket_unittest.cc",
1451 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1452
1453 # Need TestServer.
1454 "cert_net/cert_net_fetcher_impl_unittest.cc",
1455 "proxy/proxy_script_fetcher_impl_unittest.cc",
1456 "socket/ssl_client_socket_unittest.cc",
1457 "url_request/url_fetcher_impl_unittest.cc",
1458 "url_request/url_request_context_builder_unittest.cc",
1459
1460 # Needs GetAppOutput().
1461 "test/python_utils_unittest.cc",
1462
1463 # The following tests are disabled because they don't apply to
1464 # iOS.
1465 # OS is not "linux" or "freebsd" or "openbsd".
1466 "socket/unix_domain_client_socket_posix_unittest.cc",
1467 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361468 ]
rsesek7d4ab4bc2016-07-22 17:35:131469
1470 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361471 }
1472
kapishnikovabe280e2016-04-14 19:07:161473 # Unit tests that aren't supported by the current ICU alternatives on Android.
1474 if (is_android && use_platform_icu_alternatives) {
1475 sources -= [
1476 "base/filename_util_unittest.cc",
1477 "base/url_util_unittest.cc",
1478 "cert/x509_certificate_unittest.cc",
1479 "proxy/proxy_resolver_v8_unittest.cc",
1480 "url_request/url_request_job_unittest.cc",
1481 ]
1482 }
1483
1484 # Unit tests that are not supported by the current ICU alternatives on iOS.
1485 if (is_ios && use_platform_icu_alternatives) {
1486 sources -= [
1487 "base/filename_util_unittest.cc",
1488 "base/url_util_unittest.cc",
1489 "cert/x509_certificate_unittest.cc",
1490 "http/http_auth_handler_basic_unittest.cc",
1491 "http/http_auth_handler_digest_unittest.cc",
1492 "http/http_auth_handler_factory_unittest.cc",
1493 "http/http_auth_unittest.cc",
1494 "http/http_content_disposition_unittest.cc",
1495 "http/http_network_transaction_unittest.cc",
1496 "http/http_proxy_client_socket_pool_unittest.cc",
1497 "socket/ssl_client_socket_pool_unittest.cc",
1498 "spdy/spdy_network_transaction_unittest.cc",
1499 "spdy/spdy_proxy_client_socket_unittest.cc",
1500 "url_request/url_request_job_unittest.cc",
1501 "url_request/url_request_unittest.cc",
1502 ]
1503 }
1504
1505 # Exclude brotli test if the support for brotli is disabled.
xunjielif54f24a02016-11-04 15:51:541506 if (disable_brotli_filter) {
xunjieli084a9292016-09-23 18:15:041507 sources -= [ "filter/brotli_source_stream_unittest.cc" ]
kapishnikovabe280e2016-04-14 19:07:161508 }
1509
dpranke64df2832015-07-31 22:33:361510 if (is_android) {
agrieve732db3a2016-04-26 19:18:191511 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191512 deps += [
1513 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451514 "//base:base_java_unittest_support",
1515 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451516 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191517 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451518 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191519
1520 # TODO(mmenke): This depends on test_support_base, which depends on
1521 # icu. Figure out a way to remove that dependency.
1522 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071523 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451524 ]
1525 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361526 set_sources_assignment_filter([])
1527 sources += [ "base/address_tracker_linux_unittest.cc" ]
1528 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001529 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361530 }
1531
dpranke64df2832015-07-31 22:33:361532 # Symbols for crashes when running tests on swarming.
1533 if (symbol_level > 0) {
1534 if (is_win) {
1535 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1536 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131537 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1538 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361539 }
1540 }
maksim.sisovc69619d2016-05-20 19:23:551541
1542 if (is_win) {
mmenke91c17162016-06-02 16:03:231543 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551544 }
dpranke64df2832015-07-31 22:33:361545}
1546
1547# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031548if (!is_ios) {
1549 # TODO(crbug.com/594965): this should be converted to "app" template and
1550 # enabled on iOS too.
1551 executable("net_perftests") {
1552 testonly = true
1553 sources = [
1554 "base/mime_sniffer_perftest.cc",
1555 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051556 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031557 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1558 "proxy/proxy_resolver_perftest.cc",
tfarina5dd13c22016-11-16 12:08:261559 "socket/udp_socket_perftest.cc",
sdefresne3001f172016-03-16 10:30:031560 ]
[email protected]8a3f8242014-06-05 18:05:121561
sdefresne3001f172016-03-16 10:30:031562 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1563 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1564 deps = [
1565 ":extras",
1566 ":net",
1567 ":test_support",
1568 "//base",
1569 "//base:i18n",
1570 "//base/test:test_support_perf",
1571 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071572 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031573 "//testing/gtest",
1574 "//url",
1575 ]
rockot9c67e5f2015-03-12 20:01:211576
sdefresne3001f172016-03-16 10:30:031577 if (enable_websockets) {
1578 sources += [ "websockets/websocket_frame_perftest.cc" ]
1579 }
rockot9c67e5f2015-03-12 20:01:211580
sdefresne3001f172016-03-16 10:30:031581 if (use_v8_in_net) {
1582 deps += [ ":net_with_v8" ]
1583 } else {
1584 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1585 }
rockot9c67e5f2015-03-12 20:01:211586 }
rockot9c67e5f2015-03-12 20:01:211587}
mefff34b822016-01-11 15:28:081588
eromanfe8659e2016-03-02 23:47:021589# Fuzzers
1590
mmenke35a30012016-07-15 19:20:121591# This has a global (InitGlobals) that must always be linked in, so
1592# must be a source set instead of a static library.
1593source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161594 testonly = true
1595
1596 sources = [
csharrison37ef9852016-08-23 19:00:191597 "base/fuzzer_test_support.cc",
mmenkea7da0712016-11-21 21:12:311598 "dns/fuzzed_host_resolver.cc",
1599 "dns/fuzzed_host_resolver.h",
xunjieli75837332016-10-31 16:51:261600 "filter/fuzzed_source_stream.cc",
1601 "filter/fuzzed_source_stream.h",
tfarina5dd13c22016-11-16 12:08:261602 "socket/fuzzed_datagram_client_socket.cc",
1603 "socket/fuzzed_datagram_client_socket.h",
mmenke99b57172016-04-14 20:44:331604 "socket/fuzzed_socket.cc",
1605 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221606 "socket/fuzzed_socket_factory.cc",
1607 "socket/fuzzed_socket_factory.h",
eroman02b4fe562016-03-04 12:15:161608 ]
csharrisonf30fc95f2016-08-19 21:43:441609 public_deps = [
1610 "//base/test:test_support",
1611 ]
eroman02b4fe562016-03-04 12:15:161612 deps = [
1613 "//base",
1614 "//base:i18n",
mmenke99b57172016-04-14 20:44:331615 "//net",
eroman02b4fe562016-03-04 12:15:161616 ]
1617}
1618
csharrisonaa314dc2016-04-29 20:15:371619fuzzer_test("net_data_job_fuzzer") {
1620 sources = [
1621 "url_request/url_request_data_job_fuzzer.cc",
1622 ]
1623 deps = [
1624 ":net_fuzzer_test_support",
1625 ":test_support",
1626 "//base",
1627 "//net",
1628 ]
1629}
1630
mmenke5552a6a2016-03-28 23:11:591631fuzzer_test("net_mime_sniffer_fuzzer") {
1632 sources = [
1633 "base/mime_sniffer_fuzzer.cc",
1634 ]
1635 deps = [
1636 ":net_fuzzer_test_support",
1637 "//base",
1638 "//net",
1639 ]
mmoroz4a561d32016-07-07 17:45:121640 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591641}
1642
mmoroz565e8df22016-03-04 18:17:201643fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301644 sources = [
1645 "proxy/parse_proxy_list_pac_fuzzer.cc",
1646 ]
1647 deps = [
eroman02b4fe562016-03-04 12:15:161648 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301649 "//net",
1650 ]
1651}
1652
mmoroz565e8df22016-03-04 18:17:201653fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301654 sources = [
1655 "proxy/parse_proxy_list_fuzzer.cc",
1656 ]
1657 deps = [
eroman02b4fe562016-03-04 12:15:161658 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301659 "//net",
1660 ]
1661}
1662
mmoroz565e8df22016-03-04 18:17:201663fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301664 sources = [
1665 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1666 ]
1667 deps = [
eroman02b4fe562016-03-04 12:15:161668 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301669 "//net",
1670 ]
1671}
1672
mmoroz565e8df22016-03-04 18:17:201673fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301674 sources = [
1675 "proxy/parse_proxy_rules_fuzzer.cc",
1676 ]
1677 deps = [
eroman02b4fe562016-03-04 12:15:161678 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301679 "//net",
1680 ]
metzman31db75e2016-08-03 22:33:271681 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301682}
1683
mmoroz565e8df22016-03-04 18:17:201684fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301685 sources = [
1686 "base/parse_data_url_fuzzer.cc",
1687 ]
1688 deps = [
eroman02b4fe562016-03-04 12:15:161689 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301690 "//base",
1691 "//net",
1692 ]
mmoroz4a561d32016-07-07 17:45:121693 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301694}
1695
mmoroz565e8df22016-03-04 18:17:201696fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301697 sources = [
1698 "base/parse_ip_pattern_fuzzer.cc",
1699 ]
1700 deps = [
eroman02b4fe562016-03-04 12:15:161701 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301702 "//net",
1703 ]
1704}
1705
mmoroz565e8df22016-03-04 18:17:201706fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301707 sources = [
1708 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1709 ]
1710 deps = [
eroman02b4fe562016-03-04 12:15:161711 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301712 "//base",
eromane6264fd2016-03-02 22:46:301713 "//net",
1714 ]
mmoroz4a561d32016-07-07 17:45:121715 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301716}
1717
mattmafe43b82016-04-28 20:40:541718fuzzer_test("net_cert_verify_name_match_fuzzer") {
1719 sources = [
1720 "cert/internal/verify_name_match_fuzzer.cc",
1721 ]
1722 deps = [
1723 ":net_fuzzer_test_support",
1724 "//base",
1725 "//net",
1726 ]
1727}
1728
mattm2c637da42016-04-28 02:55:591729fuzzer_test("net_cert_normalize_name_fuzzer") {
1730 sources = [
1731 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1732 ]
1733 deps = [
1734 "//base",
1735 "//net",
1736 ]
1737}
1738
mattmafe43b82016-04-28 20:40:541739fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1740 sources = [
1741 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1742 ]
1743 deps = [
1744 ":net_fuzzer_test_support",
1745 "//base",
1746 "//net",
1747 ]
1748}
1749
nharper85d3b6f2016-04-28 20:58:191750fuzzer_test("net_cert_parse_certificate_fuzzer") {
1751 sources = [
1752 "cert/internal/parse_certificate_fuzzer.cc",
1753 ]
1754 deps = [
1755 "//base",
1756 "//net",
1757 ]
1758}
1759
mmoroz565e8df22016-03-04 18:17:201760fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301761 sources = [
1762 "cookies/parse_cookie_line_fuzzer.cc",
1763 ]
1764 deps = [
eroman02b4fe562016-03-04 12:15:161765 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301766 "//net",
1767 ]
1768}
1769
mmoroz565e8df22016-03-04 18:17:201770fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021771 sources = [
1772 "dns/dns_record_fuzzer.cc",
1773 ]
1774 deps = [
eroman02b4fe562016-03-04 12:15:161775 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021776 "//base",
1777 "//net",
1778 ]
mmoroz4a561d32016-07-07 17:45:121779 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021780}
1781
zhongyi273af9f2016-04-28 18:46:341782fuzzer_test("net_dns_hosts_parse_fuzzer") {
1783 sources = [
1784 "dns/dns_hosts_parse_fuzzer.cc",
1785 ]
1786 deps = [
1787 ":net_fuzzer_test_support",
1788 "//base",
1789 "//net",
1790 ]
mmoroz4a561d32016-07-07 17:45:121791 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341792}
1793
mmenke91c17162016-06-02 16:03:231794fuzzer_test("net_host_resolver_impl_fuzzer") {
1795 sources = [
mmenke91c17162016-06-02 16:03:231796 "dns/host_resolver_impl_fuzzer.cc",
1797 ]
1798 deps = [
1799 ":net_fuzzer_test_support",
1800 ":test_support",
1801 "//base",
1802 "//net",
1803 ]
mmoroz4a561d32016-07-07 17:45:121804 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231805}
1806
mmenke44e8e9c2016-03-29 18:38:571807fuzzer_test("net_http_stream_parser_fuzzer") {
1808 sources = [
1809 "http/http_stream_parser_fuzzer.cc",
1810 ]
1811 deps = [
1812 ":net_fuzzer_test_support",
1813 ":test_support",
1814 "//base",
1815 "//net",
1816 ]
mmoroz4a561d32016-07-07 17:45:121817 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571818}
1819
xunjielid5ffeaf2016-11-01 15:22:001820if (!disable_brotli_filter) {
1821 fuzzer_test("net_brotli_source_stream_fuzzer") {
1822 sources = [
1823 "filter/brotli_source_stream_fuzzer.cc",
1824 ]
1825 deps = [
1826 ":net_fuzzer_test_support",
1827 ":test_support",
1828 "//base",
1829 "//net",
1830 ]
1831 }
1832}
1833
xunjieli75837332016-10-31 16:51:261834fuzzer_test("net_gzip_source_stream_fuzzer") {
1835 sources = [
1836 "filter/gzip_source_stream_fuzzer.cc",
1837 ]
1838 deps = [
1839 ":net_fuzzer_test_support",
1840 ":test_support",
1841 "//base",
1842 "//net",
1843 ]
1844}
1845
mmoroz565e8df22016-03-04 18:17:201846fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021847 sources = [
1848 "ftp/ftp_ctrl_response_fuzzer.cc",
1849 ]
1850 deps = [
eroman02b4fe562016-03-04 12:15:161851 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021852 "//base",
1853 "//net",
1854 ]
1855}
1856
mmoroz565e8df22016-03-04 18:17:201857fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021858 sources = [
1859 "ftp/ftp_directory_listing_fuzzer.cc",
1860 ]
1861 deps = [
eroman02b4fe562016-03-04 12:15:161862 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021863 "//base",
eromanfe8659e2016-03-02 23:47:021864 "//net",
1865 ]
1866}
1867
mmoroz565e8df22016-03-04 18:17:201868fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021869 sources = [
1870 "base/unescape_url_component_fuzzer.cc",
1871 ]
1872 deps = [
eroman02b4fe562016-03-04 12:15:161873 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021874 "//base",
1875 "//net",
1876 ]
mmoroz34eb0082016-03-11 14:32:011877 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331878 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021879}
1880
ricea7b870e72016-09-01 04:41:041881fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1882 sources = [
1883 "websockets/websocket_deflate_stream_fuzzer.cc",
1884 ]
1885 deps = [
1886 ":net_fuzzer_test_support",
1887 "//net",
1888 ]
1889 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1890 libfuzzer_options = [ "max_len=512" ]
1891}
1892
riceaf9dcc092016-09-13 12:42:001893fuzzer_test("net_websocket_extension_parser_fuzzer") {
1894 sources = [
1895 "websockets/websocket_extension_parser_fuzzer.cc",
1896 ]
1897 deps = [
1898 ":net_fuzzer_test_support",
1899 "//net",
1900 ]
1901 dict = "data/fuzzer_dictionaries/net_websocket_extension_parser_fuzzer.dict"
1902 libfuzzer_options = [ "max_len = 256" ]
1903}
1904
mmoroz565e8df22016-03-04 18:17:201905fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021906 sources = [
1907 "websockets/websocket_frame_parser_fuzzer.cc",
1908 ]
1909 deps = [
eroman02b4fe562016-03-04 12:15:161910 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021911 "//net",
1912 ]
mmoroz4a561d32016-07-07 17:45:121913 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071914 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021915}
1916
mmoroz565e8df22016-03-04 18:17:201917fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021918 sources = [
1919 "http/http_chunked_decoder_fuzzer.cc",
1920 ]
1921 deps = [
eroman02b4fe562016-03-04 12:15:161922 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021923 "//net",
1924 ]
1925}
1926
mmenke8e9314bc2016-04-15 21:45:021927fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1928 sources = [
1929 "http/http_proxy_client_socket_fuzzer.cc",
1930 ]
1931 deps = [
1932 ":net_fuzzer_test_support",
1933 ":test_support",
1934 "//base",
1935 "//net",
1936 ]
mmoroz4a561d32016-07-07 17:45:121937 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021938}
1939
mmoroz9299ef9b2016-09-01 17:37:091940fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1941 sources = [
1942 "base/parse_url_hostname_to_address_fuzzer.cc",
1943 ]
1944 deps = [
1945 ":net_fuzzer_test_support",
1946 "//base",
1947 "//net",
1948 ]
1949 libfuzzer_options = [ "max_len=512" ]
1950 seed_corpus = "data/fuzzer_data/hostnames/"
1951}
1952
mmoroz565e8df22016-03-04 18:17:201953fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021954 sources = [
rchd4db7c152016-07-29 21:58:121955 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021956 ]
1957 deps = [
eroman02b4fe562016-03-04 12:15:161958 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021959 "//base",
1960 "//net",
1961 ]
1962}
mmenke99b57172016-04-14 20:44:331963
1964fuzzer_test("net_socks_client_socket_fuzzer") {
1965 sources = [
1966 "socket/socks_client_socket_fuzzer.cc",
1967 ]
1968 deps = [
1969 ":net_fuzzer_test_support",
1970 ":test_support",
1971 "//base",
1972 "//net",
1973 ]
1974}
1975
1976fuzzer_test("net_socks5_client_socket_fuzzer") {
1977 sources = [
1978 "socket/socks5_client_socket_fuzzer.cc",
1979 ]
1980 deps = [
1981 ":net_fuzzer_test_support",
1982 ":test_support",
1983 "//base",
1984 "//net",
1985 ]
1986}
mmenkec951d412016-04-28 19:05:221987
mmenkea7da0712016-11-21 21:12:311988fuzzer_test("net_url_request_ftp_fuzzer") {
1989 sources = [
1990 "url_request/url_request_ftp_fuzzer.cc",
1991 ]
1992 deps = [
1993 ":net_fuzzer_test_support",
1994 ":test_support",
1995 "//base",
1996 "//net",
1997 ]
1998 dict = "data/fuzzer_dictionaries/net_url_request_ftp_fuzzer.dict"
1999 seed_corpus = "data/fuzzer_data/net_url_request_ftp_fuzzer/"
2000}
2001
mmenkec951d412016-04-28 19:05:222002fuzzer_test("net_url_request_fuzzer") {
2003 sources = [
2004 "url_request/url_request_fuzzer.cc",
2005 ]
2006 deps = [
2007 ":net_fuzzer_test_support",
2008 ":test_support",
2009 "//base",
2010 "//net",
2011 ]
mmoroz4a561d32016-07-07 17:45:122012 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222013}
csharrison88d2a612016-09-09 16:58:542014
2015fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
2016 sources = [
2017 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2018 ]
2019 deps = [
2020 ":net_fuzzer_test_support",
2021 ":test_support",
2022 "//base",
2023 "//net",
2024 ]
2025}
martijndb9ad4f2016-10-26 18:34:092026
2027fuzzer_test("net_http_security_headers_hsts_fuzzer") {
2028 sources = [
2029 "http/http_security_headers_hsts_fuzzer.cc",
2030 ]
2031 deps = [
2032 "//base",
2033 "//net",
2034 ]
2035 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2036}
2037
2038fuzzer_test("net_http_security_headers_hpkp_fuzzer") {
2039 sources = [
2040 "http/http_security_headers_hpkp_fuzzer.cc",
2041 ]
2042 deps = [
martijn15387afb2016-10-27 22:21:042043 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092044 "//base",
2045 "//net",
2046 "//url",
2047 ]
2048 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2049}
2050
2051fuzzer_test("net_http_security_headers_hpkp_report_only_fuzzer") {
2052 sources = [
2053 "http/http_security_headers_hpkp_report_only_fuzzer.cc",
2054 ]
2055 deps = [
martijn15387afb2016-10-27 22:21:042056 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092057 "//base",
2058 "//net",
2059 "//url",
2060 ]
2061 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2062}