blob: ecb397ca087293767b19121e3f9d30c2c7feb5ea [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 = [
rchdfdb0642016-12-03 03:37:201014 "tools/quic/platform/impl/quic_epoll_clock.cc",
1015 "tools/quic/platform/impl/quic_epoll_clock.h",
[email protected]8603c5de2014-04-16 20:34:311016 "tools/quic/quic_client.cc",
1017 "tools/quic/quic_client.h",
[email protected]8603c5de2014-04-16 20:34:311018 "tools/quic/quic_default_packet_writer.cc",
1019 "tools/quic/quic_default_packet_writer.h",
rch16c74d1d2016-04-22 06:14:071020 "tools/quic/quic_epoll_alarm_factory.cc",
1021 "tools/quic/quic_epoll_alarm_factory.h",
[email protected]8603c5de2014-04-16 20:34:311022 "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",
rchaa4ec092016-12-02 00:34:191152 "tools/quic/quic_spdy_server_stream_base.cc",
1153 "tools/quic/quic_spdy_server_stream_base.h",
rch0e945472015-03-26 15:19:211154 "tools/quic/quic_time_wait_list_manager.cc",
1155 "tools/quic/quic_time_wait_list_manager.h",
jrid04ea362016-06-23 03:07:371156 "tools/quic/stateless_rejector.cc",
1157 "tools/quic/stateless_rejector.h",
rchda78df5a2015-03-22 05:16:371158 "tools/quic/synchronous_host_resolver.cc",
1159 "tools/quic/synchronous_host_resolver.h",
rcha9d12ce12015-03-19 23:06:491160 ]
1161 deps = [
1162 ":net",
1163 "//base",
rch47ad01f2015-03-20 21:17:231164 "//base/third_party/dynamic_annotations",
1165 "//url",
1166 ]
1167}
1168
sherouk51b4b098b2015-08-10 09:00:431169if (!is_ios) {
1170 executable("quic_client") {
1171 sources = [
1172 "tools/quic/quic_simple_client_bin.cc",
1173 ]
1174 deps = [
1175 ":net",
1176 ":simple_quic_tools",
1177 "//base",
brettwba7a73d2015-08-31 22:17:391178 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071179 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431180 "//url",
1181 ]
1182 }
1183 executable("quic_server") {
1184 sources = [
1185 "tools/quic/quic_simple_server_bin.cc",
1186 ]
1187 deps = [
1188 ":net",
1189 ":simple_quic_tools",
1190 "//base",
brettwba7a73d2015-08-31 22:17:391191 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071192 "//build/win:default_exe_manifest",
sherouk51b4b098b2015-08-10 09:00:431193 "//third_party/boringssl",
1194 "//third_party/protobuf:protobuf_lite",
1195 ]
1196 }
rchf80f62d12016-05-11 00:47:311197 executable("quic_packet_printer") {
1198 sources = [
1199 "tools/quic/quic_packet_printer_bin.cc",
1200 ]
1201 deps = [
1202 ":net",
1203 ":simple_quic_tools",
1204 "//base",
1205 "//build/config/sanitizers:deps",
1206 "//build/win:default_exe_manifest",
1207 "//third_party/boringssl",
1208 "//third_party/protobuf:protobuf_lite",
1209 ]
1210 }
mpwbbea85d2016-08-27 14:39:211211 executable("quic_reject_reason_decoder") {
1212 sources = [
1213 "tools/quic/quic_reject_reason_decoder_bin.cc",
1214 ]
1215 deps = [
1216 ":net",
1217 ":simple_quic_tools",
1218 "//base",
1219 "//build/config/sanitizers:deps",
1220 "//build/win:default_exe_manifest",
1221 "//third_party/boringssl",
1222 "//third_party/protobuf:protobuf_lite",
1223 ]
1224 }
danzh1401f0a2016-05-19 13:41:101225 executable("crypto_message_printer") {
1226 sources = [
1227 "tools/quic/crypto_message_printer_bin.cc",
1228 ]
1229 deps = [
1230 ":net",
1231 "//base",
1232 "//build/config/sanitizers:deps",
1233 "//build/win:default_exe_manifest",
1234 ]
1235 }
rch216445c2015-03-27 00:23:281236}
1237
sdefresneb0a31642016-03-18 11:04:451238bundle_data("net_unittests_bundle_data") {
1239 testonly = true
sdefresne04f91142016-04-21 08:41:591240 sources = gypi_values.net_unittests_data_sources
sdefresneb0a31642016-03-18 11:04:451241 outputs = [
1242 "{{bundle_resources_dir}}/" +
1243 "{{source_root_relative_dir}}/{{source_file_part}}",
1244 ]
1245}
1246
dpranke64df2832015-07-31 22:33:361247test("net_unittests") {
1248 sources = gypi_values.net_test_sources
1249
1250 configs += [
1251 "//build/config:precompiled_headers",
1252
1253 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1254 "//build/config/compiler:no_size_t_to_int_warning",
1255 ]
1256 defines = []
1257
1258 deps = [
dpranke64df2832015-07-31 22:33:361259 ":extras",
dpranke64df2832015-07-31 22:33:361260 ":net",
1261 ":simple_quic_tools",
1262 ":test_support",
1263 "//base",
1264 "//base:i18n",
dpranke64df2832015-07-31 22:33:361265 "//base/third_party/dynamic_annotations",
1266 "//crypto",
1267 "//crypto:platform",
1268 "//crypto:test_support",
dpranke64df2832015-07-31 22:33:361269 "//net/base/registry_controlled_domains",
1270 "//sql",
1271 "//testing/gmock",
1272 "//testing/gtest",
1273 "//third_party/zlib",
1274 "//url",
kapishnikovabe280e2016-04-14 19:07:161275 "//url:url_features",
dpranke64df2832015-07-31 22:33:361276 ]
1277
jbudorick944eb922016-06-20 15:38:301278 data = []
svaldez2135be52016-04-20 16:34:531279 data_deps = [
1280 "third_party/nist-pkits/",
1281 ]
dpranke64df2832015-07-31 22:33:361282
1283 if (is_linux || is_mac || is_win) {
1284 deps += [
1285 "//third_party/pyftpdlib/",
1286 "//third_party/pywebsocket/",
1287 "//third_party/tlslite/",
1288 ]
mattm6586b432016-02-12 04:52:391289 data_deps += [
dpranke64df2832015-07-31 22:33:361290 "//third_party/pyftpdlib/",
1291 "//third_party/pywebsocket/",
1292 "//third_party/tlslite/",
1293 ]
1294 data += [
1295 "tools/testserver/",
1296 "//third_party/pyftpdlib/",
1297 "//third_party/pywebsocket/",
1298 "//third_party/tlslite/",
1299 "$root_out_dir/pyproto/google/",
dprankef497c7962015-07-31 19:46:231300 ]
1301 }
1302
dpranke64df2832015-07-31 22:33:361303 if (is_desktop_linux) {
1304 deps += [ ":epoll_quic_tools" ]
1305 }
1306 if (is_linux) {
1307 sources += gypi_values.net_linux_test_sources
1308 deps += [
1309 ":epoll_quic_tools",
1310 ":epoll_server",
brettwbc8b2a22015-07-28 18:24:421311 ]
dpranke64df2832015-07-31 22:33:361312 }
[email protected]8a3f8242014-06-05 18:05:121313
dpranke64df2832015-07-31 22:33:361314 if (is_mac || is_ios) {
1315 sources += gypi_values.net_base_test_mac_ios_sources
1316 }
1317
mattmaf868e72016-09-23 23:25:201318 if (is_mac) {
1319 libs = [ "Security.framework" ]
1320 }
1321
dpranke64df2832015-07-31 22:33:361322 if (is_chromeos) {
1323 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1324 }
1325
1326 if (v8_use_external_startup_data) {
1327 deps += [ "//gin" ]
1328 }
1329
1330 if (!use_nss_certs) {
1331 sources -= [
mattm4abbcdbf2016-11-30 20:23:131332 "cert/internal/cert_issuer_source_nss_unittest.cc",
mattm9c63d442016-09-03 00:45:511333 "cert/internal/trust_store_nss_unittest.cc",
dpranke64df2832015-07-31 22:33:361334 "cert/nss_cert_database_unittest.cc",
1335 "ssl/client_cert_store_nss_unittest.cc",
[email protected]8a3f8242014-06-05 18:05:121336 ]
dpranke64df2832015-07-31 22:33:361337 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
davidben2bcbc6b2015-04-22 02:36:411338 sources -= [
dpranke64df2832015-07-31 22:33:361339 "cert/nss_cert_database_chromeos_unittest.cc",
1340 "cert/nss_profile_filter_chromeos_unittest.cc",
davidben2bcbc6b2015-04-22 02:36:411341 ]
brettw43ae0e12015-07-14 22:12:361342 }
[email protected]8a3f8242014-06-05 18:05:121343 }
dpranke64df2832015-07-31 22:33:361344
dpranke64df2832015-07-31 22:33:361345 if (use_kerberos) {
1346 defines += [ "USE_KERBEROS" ]
1347 }
1348
1349 # These are excluded on Android, because the actual Kerberos support, which
1350 # these test, is in a separate app on Android.
1351 if (!use_kerberos || is_android) {
1352 sources -= [
1353 "http/http_auth_gssapi_posix_unittest.cc",
1354 "http/mock_gssapi_library_posix.cc",
1355 "http/mock_gssapi_library_posix.h",
1356 ]
1357 }
1358 if (!use_kerberos) {
1359 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1360 }
1361
svaldez2135be52016-04-20 16:34:531362 if (!use_nss_certs) {
svaldeza1714ab2016-03-18 20:47:531363 # Only include this test when using NSS for cert verification.
dpranke64df2832015-07-31 22:33:361364 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1365 }
1366
1367 if (!use_openssl_certs) {
1368 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1369 }
1370
jbudorick1273a842016-04-01 19:50:051371 if (enable_websockets) {
1372 sources += gypi_values.net_websockets_test_sources
1373 deps += [ ":http_server" ]
dpranke64df2832015-07-31 22:33:361374 }
1375
1376 if (disable_file_support) {
1377 sources -= [
1378 "base/directory_lister_unittest.cc",
Thiago Farinad673bb122016-01-06 23:18:161379 "base/directory_listing_unittest.cc",
shahriar.rostamia8c06daf2016-02-12 00:07:041380 "url_request/url_request_file_dir_job_unittest.cc",
dpranke64df2832015-07-31 22:33:361381 "url_request/url_request_file_job_unittest.cc",
1382 ]
1383 }
1384
1385 if (disable_ftp_support) {
1386 sources -= [
1387 "ftp/ftp_auth_cache_unittest.cc",
1388 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1389 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
dpranke64df2832015-07-31 22:33:361390 "ftp/ftp_directory_listing_parser_unittest.cc",
1391 "ftp/ftp_directory_listing_parser_unittest.h",
1392 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1393 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1394 "ftp/ftp_network_transaction_unittest.cc",
1395 "ftp/ftp_util_unittest.cc",
1396 "url_request/url_request_ftp_job_unittest.cc",
1397 ]
1398 }
1399
1400 if (!enable_built_in_dns) {
1401 sources -= [
1402 "dns/address_sorter_posix_unittest.cc",
1403 "dns/address_sorter_unittest.cc",
1404 ]
1405 }
1406
xunjieli905496a2015-08-31 15:51:171407 if (use_v8_in_net) {
dpranke64df2832015-07-31 22:33:361408 deps += [ ":net_with_v8" ]
1409 } else {
1410 sources -= [
1411 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1412 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1413 "proxy/proxy_resolver_v8_unittest.cc",
1414 ]
1415 }
1416
1417 if (use_v8_in_net && !is_android) {
1418 deps += [
1419 ":net_browser_services",
1420 ":net_utility_services",
rockotc637caf9b2016-02-10 09:57:081421 "//mojo/edk/system",
dpranke64df2832015-07-31 22:33:361422 ]
1423 } else {
1424 sources -= [
1425 "dns/host_resolver_mojo_unittest.cc",
1426 "dns/mojo_host_resolver_impl_unittest.cc",
1427 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1428 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1429 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1430 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1431 "proxy/proxy_service_mojo_unittest.cc",
1432 ]
1433 }
1434
1435 if (!enable_mdns) {
1436 sources -= [
1437 "dns/mdns_cache_unittest.cc",
1438 "dns/mdns_client_unittest.cc",
dpranke64df2832015-07-31 22:33:361439 ]
1440 }
1441
1442 if (is_ios) {
dpranke64df2832015-07-31 22:33:361443 sources -= [
1444 # TODO(droger): The following tests are disabled because the
1445 # implementation is missing or incomplete.
1446 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1447 "base/keygen_handler_unittest.cc",
1448 "disk_cache/backend_unittest.cc",
1449 "disk_cache/blockfile/block_files_unittest.cc",
1450
1451 # Need to read input data files.
dpranke64df2832015-07-31 22:33:361452 "socket/ssl_server_socket_unittest.cc",
1453 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1454
1455 # Need TestServer.
1456 "cert_net/cert_net_fetcher_impl_unittest.cc",
1457 "proxy/proxy_script_fetcher_impl_unittest.cc",
1458 "socket/ssl_client_socket_unittest.cc",
1459 "url_request/url_fetcher_impl_unittest.cc",
1460 "url_request/url_request_context_builder_unittest.cc",
1461
1462 # Needs GetAppOutput().
1463 "test/python_utils_unittest.cc",
1464
1465 # The following tests are disabled because they don't apply to
1466 # iOS.
1467 # OS is not "linux" or "freebsd" or "openbsd".
1468 "socket/unix_domain_client_socket_posix_unittest.cc",
1469 "socket/unix_domain_server_socket_posix_unittest.cc",
dpranke64df2832015-07-31 22:33:361470 ]
rsesek7d4ab4bc2016-07-22 17:35:131471
1472 bundle_deps = [ ":net_unittests_bundle_data" ]
dpranke64df2832015-07-31 22:33:361473 }
1474
kapishnikovabe280e2016-04-14 19:07:161475 # Unit tests that aren't supported by the current ICU alternatives on Android.
1476 if (is_android && use_platform_icu_alternatives) {
1477 sources -= [
1478 "base/filename_util_unittest.cc",
1479 "base/url_util_unittest.cc",
1480 "cert/x509_certificate_unittest.cc",
1481 "proxy/proxy_resolver_v8_unittest.cc",
1482 "url_request/url_request_job_unittest.cc",
1483 ]
1484 }
1485
1486 # Unit tests that are not supported by the current ICU alternatives on iOS.
1487 if (is_ios && use_platform_icu_alternatives) {
1488 sources -= [
1489 "base/filename_util_unittest.cc",
1490 "base/url_util_unittest.cc",
1491 "cert/x509_certificate_unittest.cc",
1492 "http/http_auth_handler_basic_unittest.cc",
1493 "http/http_auth_handler_digest_unittest.cc",
1494 "http/http_auth_handler_factory_unittest.cc",
1495 "http/http_auth_unittest.cc",
1496 "http/http_content_disposition_unittest.cc",
1497 "http/http_network_transaction_unittest.cc",
1498 "http/http_proxy_client_socket_pool_unittest.cc",
1499 "socket/ssl_client_socket_pool_unittest.cc",
1500 "spdy/spdy_network_transaction_unittest.cc",
1501 "spdy/spdy_proxy_client_socket_unittest.cc",
1502 "url_request/url_request_job_unittest.cc",
1503 "url_request/url_request_unittest.cc",
1504 ]
1505 }
1506
1507 # Exclude brotli test if the support for brotli is disabled.
xunjielif54f24a02016-11-04 15:51:541508 if (disable_brotli_filter) {
xunjieli084a9292016-09-23 18:15:041509 sources -= [ "filter/brotli_source_stream_unittest.cc" ]
kapishnikovabe280e2016-04-14 19:07:161510 }
1511
dpranke64df2832015-07-31 22:33:361512 if (is_android) {
agrieve732db3a2016-04-26 19:18:191513 data_deps += [ "//net/tools/testserver:testserver_py" ]
agrieve97176362015-12-01 16:36:191514 deps += [
1515 ":net_test_jni_headers",
agrievea5517aa2015-10-23 03:03:451516 "//base:base_java_unittest_support",
1517 "//net/android:net_java",
agrievea5517aa2015-10-23 03:03:451518 "//net/android:net_java_test_support",
agrieve97176362015-12-01 16:36:191519 "//net/android:net_javatests",
agrievea5517aa2015-10-23 03:03:451520 "//net/android:net_unittests_apk_resources",
agrieve97176362015-12-01 16:36:191521
1522 # TODO(mmenke): This depends on test_support_base, which depends on
1523 # icu. Figure out a way to remove that dependency.
1524 "//testing/android/native_test:native_test_native_code",
pkotwicz8c7027d2015-11-11 06:30:071525 "//v8:v8_external_startup_data_assets",
agrievea5517aa2015-10-23 03:03:451526 ]
1527 android_manifest = "//net/android/unittest_support/AndroidManifest.xml"
dpranke64df2832015-07-31 22:33:361528 set_sources_assignment_filter([])
1529 sources += [ "base/address_tracker_linux_unittest.cc" ]
1530 set_sources_assignment_filter(sources_assignment_filter)
agrieve3ac557f02016-04-12 15:52:001531 shard_timeout = 300
dpranke64df2832015-07-31 22:33:361532 }
1533
dpranke64df2832015-07-31 22:33:361534 # Symbols for crashes when running tests on swarming.
1535 if (symbol_level > 0) {
1536 if (is_win) {
1537 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1538 } else if (is_mac) {
dprankede2945b82016-04-15 22:14:131539 # TODO(crbug.com/330301): make this conditional on mac_strip_release.
1540 # data += [ "$root_out_dir/net_unittests.dSYM/" ]
dpranke64df2832015-07-31 22:33:361541 }
1542 }
maksim.sisovc69619d2016-05-20 19:23:551543
1544 if (is_win) {
mmenke91c17162016-06-02 16:03:231545 libs = [ "iphlpapi.lib" ]
maksim.sisovc69619d2016-05-20 19:23:551546 }
dpranke64df2832015-07-31 22:33:361547}
1548
1549# !is_android && !is_win && !is_mac
sdefresne3001f172016-03-16 10:30:031550if (!is_ios) {
1551 # TODO(crbug.com/594965): this should be converted to "app" template and
1552 # enabled on iOS too.
1553 executable("net_perftests") {
1554 testonly = true
1555 sources = [
1556 "base/mime_sniffer_perftest.cc",
1557 "cookies/cookie_monster_perftest.cc",
gavinpc28fe1122016-05-13 17:49:051558 "disk_cache/disk_cache_perftest.cc",
sdefresne3001f172016-03-16 10:30:031559 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1560 "proxy/proxy_resolver_perftest.cc",
tfarina5dd13c22016-11-16 12:08:261561 "socket/udp_socket_perftest.cc",
sdefresne3001f172016-03-16 10:30:031562 ]
[email protected]8a3f8242014-06-05 18:05:121563
sdefresne3001f172016-03-16 10:30:031564 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1565 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1566 deps = [
1567 ":extras",
1568 ":net",
1569 ":test_support",
1570 "//base",
1571 "//base:i18n",
1572 "//base/test:test_support_perf",
1573 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:071574 "//build/win:default_exe_manifest",
sdefresne3001f172016-03-16 10:30:031575 "//testing/gtest",
1576 "//url",
1577 ]
rockot9c67e5f2015-03-12 20:01:211578
sdefresne3001f172016-03-16 10:30:031579 if (enable_websockets) {
1580 sources += [ "websockets/websocket_frame_perftest.cc" ]
1581 }
rockot9c67e5f2015-03-12 20:01:211582
sdefresne3001f172016-03-16 10:30:031583 if (use_v8_in_net) {
1584 deps += [ ":net_with_v8" ]
1585 } else {
1586 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1587 }
rockot9c67e5f2015-03-12 20:01:211588 }
rockot9c67e5f2015-03-12 20:01:211589}
mefff34b822016-01-11 15:28:081590
eromanfe8659e2016-03-02 23:47:021591# Fuzzers
1592
mmenke35a30012016-07-15 19:20:121593# This has a global (InitGlobals) that must always be linked in, so
1594# must be a source set instead of a static library.
1595source_set("net_fuzzer_test_support") {
eroman02b4fe562016-03-04 12:15:161596 testonly = true
1597
1598 sources = [
csharrison37ef9852016-08-23 19:00:191599 "base/fuzzer_test_support.cc",
mmenkea7da0712016-11-21 21:12:311600 "dns/fuzzed_host_resolver.cc",
1601 "dns/fuzzed_host_resolver.h",
xunjieli75837332016-10-31 16:51:261602 "filter/fuzzed_source_stream.cc",
1603 "filter/fuzzed_source_stream.h",
tfarina5dd13c22016-11-16 12:08:261604 "socket/fuzzed_datagram_client_socket.cc",
1605 "socket/fuzzed_datagram_client_socket.h",
mmenke99b57172016-04-14 20:44:331606 "socket/fuzzed_socket.cc",
1607 "socket/fuzzed_socket.h",
mmenkec951d412016-04-28 19:05:221608 "socket/fuzzed_socket_factory.cc",
1609 "socket/fuzzed_socket_factory.h",
eroman02b4fe562016-03-04 12:15:161610 ]
csharrisonf30fc95f2016-08-19 21:43:441611 public_deps = [
1612 "//base/test:test_support",
1613 ]
eroman02b4fe562016-03-04 12:15:161614 deps = [
1615 "//base",
1616 "//base:i18n",
mmenke99b57172016-04-14 20:44:331617 "//net",
eroman02b4fe562016-03-04 12:15:161618 ]
1619}
1620
csharrisonaa314dc2016-04-29 20:15:371621fuzzer_test("net_data_job_fuzzer") {
1622 sources = [
1623 "url_request/url_request_data_job_fuzzer.cc",
1624 ]
1625 deps = [
1626 ":net_fuzzer_test_support",
1627 ":test_support",
1628 "//base",
1629 "//net",
1630 ]
1631}
1632
mmenke5552a6a2016-03-28 23:11:591633fuzzer_test("net_mime_sniffer_fuzzer") {
1634 sources = [
1635 "base/mime_sniffer_fuzzer.cc",
1636 ]
1637 deps = [
1638 ":net_fuzzer_test_support",
1639 "//base",
1640 "//net",
1641 ]
mmoroz4a561d32016-07-07 17:45:121642 dict = "data/fuzzer_dictionaries/net_mime_sniffer_fuzzer.dict"
mmenke5552a6a2016-03-28 23:11:591643}
1644
mmoroz565e8df22016-03-04 18:17:201645fuzzer_test("net_parse_proxy_list_pac_fuzzer") {
eromane6264fd2016-03-02 22:46:301646 sources = [
1647 "proxy/parse_proxy_list_pac_fuzzer.cc",
1648 ]
1649 deps = [
eroman02b4fe562016-03-04 12:15:161650 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301651 "//net",
1652 ]
1653}
1654
mmoroz565e8df22016-03-04 18:17:201655fuzzer_test("net_parse_proxy_list_fuzzer") {
eromane6264fd2016-03-02 22:46:301656 sources = [
1657 "proxy/parse_proxy_list_fuzzer.cc",
1658 ]
1659 deps = [
eroman02b4fe562016-03-04 12:15:161660 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301661 "//net",
1662 ]
1663}
1664
mmoroz565e8df22016-03-04 18:17:201665fuzzer_test("net_parse_proxy_bypass_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301666 sources = [
1667 "proxy/parse_proxy_bypass_rules_fuzzer.cc",
1668 ]
1669 deps = [
eroman02b4fe562016-03-04 12:15:161670 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301671 "//net",
1672 ]
1673}
1674
mmoroz565e8df22016-03-04 18:17:201675fuzzer_test("net_parse_proxy_rules_fuzzer") {
eromane6264fd2016-03-02 22:46:301676 sources = [
1677 "proxy/parse_proxy_rules_fuzzer.cc",
1678 ]
1679 deps = [
eroman02b4fe562016-03-04 12:15:161680 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301681 "//net",
1682 ]
metzman31db75e2016-08-03 22:33:271683 dict = "data/fuzzer_dictionaries/net_parse_proxy_bypass_rules_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301684}
1685
mmoroz565e8df22016-03-04 18:17:201686fuzzer_test("net_parse_data_url_fuzzer") {
eromane6264fd2016-03-02 22:46:301687 sources = [
1688 "base/parse_data_url_fuzzer.cc",
1689 ]
1690 deps = [
eroman02b4fe562016-03-04 12:15:161691 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301692 "//base",
1693 "//net",
1694 ]
mmoroz4a561d32016-07-07 17:45:121695 dict = "data/fuzzer_dictionaries/net_parse_data_url_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301696}
1697
mmoroz565e8df22016-03-04 18:17:201698fuzzer_test("net_parse_ip_pattern_fuzzer") {
eromane6264fd2016-03-02 22:46:301699 sources = [
1700 "base/parse_ip_pattern_fuzzer.cc",
1701 ]
1702 deps = [
eroman02b4fe562016-03-04 12:15:161703 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301704 "//net",
1705 ]
1706}
1707
mmoroz565e8df22016-03-04 18:17:201708fuzzer_test("net_get_domain_and_registry_fuzzer") {
eromane6264fd2016-03-02 22:46:301709 sources = [
1710 "base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc",
1711 ]
1712 deps = [
eroman02b4fe562016-03-04 12:15:161713 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301714 "//base",
eromane6264fd2016-03-02 22:46:301715 "//net",
1716 ]
mmoroz4a561d32016-07-07 17:45:121717 dict = "data/fuzzer_dictionaries/net_get_domain_and_registry_fuzzer.dict"
eromane6264fd2016-03-02 22:46:301718}
1719
mattmafe43b82016-04-28 20:40:541720fuzzer_test("net_cert_verify_name_match_fuzzer") {
1721 sources = [
1722 "cert/internal/verify_name_match_fuzzer.cc",
1723 ]
1724 deps = [
1725 ":net_fuzzer_test_support",
1726 "//base",
1727 "//net",
1728 ]
1729}
1730
mattm2c637da42016-04-28 02:55:591731fuzzer_test("net_cert_normalize_name_fuzzer") {
1732 sources = [
1733 "cert/internal/verify_name_match_normalizename_fuzzer.cc",
1734 ]
1735 deps = [
1736 "//base",
1737 "//net",
1738 ]
1739}
1740
mattmafe43b82016-04-28 20:40:541741fuzzer_test("net_cert_verify_name_in_subtree_fuzzer") {
1742 sources = [
1743 "cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc",
1744 ]
1745 deps = [
1746 ":net_fuzzer_test_support",
1747 "//base",
1748 "//net",
1749 ]
1750}
1751
nharper85d3b6f2016-04-28 20:58:191752fuzzer_test("net_cert_parse_certificate_fuzzer") {
1753 sources = [
1754 "cert/internal/parse_certificate_fuzzer.cc",
1755 ]
1756 deps = [
1757 "//base",
1758 "//net",
1759 ]
1760}
1761
mmoroz565e8df22016-03-04 18:17:201762fuzzer_test("net_parse_cookie_line_fuzzer") {
eromane6264fd2016-03-02 22:46:301763 sources = [
1764 "cookies/parse_cookie_line_fuzzer.cc",
1765 ]
1766 deps = [
eroman02b4fe562016-03-04 12:15:161767 ":net_fuzzer_test_support",
eromane6264fd2016-03-02 22:46:301768 "//net",
1769 ]
1770}
1771
mmoroz565e8df22016-03-04 18:17:201772fuzzer_test("net_dns_record_fuzzer") {
eromanfe8659e2016-03-02 23:47:021773 sources = [
1774 "dns/dns_record_fuzzer.cc",
1775 ]
1776 deps = [
eroman02b4fe562016-03-04 12:15:161777 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021778 "//base",
1779 "//net",
1780 ]
mmoroz4a561d32016-07-07 17:45:121781 dict = "data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
eromanfe8659e2016-03-02 23:47:021782}
1783
zhongyi273af9f2016-04-28 18:46:341784fuzzer_test("net_dns_hosts_parse_fuzzer") {
1785 sources = [
1786 "dns/dns_hosts_parse_fuzzer.cc",
1787 ]
1788 deps = [
1789 ":net_fuzzer_test_support",
1790 "//base",
1791 "//net",
1792 ]
mmoroz4a561d32016-07-07 17:45:121793 dict = "data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
zhongyi273af9f2016-04-28 18:46:341794}
1795
mmenke91c17162016-06-02 16:03:231796fuzzer_test("net_host_resolver_impl_fuzzer") {
1797 sources = [
mmenke91c17162016-06-02 16:03:231798 "dns/host_resolver_impl_fuzzer.cc",
1799 ]
1800 deps = [
1801 ":net_fuzzer_test_support",
1802 ":test_support",
1803 "//base",
1804 "//net",
1805 ]
mmoroz4a561d32016-07-07 17:45:121806 dict = "data/fuzzer_dictionaries/net_host_resolver_impl_fuzzer.dict"
mmenke91c17162016-06-02 16:03:231807}
1808
mmenke44e8e9c2016-03-29 18:38:571809fuzzer_test("net_http_stream_parser_fuzzer") {
1810 sources = [
1811 "http/http_stream_parser_fuzzer.cc",
1812 ]
1813 deps = [
1814 ":net_fuzzer_test_support",
1815 ":test_support",
1816 "//base",
1817 "//net",
1818 ]
mmoroz4a561d32016-07-07 17:45:121819 dict = "data/fuzzer_dictionaries/net_http_stream_parser_fuzzer.dict"
mmenke44e8e9c2016-03-29 18:38:571820}
1821
xunjielid5ffeaf2016-11-01 15:22:001822if (!disable_brotli_filter) {
1823 fuzzer_test("net_brotli_source_stream_fuzzer") {
1824 sources = [
1825 "filter/brotli_source_stream_fuzzer.cc",
1826 ]
1827 deps = [
1828 ":net_fuzzer_test_support",
1829 ":test_support",
1830 "//base",
1831 "//net",
1832 ]
1833 }
1834}
1835
xunjieli75837332016-10-31 16:51:261836fuzzer_test("net_gzip_source_stream_fuzzer") {
1837 sources = [
1838 "filter/gzip_source_stream_fuzzer.cc",
1839 ]
1840 deps = [
1841 ":net_fuzzer_test_support",
1842 ":test_support",
1843 "//base",
1844 "//net",
1845 ]
1846}
1847
mmoroz565e8df22016-03-04 18:17:201848fuzzer_test("net_ftp_ctrl_response_fuzzer") {
eromanfe8659e2016-03-02 23:47:021849 sources = [
1850 "ftp/ftp_ctrl_response_fuzzer.cc",
1851 ]
1852 deps = [
eroman02b4fe562016-03-04 12:15:161853 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021854 "//base",
1855 "//net",
1856 ]
1857}
1858
mmoroz565e8df22016-03-04 18:17:201859fuzzer_test("net_ftp_directory_listing_fuzzer") {
eromanfe8659e2016-03-02 23:47:021860 sources = [
1861 "ftp/ftp_directory_listing_fuzzer.cc",
1862 ]
1863 deps = [
eroman02b4fe562016-03-04 12:15:161864 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021865 "//base",
eromanfe8659e2016-03-02 23:47:021866 "//net",
1867 ]
1868}
1869
mmoroz565e8df22016-03-04 18:17:201870fuzzer_test("net_unescape_url_component_fuzzer") {
eromanfe8659e2016-03-02 23:47:021871 sources = [
1872 "base/unescape_url_component_fuzzer.cc",
1873 ]
1874 deps = [
eroman02b4fe562016-03-04 12:15:161875 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021876 "//base",
1877 "//net",
1878 ]
mmoroz34eb0082016-03-11 14:32:011879 dict = "base/unescape_url_component_fuzzer.dict"
mmoroz062a4a62016-04-12 09:02:331880 libfuzzer_options = [ "max_len = 2048" ]
eromanfe8659e2016-03-02 23:47:021881}
1882
ricea7b870e72016-09-01 04:41:041883fuzzer_test("net_websocket_deflate_stream_fuzzer") {
1884 sources = [
1885 "websockets/websocket_deflate_stream_fuzzer.cc",
1886 ]
1887 deps = [
1888 ":net_fuzzer_test_support",
1889 "//net",
1890 ]
1891 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
1892 libfuzzer_options = [ "max_len=512" ]
1893}
1894
riceaf9dcc092016-09-13 12:42:001895fuzzer_test("net_websocket_extension_parser_fuzzer") {
1896 sources = [
1897 "websockets/websocket_extension_parser_fuzzer.cc",
1898 ]
1899 deps = [
1900 ":net_fuzzer_test_support",
1901 "//net",
1902 ]
1903 dict = "data/fuzzer_dictionaries/net_websocket_extension_parser_fuzzer.dict"
1904 libfuzzer_options = [ "max_len = 256" ]
1905}
1906
mmoroz565e8df22016-03-04 18:17:201907fuzzer_test("net_websocket_frame_parser_fuzzer") {
eromanfe8659e2016-03-02 23:47:021908 sources = [
1909 "websockets/websocket_frame_parser_fuzzer.cc",
1910 ]
1911 deps = [
eroman02b4fe562016-03-04 12:15:161912 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021913 "//net",
1914 ]
mmoroz4a561d32016-07-07 17:45:121915 dict = "data/fuzzer_dictionaries/net_websocket_frame_parser_fuzzer.dict"
ricea105ae612016-09-08 08:00:071916 libfuzzer_options = [ "max_len=256" ]
eromanfe8659e2016-03-02 23:47:021917}
1918
mmoroz565e8df22016-03-04 18:17:201919fuzzer_test("net_http_chunked_decoder_fuzzer") {
eromanfe8659e2016-03-02 23:47:021920 sources = [
1921 "http/http_chunked_decoder_fuzzer.cc",
1922 ]
1923 deps = [
eroman02b4fe562016-03-04 12:15:161924 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021925 "//net",
1926 ]
1927}
1928
mmenke8e9314bc2016-04-15 21:45:021929fuzzer_test("net_http_proxy_client_socket_fuzzer") {
1930 sources = [
1931 "http/http_proxy_client_socket_fuzzer.cc",
1932 ]
1933 deps = [
1934 ":net_fuzzer_test_support",
1935 ":test_support",
1936 "//base",
1937 "//net",
1938 ]
mmoroz4a561d32016-07-07 17:45:121939 dict = "data/fuzzer_dictionaries/net_http_proxy_client_socket_fuzzer.dict"
mmenke8e9314bc2016-04-15 21:45:021940}
1941
mmoroz9299ef9b2016-09-01 17:37:091942fuzzer_test("net_parse_url_hostname_to_address_fuzzer") {
1943 sources = [
1944 "base/parse_url_hostname_to_address_fuzzer.cc",
1945 ]
1946 deps = [
1947 ":net_fuzzer_test_support",
1948 "//base",
1949 "//net",
1950 ]
1951 libfuzzer_options = [ "max_len=512" ]
1952 seed_corpus = "data/fuzzer_data/hostnames/"
1953}
1954
mmoroz565e8df22016-03-04 18:17:201955fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
eromanfe8659e2016-03-02 23:47:021956 sources = [
rchd4db7c152016-07-29 21:58:121957 "quic/core/quic_crypto_framer_parse_message_fuzzer.cc",
eromanfe8659e2016-03-02 23:47:021958 ]
1959 deps = [
eroman02b4fe562016-03-04 12:15:161960 ":net_fuzzer_test_support",
eromanfe8659e2016-03-02 23:47:021961 "//base",
1962 "//net",
1963 ]
1964}
mmenke99b57172016-04-14 20:44:331965
1966fuzzer_test("net_socks_client_socket_fuzzer") {
1967 sources = [
1968 "socket/socks_client_socket_fuzzer.cc",
1969 ]
1970 deps = [
1971 ":net_fuzzer_test_support",
1972 ":test_support",
1973 "//base",
1974 "//net",
1975 ]
1976}
1977
1978fuzzer_test("net_socks5_client_socket_fuzzer") {
1979 sources = [
1980 "socket/socks5_client_socket_fuzzer.cc",
1981 ]
1982 deps = [
1983 ":net_fuzzer_test_support",
1984 ":test_support",
1985 "//base",
1986 "//net",
1987 ]
1988}
mmenkec951d412016-04-28 19:05:221989
mmenkea7da0712016-11-21 21:12:311990fuzzer_test("net_url_request_ftp_fuzzer") {
1991 sources = [
1992 "url_request/url_request_ftp_fuzzer.cc",
1993 ]
1994 deps = [
1995 ":net_fuzzer_test_support",
1996 ":test_support",
1997 "//base",
1998 "//net",
1999 ]
2000 dict = "data/fuzzer_dictionaries/net_url_request_ftp_fuzzer.dict"
2001 seed_corpus = "data/fuzzer_data/net_url_request_ftp_fuzzer/"
2002}
2003
mmenkec951d412016-04-28 19:05:222004fuzzer_test("net_url_request_fuzzer") {
2005 sources = [
2006 "url_request/url_request_fuzzer.cc",
2007 ]
2008 deps = [
2009 ":net_fuzzer_test_support",
2010 ":test_support",
2011 "//base",
2012 "//net",
2013 ]
mmoroz4a561d32016-07-07 17:45:122014 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict"
mmenkec951d412016-04-28 19:05:222015}
csharrison88d2a612016-09-09 16:58:542016
2017fuzzer_test("net_auth_challenge_tokenizer_fuzzer") {
2018 sources = [
2019 "http/http_auth_challenge_tokenizer_fuzzer.cc",
2020 ]
2021 deps = [
2022 ":net_fuzzer_test_support",
2023 ":test_support",
2024 "//base",
2025 "//net",
2026 ]
2027}
martijndb9ad4f2016-10-26 18:34:092028
2029fuzzer_test("net_http_security_headers_hsts_fuzzer") {
2030 sources = [
2031 "http/http_security_headers_hsts_fuzzer.cc",
2032 ]
2033 deps = [
2034 "//base",
2035 "//net",
2036 ]
2037 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2038}
2039
2040fuzzer_test("net_http_security_headers_hpkp_fuzzer") {
2041 sources = [
2042 "http/http_security_headers_hpkp_fuzzer.cc",
2043 ]
2044 deps = [
martijn15387afb2016-10-27 22:21:042045 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092046 "//base",
2047 "//net",
2048 "//url",
2049 ]
2050 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2051}
2052
2053fuzzer_test("net_http_security_headers_hpkp_report_only_fuzzer") {
2054 sources = [
2055 "http/http_security_headers_hpkp_report_only_fuzzer.cc",
2056 ]
2057 deps = [
martijn15387afb2016-10-27 22:21:042058 ":net_fuzzer_test_support",
martijndb9ad4f2016-10-26 18:34:092059 "//base",
2060 "//net",
2061 "//url",
2062 ]
2063 dict = "data/fuzzer_dictionaries/net_http_security_headers_fuzzer.dict"
2064}