[email protected] | e4c029f | 2013-01-20 01:10:24 | [diff] [blame] | 1 | # Copyright 2013 The Chromium Authors. All rights reserved. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'variables': { |
| 7 | 'chromium_code': 1, |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 8 | 'linux_link_kerberos%': 0, |
| 9 | 'conditions': [ |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 10 | ['chromeos==1 or embedded==1 or OS=="ios"', { |
| 11 | # Disable Kerberos on ChromeOS and iOS, at least for now. |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 12 | # It needs configuration (krb5.conf and so on). |
| 13 | 'use_kerberos%': 0, |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 14 | }, { # chromeos == 0 and embedded==0 and OS!="ios" |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 15 | 'use_kerberos%': 1, |
| 16 | }], |
[email protected] | 7b265e8d | 2013-02-20 20:35:45 | [diff] [blame] | 17 | ['OS=="android" and target_arch != "ia32"', { |
[email protected] | 9e079cb | 2012-06-26 13:38:02 | [diff] [blame] | 18 | # The way the cache uses mmap() is inefficient on some Android devices. |
| 19 | # If this flag is set, we hackily avoid using mmap() in the disk cache. |
[email protected] | 7b265e8d | 2013-02-20 20:35:45 | [diff] [blame] | 20 | # We are pretty confident that mmap-ing the index would not hurt any |
| 21 | # existing x86 android devices, but we cannot be so sure about the |
| 22 | # variety of ARM devices. So enable it for x86 only for now. |
[email protected] | 9e079cb | 2012-06-26 13:38:02 | [diff] [blame] | 23 | 'posix_avoid_mmap%': 1, |
| 24 | }, { |
| 25 | 'posix_avoid_mmap%': 0, |
| 26 | }], |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 27 | ['OS=="ios"', { |
| 28 | # Websockets and socket stream are not used on iOS. |
| 29 | 'enable_websockets%': 0, |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 30 | # iOS does not use V8. |
| 31 | 'use_v8_in_net%': 0, |
[email protected] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 32 | 'enable_built_in_dns%': 0, |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 33 | }, { |
| 34 | 'enable_websockets%': 1, |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 35 | 'use_v8_in_net%': 1, |
[email protected] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 36 | 'enable_built_in_dns%': 1, |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 37 | }], |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 38 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 39 | }, |
[email protected] | 99ff993 | 2011-09-07 14:14:54 | [diff] [blame] | 40 | 'includes': [ |
| 41 | '../build/win_precompile.gypi', |
[email protected] | 18f84065 | 2014-04-10 20:31:37 | [diff] [blame] | 42 | 'net.gypi', |
[email protected] | 99ff993 | 2011-09-07 14:14:54 | [diff] [blame] | 43 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 44 | 'targets': [ |
| 45 | { |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 46 | 'target_name': 'net_derived_sources', |
| 47 | 'type': 'none', |
| 48 | 'sources': [ |
| 49 | 'base/registry_controlled_domains/effective_tld_names.gperf', |
| 50 | 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf', |
| 51 | 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf', |
| 52 | 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf', |
| 53 | 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf', |
| 54 | 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf', |
| 55 | 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf', |
ricea | 7afa523 | 2015-12-01 20:55:23 | [diff] [blame] | 56 | 'base/stale_while_revalidate_experiment_domains.gperf', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 57 | ], |
| 58 | 'rules': [ |
| 59 | { |
| 60 | 'rule_name': 'dafsa', |
| 61 | 'extension': 'gperf', |
| 62 | 'outputs': [ |
| 63 | '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc', |
| 64 | ], |
| 65 | 'inputs': [ |
ricea | 3f054c2 | 2015-11-13 06:48:22 | [diff] [blame] | 66 | 'tools/dafsa/make_dafsa.py', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 67 | ], |
| 68 | 'action': [ |
| 69 | 'python', |
ricea | 3f054c2 | 2015-11-13 06:48:22 | [diff] [blame] | 70 | 'tools/dafsa/make_dafsa.py', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 71 | '<(RULE_INPUT_PATH)', |
| 72 | '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc', |
| 73 | ], |
| 74 | }, |
| 75 | ], |
| 76 | 'direct_dependent_settings': { |
| 77 | 'include_dirs': [ |
| 78 | '<(SHARED_INTERMEDIATE_DIR)' |
| 79 | ], |
| 80 | }, |
| 81 | }, |
| 82 | { |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 83 | # Protobuf compiler / generator for QUIC crypto protocol buffer. |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 84 | # GN version: //net:net_quic_proto |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 85 | 'target_name': 'net_quic_proto', |
| 86 | 'type': 'static_library', |
| 87 | 'sources': [ |
| 88 | 'quic/proto/cached_network_parameters.proto', |
| 89 | 'quic/proto/source_address_token.proto', |
| 90 | ], |
| 91 | 'variables': { |
| 92 | 'enable_wexit_time_destructors': 1, |
| 93 | 'proto_in_dir': 'quic/proto', |
| 94 | 'proto_out_dir': 'net/quic/proto', |
| 95 | 'cc_generator_options': 'dllexport_decl=NET_EXPORT_PRIVATE:', |
| 96 | 'cc_include': 'net/base/net_export.h', |
| 97 | }, |
| 98 | 'includes': [ |
| 99 | '../build/protoc.gypi', |
| 100 | ], |
| 101 | 'defines': [ |
| 102 | 'NET_IMPLEMENTATION', |
| 103 | ], |
| 104 | }, |
| 105 | { |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 106 | # GN version: //net |
[email protected] | 8858a11f4 | 2011-05-04 17:55:53 | [diff] [blame] | 107 | 'target_name': 'net', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 108 | 'dependencies': [ |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 109 | '../url/url.gyp:url_lib', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 110 | ], |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 111 | 'includes': [ 'net_common.gypi' ], |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 112 | |
| 113 | 'conditions': [ |
| 114 | # ICU Alternatives |
| 115 | ['use_platform_icu_alternatives == 1', { |
| 116 | 'conditions': [ |
| 117 | ['OS == "android"', { |
| 118 | 'sources': [ |
| 119 | 'base/net_string_util_icu_alternatives_android.cc', |
| 120 | 'base/net_string_util_icu_alternatives_android.h', |
| 121 | ], |
| 122 | }], |
| 123 | ['OS == "ios"', { |
| 124 | 'sources': [ |
| 125 | 'base/net_string_util_icu_alternatives_ios.mm', |
| 126 | ], |
| 127 | }], |
| 128 | ], |
| 129 | }, |
| 130 | # 'use_platform_icu_alternatives != 1' |
| 131 | { |
| 132 | 'sources': [ |
| 133 | 'base/filename_util_icu.cc', |
| 134 | 'base/net_string_util_icu.cc', |
| 135 | ], |
| 136 | 'dependencies': [ |
| 137 | '../base/base.gyp:base_i18n', |
| 138 | '../third_party/icu/icu.gyp:icui18n', |
| 139 | '../third_party/icu/icu.gyp:icuuc', |
| 140 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 141 | 'net_quic_proto', |
| 142 | ], |
| 143 | }], |
| 144 | # Brotli support. |
| 145 | ['disable_brotli_filter == 1', { |
| 146 | 'sources': [ |
| 147 | 'filter/brotli_filter_disabled.cc', |
| 148 | ], |
| 149 | }, |
| 150 | # 'disable_brotli_filter != 1' |
| 151 | { |
| 152 | 'sources': [ |
| 153 | 'filter/brotli_filter.cc', |
| 154 | ], |
| 155 | 'dependencies': [ |
| 156 | '../third_party/brotli/brotli.gyp:brotli', |
| 157 | ], |
| 158 | }], |
| 159 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 160 | }, |
| 161 | { |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 162 | # GN version: //net:net_unittests |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 163 | 'target_name': 'net_unittests', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 164 | 'type': '<(gtest_target_type)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 165 | 'dependencies': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 166 | '../base/base.gyp:base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 167 | '../base/base.gyp:base_i18n', |
[email protected] | 67875f51 | 2011-05-21 00:18:30 | [diff] [blame] | 168 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 828a7a81 | 2012-09-05 10:12:35 | [diff] [blame] | 169 | '../crypto/crypto.gyp:crypto', |
[email protected] | 190933f | 2014-07-28 09:56:51 | [diff] [blame] | 170 | '../crypto/crypto.gyp:crypto_test_support', |
[email protected] | 06489a01 | 2009-12-10 08:12:54 | [diff] [blame] | 171 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 172 | '../testing/gtest.gyp:gtest', |
[email protected] | e86aaca | 2009-08-12 17:58:57 | [diff] [blame] | 173 | '../third_party/zlib/zlib.gyp:zlib', |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 174 | '../url/url.gyp:url_url_features', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 175 | '../url/url.gyp:url_lib', |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 176 | 'balsa', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 177 | 'net', |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 178 | 'net_quic_proto', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 179 | 'net_derived_sources', |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 180 | 'net_extras', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 181 | 'net_test_support', |
rch | a6d42cd | 2015-03-22 05:13:58 | [diff] [blame] | 182 | 'simple_quic_tools', |
ricea | 7afa523 | 2015-12-01 20:55:23 | [diff] [blame] | 183 | 'stale_while_revalidate_experiment_domains', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 184 | ], |
| 185 | 'sources': [ |
[email protected] | 7f8afda | 2014-04-12 05:18:55 | [diff] [blame] | 186 | '<@(net_test_sources)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 187 | ], |
| 188 | 'conditions': [ |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 189 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 190 | 'dependencies': [ |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 191 | 'epoll_quic_tools', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 192 | 'epoll_server', |
| 193 | 'flip_in_mem_edsm_server_base', |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 194 | ], |
| 195 | 'sources': [ |
[email protected] | 7f8afda | 2014-04-12 05:18:55 | [diff] [blame] | 196 | '<@(net_linux_test_sources)', |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 197 | ], |
| 198 | }], |
erikchen | 006a7cf | 2014-12-03 22:27:11 | [diff] [blame] | 199 | ['OS == "mac" or OS == "ios"', { |
| 200 | 'sources': [ |
| 201 | '<@(net_base_test_mac_ios_sources)', |
| 202 | ], |
| 203 | }], |
[email protected] | f50278cd | 2010-08-24 17:34:08 | [diff] [blame] | 204 | ['chromeos==1', { |
| 205 | 'sources!': [ |
[email protected] | fcd1e76 | 2012-07-11 14:43:50 | [diff] [blame] | 206 | 'proxy/proxy_config_service_linux_unittest.cc', |
[email protected] | f50278cd | 2010-08-24 17:34:08 | [diff] [blame] | 207 | ], |
| 208 | }], |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 209 | [ 'OS == "android"', { |
| 210 | 'sources!': [ |
[email protected] | 8fddf1d | 2014-03-27 18:08:06 | [diff] [blame] | 211 | # See bug http://crbug.com/344533. |
| 212 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 213 | ], |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 214 | 'dependencies': [ |
| 215 | 'net_javatests', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 216 | ], |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 217 | }], |
davidben | 0ee13e37 | 2015-04-16 23:23:10 | [diff] [blame] | 218 | [ 'use_nss_certs != 1', { |
[email protected] | 5482ef9e | 2013-12-11 04:27:43 | [diff] [blame] | 219 | 'sources!': [ |
davidben | 2bcbc6bc | 2015-04-22 02:36:41 | [diff] [blame] | 220 | 'cert/nss_cert_database_unittest.cc', |
| 221 | 'cert/nss_cert_database_chromeos_unittest.cc', |
| 222 | 'cert/nss_profile_filter_chromeos_unittest.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 223 | 'ssl/client_cert_store_nss_unittest.cc', |
[email protected] | 5482ef9e | 2013-12-11 04:27:43 | [diff] [blame] | 224 | ], |
| 225 | }], |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 226 | [ 'use_openssl == 1', { |
| 227 | # Avoid compiling/linking with the system library. |
| 228 | 'dependencies': [ |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 229 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 230 | ], |
davidben | 2bcbc6bc | 2015-04-22 02:36:41 | [diff] [blame] | 231 | }], |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 232 | [ 'use_nss_verifier == 1', { |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 233 | 'conditions': [ |
| 234 | [ 'desktop_linux == 1 or chromeos == 1', { |
| 235 | 'dependencies': [ |
| 236 | '../build/linux/system.gyp:ssl', |
| 237 | ], |
| 238 | }, { # desktop_linux == 0 and chromeos == 0 |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 239 | 'dependencies': [ |
| 240 | '../third_party/nss/nss.gyp:nspr', |
| 241 | '../third_party/nss/nss.gyp:nss', |
| 242 | 'third_party/nss/ssl.gyp:libssl', |
| 243 | ], |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 244 | }], |
| 245 | ], |
| 246 | }], |
[email protected] | 9c210d9 | 2011-08-15 17:34:01 | [diff] [blame] | 247 | [ 'use_kerberos==1', { |
| 248 | 'defines': [ |
| 249 | 'USE_KERBEROS', |
| 250 | ], |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 251 | }], |
| 252 | [ 'use_kerberos==0 or OS == "android"', { |
| 253 | # These are excluded on Android, because the actual Kerberos support, |
| 254 | # which these test, is in a separate app on Android. |
[email protected] | 9c210d9 | 2011-08-15 17:34:01 | [diff] [blame] | 255 | 'sources!': [ |
| 256 | 'http/http_auth_gssapi_posix_unittest.cc', |
[email protected] | 9c210d9 | 2011-08-15 17:34:01 | [diff] [blame] | 257 | 'http/mock_gssapi_library_posix.cc', |
| 258 | 'http/mock_gssapi_library_posix.h', |
| 259 | ], |
| 260 | }], |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 261 | [ 'use_kerberos==0', { |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 262 | 'sources!': [ |
| 263 | 'http/http_auth_handler_negotiate_unittest.cc', |
| 264 | ], |
| 265 | }], |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 266 | [ 'use_nss_verifier == 0', { |
| 267 | # Only include this test when using NSS for cert verification. |
[email protected] | b3270fe | 2013-05-24 06:34:55 | [diff] [blame] | 268 | 'sources!': [ |
eroman | ed744f3 | 2015-04-09 06:35:49 | [diff] [blame] | 269 | 'cert_net/nss_ocsp_unittest.cc', |
[email protected] | b3270fe | 2013-05-24 06:34:55 | [diff] [blame] | 270 | ], |
| 271 | }], |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 272 | [ 'use_nss_verifier == 0 and OS == "ios"', { |
| 273 | # Only include these files on iOS when using NSS for cert |
| 274 | # verification. |
| 275 | 'sources!': [ |
| 276 | 'cert/x509_util_ios.cc', |
| 277 | 'cert/x509_util_ios.h', |
| 278 | ], |
| 279 | }], |
svaldez | 303d7d4 | 2016-03-25 20:37:13 | [diff] [blame] | 280 | [ 'use_nss_verifier == 1 and OS == "ios"', { |
| 281 | 'sources!': [ |
| 282 | 'cert/cert_verify_proc_ios.cc', |
| 283 | 'cert/cert_verify_proc_ios.h', |
| 284 | 'cert/x509_certificate_openssl_ios.cc', |
| 285 | ], |
| 286 | }], |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 287 | [ 'use_openssl==1', { |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 288 | 'sources!': [ |
[email protected] | b06431078 | 2013-05-30 21:12:17 | [diff] [blame] | 289 | 'quic/test_tools/crypto_test_utils_nss.cc', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 290 | ], |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 291 | }, { # else !use_openssl: remove the unneeded files and pull in NSS. |
[email protected] | 3c5f6db | 2011-10-18 01:47:04 | [diff] [blame] | 292 | 'sources!': [ |
[email protected] | b06431078 | 2013-05-30 21:12:17 | [diff] [blame] | 293 | 'quic/test_tools/crypto_test_utils_openssl.cc', |
davidben | dafe4e5 | 2015-04-08 22:53:52 | [diff] [blame] | 294 | 'ssl/ssl_client_session_cache_openssl_unittest.cc', |
[email protected] | 3c5f6db | 2011-10-18 01:47:04 | [diff] [blame] | 295 | ], |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 296 | }, |
| 297 | ], |
[email protected] | e1b2d73 | 2014-03-28 16:20:32 | [diff] [blame] | 298 | [ 'use_openssl_certs == 0', { |
| 299 | 'sources!': [ |
| 300 | 'ssl/openssl_client_key_store_unittest.cc', |
| 301 | ], |
| 302 | }], |
jbudorick | 1273a84 | 2016-04-01 19:50:05 | [diff] [blame] | 303 | [ 'enable_websockets == 1', { |
| 304 | 'sources': [ |
| 305 | '<@(net_websockets_test_sources)', |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 306 | ], |
jbudorick | 1273a84 | 2016-04-01 19:50:05 | [diff] [blame] | 307 | 'dependencies': [ |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 308 | 'http_server', |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 309 | ], |
| 310 | }], |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 311 | ['disable_file_support==1', { |
| 312 | 'sources!': [ |
| 313 | 'base/directory_lister_unittest.cc', |
Thiago Farina | d673bb12 | 2016-01-06 23:18:16 | [diff] [blame] | 314 | 'base/directory_listing_unittest.cc', |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 315 | 'url_request/url_request_file_dir_job_unittest.cc', |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 316 | 'url_request/url_request_file_job_unittest.cc', |
| 317 | ], |
| 318 | }], |
[email protected] | 9bfe0ab | 2012-08-30 13:18:11 | [diff] [blame] | 319 | [ 'disable_ftp_support==1', { |
| 320 | 'sources/': [ |
| 321 | ['exclude', '^ftp/'], |
| 322 | ], |
| 323 | 'sources!': [ |
| 324 | 'url_request/url_request_ftp_job_unittest.cc', |
| 325 | ], |
| 326 | }, |
| 327 | ], |
[email protected] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 328 | [ 'enable_built_in_dns!=1', { |
| 329 | 'sources!': [ |
| 330 | 'dns/address_sorter_posix_unittest.cc', |
| 331 | 'dns/address_sorter_unittest.cc', |
| 332 | ], |
| 333 | }, |
| 334 | ], |
xunjieli | 729cd1f7 | 2015-08-31 21:26:50 | [diff] [blame] | 335 | [ 'use_v8_in_net==1', { |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 336 | 'dependencies': [ |
| 337 | 'net_with_v8', |
| 338 | ], |
| 339 | }, { # else: !use_v8_in_net |
| 340 | 'sources!': [ |
[email protected] | 501e2d4 | 2013-01-30 22:30:49 | [diff] [blame] | 341 | 'proxy/proxy_resolver_v8_tracing_unittest.cc', |
sammc | f2d1ea0 | 2015-06-29 02:58:47 | [diff] [blame] | 342 | 'proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 343 | 'proxy/proxy_resolver_v8_unittest.cc', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 344 | ], |
| 345 | }, |
| 346 | ], |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 347 | |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 348 | [ 'use_v8_in_net==1 and OS != "android"', { |
| 349 | 'dependencies': [ |
| 350 | 'net_with_v8', |
| 351 | 'net_browser_services', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 352 | 'net_utility_services', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 353 | '../mojo/mojo_edk.gyp:mojo_system_impl', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 354 | ], |
| 355 | }, { # else |
| 356 | 'sources!': [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 357 | 'dns/host_resolver_mojo_unittest.cc', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 358 | 'dns/mojo_host_resolver_impl_unittest.cc', |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 359 | 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 360 | 'proxy/mojo_proxy_resolver_impl_unittest.cc', |
sammc | a3242c9 | 2015-07-10 02:38:51 | [diff] [blame] | 361 | 'proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc', |
eroman | dcacef2 | 2015-06-01 19:36:35 | [diff] [blame] | 362 | 'proxy/proxy_resolver_factory_mojo_unittest.cc', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 363 | 'proxy/proxy_service_mojo_unittest.cc', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 364 | ], |
| 365 | }, |
| 366 | ], |
| 367 | |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 368 | [ 'enable_mdns != 1', { |
| 369 | 'sources!' : [ |
[email protected] | f6a9add | 2013-05-23 00:56:36 | [diff] [blame] | 370 | 'dns/mdns_cache_unittest.cc', |
[email protected] | 245b164e | 2013-06-13 22:31:42 | [diff] [blame] | 371 | 'dns/mdns_client_unittest.cc', |
| 372 | 'dns/mdns_query_unittest.cc', |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 373 | 'dns/record_parsed_unittest.cc', |
| 374 | 'dns/record_rdata_unittest.cc', |
| 375 | ], |
| 376 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 377 | [ 'OS == "win"', { |
[email protected] | 8372717 | 2010-06-04 17:58:08 | [diff] [blame] | 378 | 'sources!': [ |
[email protected] | d84316a | 2011-08-18 04:41:21 | [diff] [blame] | 379 | 'dns/dns_config_service_posix_unittest.cc', |
[email protected] | 8372717 | 2010-06-04 17:58:08 | [diff] [blame] | 380 | 'http/http_auth_gssapi_posix_unittest.cc', |
| 381 | ], |
davidben | 1b53bf6ea | 2014-11-05 22:38:41 | [diff] [blame] | 382 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 383 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 384 | 'conditions': [ |
| 385 | [ 'icu_use_data_file_flag == 0', { |
| 386 | # This is needed to trigger the dll copy step on windows. |
| 387 | # TODO(mark): Specifying this here shouldn't be necessary. |
| 388 | 'dependencies': [ |
| 389 | '../third_party/icu/icu.gyp:icudata', |
| 390 | ], |
| 391 | }], |
| 392 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 393 | }, |
| 394 | ], |
[email protected] | d415895 | 2012-09-18 09:04:33 | [diff] [blame] | 395 | [ 'OS == "ios"', { |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 396 | 'actions': [ |
| 397 | { |
| 398 | 'action_name': 'copy_test_data', |
| 399 | 'variables': { |
| 400 | 'test_data_files': [ |
mattm | 61c8073 | 2015-11-02 22:35:44 | [diff] [blame] | 401 | 'data/certificate_policies_unittest/', |
mattm | 2c59d26 | 2015-10-29 05:33:21 | [diff] [blame] | 402 | 'data/name_constraints_unittest/', |
eroman | c1aac5a | 2015-12-18 02:23:06 | [diff] [blame] | 403 | 'data/parse_certificate_unittest/', |
svaldez | be48178 | 2016-03-24 17:16:32 | [diff] [blame] | 404 | 'data/parse_ocsp_unittest/', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 405 | 'data/ssl/certificates/', |
[email protected] | 938347e | 2013-05-20 16:45:38 | [diff] [blame] | 406 | 'data/test.html', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 407 | 'data/url_request_unittest/', |
eroman | c1aac5a | 2015-12-18 02:23:06 | [diff] [blame] | 408 | 'data/verify_certificate_chain_unittest/', |
mattm | 057b015 | 2015-08-11 00:26:24 | [diff] [blame] | 409 | 'data/verify_name_match_unittest/names/', |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 410 | 'data/verify_signed_data_unittest/', |
svaldez | b7f886b3 | 2016-04-12 21:56:06 | [diff] [blame] | 411 | 'third_party/nist-pkits/certs/', |
| 412 | 'third_party/nist-pkits/crls/', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 413 | ], |
| 414 | 'test_data_prefix': 'net', |
| 415 | }, |
| 416 | 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 417 | }, |
| 418 | ], |
| 419 | 'sources!': [ |
| 420 | # TODO(droger): The following tests are disabled because the |
| 421 | # implementation is missing or incomplete. |
| 422 | # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 423 | 'base/keygen_handler_unittest.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 424 | 'disk_cache/backend_unittest.cc', |
[email protected] | 80422f32 | 2014-03-03 20:28:14 | [diff] [blame] | 425 | 'disk_cache/blockfile/block_files_unittest.cc', |
[email protected] | ed60cb3 | 2014-02-04 00:57:28 | [diff] [blame] | 426 | # Need to read input data files. |
eustas | fbec913 | 2015-12-30 14:56:51 | [diff] [blame] | 427 | 'filter/brotli_filter_unittest.cc', |
[email protected] | ed60cb3 | 2014-02-04 00:57:28 | [diff] [blame] | 428 | 'filter/gzip_filter_unittest.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 429 | # Need TestServer. |
eroman | 0fad62b | 2015-04-08 18:54:11 | [diff] [blame] | 430 | "cert_net/cert_net_fetcher_impl_unittest.cc", |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 431 | 'proxy/proxy_script_fetcher_impl_unittest.cc', |
| 432 | 'socket/ssl_client_socket_unittest.cc', |
satorux | eef164ef | 2015-02-16 01:39:34 | [diff] [blame] | 433 | 'socket/ssl_server_socket_unittest.cc', |
| 434 | 'spdy/fuzzing/hpack_fuzz_util_test.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 435 | # Needs GetAppOutput(). |
| 436 | 'test/python_utils_unittest.cc', |
satorux | eef164ef | 2015-02-16 01:39:34 | [diff] [blame] | 437 | 'url_request/url_fetcher_impl_unittest.cc', |
| 438 | 'url_request/url_request_context_builder_unittest.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 439 | |
| 440 | # The following tests are disabled because they don't apply to |
| 441 | # iOS. |
| 442 | # OS is not "linux" or "freebsd" or "openbsd". |
[email protected] | 518c63a | 2014-07-24 03:51:23 | [diff] [blame] | 443 | 'socket/unix_domain_client_socket_posix_unittest.cc', |
[email protected] | 518c63a | 2014-07-24 03:51:23 | [diff] [blame] | 444 | 'socket/unix_domain_server_socket_posix_unittest.cc', |
[email protected] | df53da8 | 2014-02-18 22:27:17 | [diff] [blame] | 445 | |
[email protected] | 8fddf1d | 2014-03-27 18:08:06 | [diff] [blame] | 446 | # See bug http://crbug.com/344533. |
| 447 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
[email protected] | d415895 | 2012-09-18 09:04:33 | [diff] [blame] | 448 | ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 449 | }], |
[email protected] | 87a8085 | 2014-05-17 16:09:58 | [diff] [blame] | 450 | ['OS == "android"', { |
[email protected] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 451 | # TODO(mmenke): This depends on test_support_base, which depends on |
| 452 | # icu. Figure out a way to remove that dependency. |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 453 | 'dependencies': [ |
| 454 | '../testing/android/native_test.gyp:native_test_native_code', |
[email protected] | b397b06 | 2012-06-26 19:33:28 | [diff] [blame] | 455 | ] |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 456 | }], |
rmcilroy | ffe89b4 | 2015-04-10 11:00:15 | [diff] [blame] | 457 | ['use_v8_in_net==1 and v8_use_external_startup_data==1', { |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 458 | 'dependencies': [ |
| 459 | '../gin/gin.gyp:gin', |
| 460 | ] |
| 461 | }], |
kapishnikov | abe280e | 2016-04-14 19:07:16 | [diff] [blame] | 462 | # Unit tests that are not supported by the current ICU alternatives on Android. |
| 463 | ['OS == "android" and use_platform_icu_alternatives == 1', { |
| 464 | 'sources!': [ |
| 465 | 'base/filename_util_unittest.cc', |
| 466 | 'url_request/url_request_job_unittest.cc', |
| 467 | ], |
| 468 | }], |
| 469 | # Unit tests that are not supported by the current ICU alternatives on iOS. |
| 470 | ['OS == "ios" and use_platform_icu_alternatives == 1', { |
| 471 | 'sources!': [ |
| 472 | 'base/filename_util_unittest.cc', |
| 473 | 'base/url_util_unittest.cc', |
| 474 | 'cert/x509_certificate_unittest.cc', |
| 475 | 'socket/ssl_client_socket_pool_unittest.cc', |
| 476 | 'http/http_auth_handler_basic_unittest.cc', |
| 477 | 'http/http_auth_handler_digest_unittest.cc', |
| 478 | 'http/http_auth_handler_factory_unittest.cc', |
| 479 | 'http/http_auth_unittest.cc', |
| 480 | 'http/http_content_disposition_unittest.cc', |
| 481 | 'http/http_network_transaction_unittest.cc', |
| 482 | 'http/http_proxy_client_socket_pool_unittest.cc', |
| 483 | 'spdy/spdy_network_transaction_unittest.cc', |
| 484 | 'spdy/spdy_proxy_client_socket_unittest.cc', |
| 485 | 'url_request/url_request_job_unittest.cc', |
| 486 | 'url_request/url_request_unittest.cc', |
| 487 | ], |
| 488 | }], |
| 489 | # Exclude brotli test if the support for brotli is disabled. |
| 490 | ['disable_brotli_filter == 1', { |
| 491 | 'sources!': [ |
| 492 | 'filter/brotli_filter_unittest.cc', |
| 493 | ], |
| 494 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 495 | ], |
[email protected] | b1874a878 | 2014-02-10 21:36:25 | [diff] [blame] | 496 | 'target_conditions': [ |
| 497 | # These source files are excluded by default platform rules, but they |
| 498 | # are needed in specific cases on other platforms. Re-including them can |
| 499 | # only be done in target_conditions as it is evaluated after the |
| 500 | # platform rules. |
| 501 | ['OS == "android"', { |
| 502 | 'sources/': [ |
| 503 | ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
| 504 | ], |
| 505 | }], |
droger | f83b9126 | 2015-03-05 19:45:19 | [diff] [blame] | 506 | ['OS == "ios"', { |
| 507 | 'sources/': [ |
| 508 | ['include', '^base/mac/url_conversions_unittest\\.mm$'], |
| 509 | ], |
| 510 | }], |
[email protected] | b1874a878 | 2014-02-10 21:36:25 | [diff] [blame] | 511 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 512 | }, |
| 513 | { |
| 514 | 'target_name': 'net_perftests', |
| 515 | 'type': 'executable', |
| 516 | 'dependencies': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 517 | '../base/base.gyp:base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 518 | '../base/base.gyp:base_i18n', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 519 | '../base/base.gyp:test_support_perf', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 520 | '../testing/gtest.gyp:gtest', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 521 | '../url/url.gyp:url_lib', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 522 | 'net', |
rohitrao | 1860223c | 2015-05-16 01:07:14 | [diff] [blame] | 523 | 'net_extras', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 524 | 'net_test_support', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 525 | ], |
| 526 | 'sources': [ |
ricea | 10eb9f5e | 2015-05-19 18:51:57 | [diff] [blame] | 527 | 'base/mime_sniffer_perftest.cc', |
[email protected] | 63ee33bd | 2012-03-15 09:29:58 | [diff] [blame] | 528 | 'cookies/cookie_monster_perftest.cc', |
[email protected] | c2c5cfc | 2014-03-03 16:35:28 | [diff] [blame] | 529 | 'disk_cache/blockfile/disk_cache_perftest.cc', |
rohitrao | 1860223c | 2015-05-16 01:07:14 | [diff] [blame] | 530 | 'extras/sqlite/sqlite_persistent_cookie_store_perftest.cc', |
[email protected] | 448cfef8 | 2009-03-06 01:44:33 | [diff] [blame] | 531 | 'proxy/proxy_resolver_perftest.cc', |
hclam | 5a5ee68 | 2015-02-05 04:18:22 | [diff] [blame] | 532 | 'udp/udp_socket_perftest.cc', |
ricea | b2ab006 | 2014-09-01 09:59:59 | [diff] [blame] | 533 | 'websockets/websocket_frame_perftest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 534 | ], |
| 535 | 'conditions': [ |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 536 | [ 'use_v8_in_net==1', { |
| 537 | 'dependencies': [ |
| 538 | 'net_with_v8', |
| 539 | ], |
| 540 | }, { # else: !use_v8_in_net |
| 541 | 'sources!': [ |
| 542 | 'proxy/proxy_resolver_perftest.cc', |
| 543 | ], |
| 544 | }, |
| 545 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 546 | [ 'OS == "win"', { |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 547 | 'conditions': [ |
| 548 | [ 'icu_use_data_file_flag == 0', { |
| 549 | # This is needed to trigger the dll copy step on windows. |
| 550 | # TODO(mark): Specifying this here shouldn't be necessary. |
| 551 | 'dependencies': [ |
| 552 | '../third_party/icu/icu.gyp:icudata', |
| 553 | ], |
| 554 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 555 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 556 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 557 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 558 | }], |
ricea | b2ab006 | 2014-09-01 09:59:59 | [diff] [blame] | 559 | [ 'enable_websockets != 1', { |
| 560 | 'sources!': [ |
| 561 | 'websockets/websocket_frame_perftest.cc', |
| 562 | ], |
| 563 | }], |
[email protected] | f9ff629f | 2010-09-03 23:54:36 | [diff] [blame] | 564 | ], |
| 565 | }, |
| 566 | { |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 567 | 'target_name': 'net_test_support', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 568 | 'type': 'static_library', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 569 | 'dependencies': [ |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 570 | '../base/base.gyp:base', |
[email protected] | 5f38d71 | 2010-10-26 06:46:59 | [diff] [blame] | 571 | '../base/base.gyp:test_support_base', |
Nico Weber | ab309030 | 2015-01-19 06:14:43 | [diff] [blame] | 572 | '../crypto/crypto.gyp:crypto', |
[email protected] | ed32c21 | 2013-05-14 20:49:29 | [diff] [blame] | 573 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
[email protected] | ff007e16 | 2009-05-23 09:13:15 | [diff] [blame] | 574 | '../testing/gtest.gyp:gtest', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 575 | '../testing/gmock.gyp:gmock', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 576 | '../url/url.gyp:url_lib', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 577 | 'net', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 578 | ], |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 579 | 'export_dependent_settings': [ |
| 580 | '../base/base.gyp:base', |
[email protected] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 581 | # TODO(mmenke): This depends on icu, figure out a way to build tests |
| 582 | # without icu. |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 583 | '../base/base.gyp:test_support_base', |
davidben | 85bad9e | 2015-05-11 20:20:10 | [diff] [blame] | 584 | '../crypto/crypto.gyp:crypto', |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 585 | '../testing/gtest.gyp:gtest', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 586 | '../testing/gmock.gyp:gmock', |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 587 | ], |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 588 | 'sources': [ |
[email protected] | b258e079 | 2013-01-12 07:11:59 | [diff] [blame] | 589 | 'base/load_timing_info_test_util.cc', |
| 590 | 'base/load_timing_info_test_util.h', |
[email protected] | 47a881b | 2011-08-29 22:59:21 | [diff] [blame] | 591 | 'base/mock_file_stream.cc', |
| 592 | 'base/mock_file_stream.h', |
[email protected] | ad74a59 | 2011-01-21 18:40:55 | [diff] [blame] | 593 | 'base/test_completion_callback.cc', |
| 594 | 'base/test_completion_callback.h', |
[email protected] | 42fdb45 | 2012-11-01 12:44:40 | [diff] [blame] | 595 | 'base/test_data_directory.cc', |
| 596 | 'base/test_data_directory.h', |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 597 | 'cert/mock_cert_verifier.cc', |
| 598 | 'cert/mock_cert_verifier.h', |
ryanchung | 987b2ff | 2016-02-19 00:17:12 | [diff] [blame] | 599 | 'cert/mock_client_cert_verifier.cc', |
| 600 | 'cert/mock_client_cert_verifier.h', |
[email protected] | 63ee33bd | 2012-03-15 09:29:58 | [diff] [blame] | 601 | 'cookies/cookie_monster_store_test.cc', |
| 602 | 'cookies/cookie_monster_store_test.h', |
| 603 | 'cookies/cookie_store_test_callbacks.cc', |
| 604 | 'cookies/cookie_store_test_callbacks.h', |
| 605 | 'cookies/cookie_store_test_helpers.cc', |
| 606 | 'cookies/cookie_store_test_helpers.h', |
droger | fd8b277 | 2015-12-04 14:34:56 | [diff] [blame] | 607 | 'cookies/cookie_store_unittest.h', |
[email protected] | 79b3fec | 2011-11-15 22:33:47 | [diff] [blame] | 608 | 'disk_cache/disk_cache_test_base.cc', |
| 609 | 'disk_cache/disk_cache_test_base.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 610 | 'disk_cache/disk_cache_test_util.cc', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 611 | 'disk_cache/disk_cache_test_util.h', |
[email protected] | 78eac2a | 2012-03-14 19:09:27 | [diff] [blame] | 612 | 'dns/dns_test_util.cc', |
[email protected] | 4b0112ab | 2011-07-22 15:58:20 | [diff] [blame] | 613 | 'dns/dns_test_util.h', |
[email protected] | f2cb3cf | 2013-03-21 01:40:53 | [diff] [blame] | 614 | 'dns/mock_host_resolver.cc', |
| 615 | 'dns/mock_host_resolver.h', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 616 | 'dns/mock_mdns_socket_factory.cc', |
| 617 | 'dns/mock_mdns_socket_factory.h', |
[email protected] | c41737d | 2014-05-14 07:47:19 | [diff] [blame] | 618 | 'http/http_transaction_test_util.cc', |
| 619 | 'http/http_transaction_test_util.h', |
vishal.b | 62985ca9 | 2015-04-17 08:45:51 | [diff] [blame] | 620 | 'log/test_net_log.cc', |
| 621 | 'log/test_net_log.h', |
mmenke | 43758e6 | 2015-05-04 21:09:46 | [diff] [blame] | 622 | 'log/test_net_log_entry.cc', |
| 623 | 'log/test_net_log_entry.h', |
mmenke | 0034c54 | 2015-05-05 22:34:59 | [diff] [blame] | 624 | 'log/test_net_log_util.cc', |
mmenke | 43758e6 | 2015-05-04 21:09:46 | [diff] [blame] | 625 | 'log/test_net_log_util.h', |
[email protected] | b6ce91b | 2011-02-10 21:30:50 | [diff] [blame] | 626 | 'proxy/mock_proxy_resolver.cc', |
| 627 | 'proxy/mock_proxy_resolver.h', |
[email protected] | 7258def | 2011-05-17 19:53:00 | [diff] [blame] | 628 | 'proxy/mock_proxy_script_fetcher.cc', |
| 629 | 'proxy/mock_proxy_script_fetcher.h', |
[email protected] | ab501a6a | 2009-05-12 15:07:50 | [diff] [blame] | 630 | 'proxy/proxy_config_service_common_unittest.cc', |
| 631 | 'proxy/proxy_config_service_common_unittest.h', |
[email protected] | f7984fc6 | 2009-06-22 23:26:44 | [diff] [blame] | 632 | 'socket/socket_test_util.cc', |
| 633 | 'socket/socket_test_util.h', |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 634 | 'test/cert_test_util.cc', |
| 635 | 'test/cert_test_util.h', |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 636 | 'test/cert_test_util_nss.cc', |
nharper | 2e171cf | 2015-06-01 20:29:23 | [diff] [blame] | 637 | 'test/channel_id_test_util.cc', |
| 638 | 'test/channel_id_test_util.h', |
[email protected] | 95ac16b | 2013-11-01 01:42:03 | [diff] [blame] | 639 | 'test/ct_test_util.cc', |
| 640 | 'test/ct_test_util.h', |
svaldez | 7d25c56 | 2015-10-30 19:09:45 | [diff] [blame] | 641 | 'test/embedded_test_server/default_handlers.cc', |
| 642 | 'test/embedded_test_server/default_handlers.h', |
[email protected] | eb7388f | 2013-05-09 17:00:26 | [diff] [blame] | 643 | 'test/embedded_test_server/embedded_test_server.cc', |
| 644 | 'test/embedded_test_server/embedded_test_server.h', |
[email protected] | b6e5b6c6 | 2013-05-07 17:50:26 | [diff] [blame] | 645 | 'test/embedded_test_server/http_connection.cc', |
| 646 | 'test/embedded_test_server/http_connection.h', |
| 647 | 'test/embedded_test_server/http_request.cc', |
| 648 | 'test/embedded_test_server/http_request.h', |
| 649 | 'test/embedded_test_server/http_response.cc', |
| 650 | 'test/embedded_test_server/http_response.h', |
svaldez | 6e7e82a2 | 2015-10-28 19:39:53 | [diff] [blame] | 651 | 'test/embedded_test_server/request_handler_util.cc', |
| 652 | 'test/embedded_test_server/request_handler_util.h', |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 653 | 'test/event_waiter.h', |
[email protected] | 8efa4ba4 | 2013-03-18 21:14:14 | [diff] [blame] | 654 | 'test/net_test_suite.cc', |
| 655 | 'test/net_test_suite.h', |
[email protected] | 9af13ce | 2010-09-16 21:45:48 | [diff] [blame] | 656 | 'test/python_utils.cc', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 657 | 'test/python_utils.h', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 658 | 'test/spawned_test_server/base_test_server.cc', |
| 659 | 'test/spawned_test_server/base_test_server.h', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 660 | 'test/spawned_test_server/local_test_server.cc', |
| 661 | 'test/spawned_test_server/local_test_server.h', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 662 | 'test/spawned_test_server/local_test_server_posix.cc', |
| 663 | 'test/spawned_test_server/local_test_server_win.cc', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 664 | 'test/spawned_test_server/spawned_test_server.h', |
brettw | 6315e03 | 2015-11-27 18:38:36 | [diff] [blame] | 665 | 'test/test_certificate_data.h', |
xunjieli | 885de31 | 2015-07-20 16:18:51 | [diff] [blame] | 666 | 'test/url_request/ssl_certificate_error_job.cc', |
| 667 | 'test/url_request/ssl_certificate_error_job.h', |
xunjieli | 2906f15 | 2014-09-12 00:08:23 | [diff] [blame] | 668 | 'test/url_request/url_request_failed_job.cc', |
| 669 | 'test/url_request/url_request_failed_job.h', |
mef | 3e826cf | 2014-12-13 18:40:40 | [diff] [blame] | 670 | 'test/url_request/url_request_mock_data_job.cc', |
| 671 | 'test/url_request/url_request_mock_data_job.h', |
jam | 8e45cd7 | 2015-01-20 16:33:44 | [diff] [blame] | 672 | 'test/url_request/url_request_slow_download_job.cc', |
| 673 | 'test/url_request/url_request_slow_download_job.h', |
[email protected] | 8f2d8bdd | 2012-06-19 23:44:05 | [diff] [blame] | 674 | 'url_request/test_url_fetcher_factory.cc', |
| 675 | 'url_request/test_url_fetcher_factory.h', |
[email protected] | d2db029 | 2011-01-26 20:23:44 | [diff] [blame] | 676 | 'url_request/url_request_test_util.cc', |
| 677 | 'url_request/url_request_test_util.h', |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 678 | ], |
| 679 | 'conditions': [ |
[email protected] | 0dc310a3 | 2013-05-08 23:52:44 | [diff] [blame] | 680 | ['OS != "ios"', { |
[email protected] | 6c204656 | 2010-05-07 23:47:50 | [diff] [blame] | 681 | 'dependencies': [ |
[email protected] | 9cac94e | 2010-10-01 16:35:12 | [diff] [blame] | 682 | '../third_party/protobuf/protobuf.gyp:py_proto', |
[email protected] | 6c204656 | 2010-05-07 23:47:50 | [diff] [blame] | 683 | ], |
sherouk | 3eee4a8 | 2015-09-01 10:42:33 | [diff] [blame] | 684 | }, { |
| 685 | 'sources!': [ |
| 686 | 'test/spawned_test_server/base_test_server.cc', |
| 687 | 'test/spawned_test_server/base_test_server.h', |
| 688 | 'test/spawned_test_server/local_test_server.cc', |
| 689 | 'test/spawned_test_server/local_test_server.h', |
| 690 | 'test/spawned_test_server/local_test_server_posix.cc', |
| 691 | 'test/spawned_test_server/local_test_server_win.cc', |
| 692 | 'test/spawned_test_server/spawned_test_server.h', |
| 693 | ], |
[email protected] | 6c204656 | 2010-05-07 23:47:50 | [diff] [blame] | 694 | }], |
svaldez | a1714ab | 2016-03-18 20:47:53 | [diff] [blame] | 695 | ['use_nss_verifier == 1', { |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 696 | 'conditions': [ |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 697 | [ 'desktop_linux == 1 or chromeos == 1', { |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 698 | 'dependencies': [ |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 699 | '../build/linux/system.gyp:ssl', |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 700 | ], |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 701 | }, { # desktop_linux == 0 and chromeos == 0 |
| 702 | 'dependencies': [ |
| 703 | '../third_party/nss/nss.gyp:nspr', |
| 704 | '../third_party/nss/nss.gyp:nss', |
| 705 | 'third_party/nss/ssl.gyp:libssl', |
| 706 | ], |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 707 | }], |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 708 | ], |
| 709 | }], |
jbudorick | b7043d8 | 2015-06-27 01:43:03 | [diff] [blame] | 710 | ['OS == "android"', { |
| 711 | 'dependencies': [ |
| 712 | 'net_test_jni_headers', |
| 713 | ], |
| 714 | 'sources': [ |
jbudorick | b7043d8 | 2015-06-27 01:43:03 | [diff] [blame] | 715 | 'test/embedded_test_server/android/embedded_test_server_android.cc', |
| 716 | 'test/embedded_test_server/android/embedded_test_server_android.h', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 717 | 'test/spawned_test_server/remote_test_server.cc', |
| 718 | 'test/spawned_test_server/remote_test_server.h', |
| 719 | 'test/spawned_test_server/spawner_communicator.cc', |
| 720 | 'test/spawned_test_server/spawner_communicator.h', |
[email protected] | 3152682 | 2012-03-12 06:04:43 | [diff] [blame] | 721 | ], |
| 722 | }], |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 723 | [ 'use_v8_in_net==1', { |
| 724 | 'dependencies': [ |
| 725 | 'net_with_v8', |
| 726 | ], |
| 727 | }, |
| 728 | ], |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 729 | [ 'enable_mdns != 1', { |
| 730 | 'sources!' : [ |
| 731 | 'dns/mock_mdns_socket_factory.cc', |
| 732 | 'dns/mock_mdns_socket_factory.h' |
| 733 | ] |
| 734 | }], |
davidben | 0ee13e37 | 2015-04-16 23:23:10 | [diff] [blame] | 735 | [ 'use_nss_certs != 1', { |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 736 | 'sources!': [ |
| 737 | 'test/cert_test_util_nss.cc', |
| 738 | ], |
| 739 | }], |
xunjieli | a688820 | 2015-04-14 21:34:25 | [diff] [blame] | 740 | ['disable_file_support != 1', { |
| 741 | 'sources': [ |
| 742 | 'test/url_request/url_request_mock_http_job.cc', |
| 743 | 'test/url_request/url_request_mock_http_job.h', |
| 744 | 'url_request/test_url_request_interceptor.cc', |
| 745 | 'url_request/test_url_request_interceptor.h', |
| 746 | ], |
| 747 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 748 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 749 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 750 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 751 | }, |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 752 | { |
| 753 | 'target_name': 'net_resources', |
| 754 | 'type': 'none', |
[email protected] | 5b91087 | 2010-02-09 01:03:02 | [diff] [blame] | 755 | 'variables': { |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 756 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net', |
[email protected] | 5b91087 | 2010-02-09 01:03:02 | [diff] [blame] | 757 | }, |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 758 | 'actions': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 759 | { |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 760 | 'action_name': 'net_resources', |
| 761 | 'variables': { |
| 762 | 'grit_grd_file': 'base/net_resources.grd', |
| 763 | }, |
| 764 | 'includes': [ '../build/grit_action.gypi' ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 765 | }, |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 766 | ], |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 767 | }, |
[email protected] | 75b91f9 | 2009-06-17 07:28:48 | [diff] [blame] | 768 | { |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 769 | 'target_name': 'net_extras', |
| 770 | 'type': 'static_library', |
| 771 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 772 | 'dependencies': [ |
| 773 | '../base/base.gyp:base', |
| 774 | '../sql/sql.gyp:sql', |
| 775 | 'net', |
| 776 | ], |
| 777 | 'sources': [ |
| 778 | '<@(net_extras_sources)', |
| 779 | ], |
| 780 | }, |
| 781 | { |
[email protected] | a33721a | 2011-02-03 17:23:24 | [diff] [blame] | 782 | 'target_name': 'http_server', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 783 | 'type': 'static_library', |
[email protected] | 8df769e | 2011-11-09 23:08:54 | [diff] [blame] | 784 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 785 | 'dependencies': [ |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 786 | '../base/base.gyp:base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 787 | 'net', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 788 | ], |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 789 | 'sources': [ |
[email protected] | 86c6a0b5 | 2011-08-02 19:49:25 | [diff] [blame] | 790 | 'server/http_connection.cc', |
| 791 | 'server/http_connection.h', |
[email protected] | a33721a | 2011-02-03 17:23:24 | [diff] [blame] | 792 | 'server/http_server.cc', |
| 793 | 'server/http_server.h', |
[email protected] | 1889dc1b | 2010-10-14 22:03:13 | [diff] [blame] | 794 | 'server/http_server_request_info.cc', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 795 | 'server/http_server_request_info.h', |
[email protected] | c700fd15 | 2013-07-23 21:29:11 | [diff] [blame] | 796 | 'server/http_server_response_info.cc', |
| 797 | 'server/http_server_response_info.h', |
[email protected] | 86c6a0b5 | 2011-08-02 19:49:25 | [diff] [blame] | 798 | 'server/web_socket.cc', |
| 799 | 'server/web_socket.h', |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 800 | 'server/web_socket_encoder.cc', |
| 801 | 'server/web_socket_encoder.h', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 802 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 803 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 804 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 805 | }, |
brettw | 690c9667 | 2015-04-21 16:19:54 | [diff] [blame] | 806 | { # GN version: //net:balsa |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 807 | 'target_name': 'balsa', |
| 808 | 'type': 'static_library', |
| 809 | 'dependencies': [ |
| 810 | '../base/base.gyp:base', |
| 811 | 'net', |
| 812 | ], |
| 813 | 'sources': [ |
| 814 | 'tools/balsa/balsa_enums.h', |
| 815 | 'tools/balsa/balsa_frame.cc', |
| 816 | 'tools/balsa/balsa_frame.h', |
| 817 | 'tools/balsa/balsa_headers.cc', |
| 818 | 'tools/balsa/balsa_headers.h', |
| 819 | 'tools/balsa/balsa_headers_token_utils.cc', |
| 820 | 'tools/balsa/balsa_headers_token_utils.h', |
| 821 | 'tools/balsa/balsa_visitor_interface.h', |
| 822 | 'tools/balsa/http_message_constants.cc', |
| 823 | 'tools/balsa/http_message_constants.h', |
| 824 | 'tools/balsa/noop_balsa_visitor.h', |
| 825 | 'tools/balsa/simple_buffer.cc', |
| 826 | 'tools/balsa/simple_buffer.h', |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 827 | 'tools/balsa/string_piece_utils.h', |
rtenneti | e0ee6eb | 2015-05-01 00:55:09 | [diff] [blame] | 828 | 'tools/quic/spdy_balsa_utils.cc', |
| 829 | 'tools/quic/spdy_balsa_utils.h', |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 830 | ], |
| 831 | }, |
| 832 | { |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 833 | 'target_name': 'dump_cache', |
| 834 | 'type': 'executable', |
| 835 | 'dependencies': [ |
| 836 | '../base/base.gyp:base', |
| 837 | 'net', |
| 838 | 'net_test_support', |
| 839 | ], |
| 840 | 'sources': [ |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 841 | 'tools/dump_cache/dump_cache.cc', |
| 842 | 'tools/dump_cache/dump_files.cc', |
| 843 | 'tools/dump_cache/dump_files.h', |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 844 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 845 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 846 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 847 | }, |
[email protected] | ceeaac79 | 2014-06-25 05:14:43 | [diff] [blame] | 848 | { |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 849 | 'target_name': 'simple_quic_tools', |
| 850 | 'type': 'static_library', |
| 851 | 'dependencies': [ |
| 852 | '../base/base.gyp:base', |
| 853 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 854 | '../url/url.gyp:url_lib', |
| 855 | 'net', |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 856 | 'net_quic_proto', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 857 | ], |
| 858 | 'sources': [ |
rtenneti | d67b3a72 | 2015-08-18 05:15:31 | [diff] [blame] | 859 | 'tools/quic/quic_client_base.cc', |
| 860 | 'tools/quic/quic_client_base.h', |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 861 | 'tools/quic/quic_client_session.cc', |
| 862 | 'tools/quic/quic_client_session.h', |
| 863 | 'tools/quic/quic_dispatcher.cc', |
| 864 | 'tools/quic/quic_dispatcher.h', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 865 | 'tools/quic/quic_in_memory_cache.cc', |
| 866 | 'tools/quic/quic_in_memory_cache.h', |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 867 | 'tools/quic/quic_per_connection_packet_writer.cc', |
| 868 | 'tools/quic/quic_per_connection_packet_writer.h', |
brettw | 25ca892 | 2016-03-18 22:59:58 | [diff] [blame] | 869 | 'tools/quic/quic_process_packet_interface.h', |
jokulik | c971baf9 | 2016-01-06 00:36:39 | [diff] [blame] | 870 | 'tools/quic/quic_server_session_base.cc', |
| 871 | 'tools/quic/quic_server_session_base.h', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 872 | 'tools/quic/quic_simple_client.cc', |
| 873 | 'tools/quic/quic_simple_client.h', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 874 | 'tools/quic/quic_simple_per_connection_packet_writer.cc', |
| 875 | 'tools/quic/quic_simple_per_connection_packet_writer.h', |
| 876 | 'tools/quic/quic_simple_server.cc', |
| 877 | 'tools/quic/quic_simple_server.h', |
| 878 | 'tools/quic/quic_simple_server_packet_writer.cc', |
| 879 | 'tools/quic/quic_simple_server_packet_writer.h', |
jokulik | c971baf9 | 2016-01-06 00:36:39 | [diff] [blame] | 880 | 'tools/quic/quic_simple_server_session.cc', |
| 881 | 'tools/quic/quic_simple_server_session.h', |
rch | ed113b2 | 2015-03-26 04:54:05 | [diff] [blame] | 882 | 'tools/quic/quic_spdy_client_stream.cc', |
| 883 | 'tools/quic/quic_spdy_client_stream.h', |
danzh | b755134 | 2015-12-18 02:06:40 | [diff] [blame] | 884 | 'tools/quic/quic_simple_server_stream.cc', |
| 885 | 'tools/quic/quic_simple_server_stream.h', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 886 | 'tools/quic/quic_time_wait_list_manager.cc', |
| 887 | 'tools/quic/quic_time_wait_list_manager.h', |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 888 | 'tools/quic/synchronous_host_resolver.cc', |
| 889 | 'tools/quic/synchronous_host_resolver.h', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 890 | ], |
| 891 | }, |
ricea | 7afa523 | 2015-12-01 20:55:23 | [diff] [blame] | 892 | { |
| 893 | # GN version: //net:stale_while_revalidate_experiment_domains |
| 894 | 'target_name': 'stale_while_revalidate_experiment_domains', |
ricea | 5eb7fe3 | 2015-12-16 23:20:30 | [diff] [blame] | 895 | 'type': 'static_library', |
ricea | 7afa523 | 2015-12-01 20:55:23 | [diff] [blame] | 896 | 'dependencies': [ |
| 897 | '../base/base.gyp:base', |
| 898 | 'net', |
| 899 | 'net_derived_sources', |
| 900 | ], |
ricea | 7afa523 | 2015-12-01 20:55:23 | [diff] [blame] | 901 | 'sources': [ |
| 902 | 'base/stale_while_revalidate_experiment_domains.cc', |
| 903 | 'base/stale_while_revalidate_experiment_domains.h', |
| 904 | ], |
| 905 | }, |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 906 | ], |
| 907 | 'conditions': [ |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 908 | ['use_v8_in_net == 1', { |
| 909 | 'targets': [ |
| 910 | { |
| 911 | 'target_name': 'net_with_v8', |
| 912 | 'type': '<(component)', |
| 913 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 914 | 'dependencies': [ |
| 915 | '../base/base.gyp:base', |
[email protected] | 6b395fe | 2014-04-08 23:58:15 | [diff] [blame] | 916 | '../gin/gin.gyp:gin', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 917 | '../url/url.gyp:url_lib', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 918 | '../v8/tools/gyp/v8.gyp:v8', |
| 919 | 'net' |
| 920 | ], |
| 921 | 'defines': [ |
| 922 | 'NET_IMPLEMENTATION', |
| 923 | ], |
| 924 | 'sources': [ |
| 925 | 'proxy/proxy_resolver_v8.cc', |
| 926 | 'proxy/proxy_resolver_v8.h', |
[email protected] | 501e2d4 | 2013-01-30 22:30:49 | [diff] [blame] | 927 | 'proxy/proxy_resolver_v8_tracing.cc', |
| 928 | 'proxy/proxy_resolver_v8_tracing.h', |
sammc | f2d1ea0 | 2015-06-29 02:58:47 | [diff] [blame] | 929 | 'proxy/proxy_resolver_v8_tracing_wrapper.cc', |
| 930 | 'proxy/proxy_resolver_v8_tracing_wrapper.h', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 931 | 'proxy/proxy_service_v8.cc', |
| 932 | 'proxy/proxy_service_v8.h', |
| 933 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 934 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 935 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 936 | }, |
| 937 | ], |
| 938 | }], |
amistry | aa16ad2 | 2015-02-04 09:01:47 | [diff] [blame] | 939 | ['use_v8_in_net == 1 and OS != "android"', { |
| 940 | 'targets': [ |
| 941 | { |
| 942 | # GN version: //net/interfaces |
| 943 | 'target_name': 'net_interfaces', |
| 944 | 'type': 'static_library', |
| 945 | 'sources': [ |
| 946 | 'interfaces/host_resolver_service.mojom', |
| 947 | 'interfaces/proxy_resolver_service.mojom', |
| 948 | ], |
| 949 | 'includes': [ |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 950 | '../mojo/mojom_bindings_generator.gypi', |
amistry | aa16ad2 | 2015-02-04 09:01:47 | [diff] [blame] | 951 | ], |
| 952 | }, |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 953 | { |
| 954 | # GN version: //net:net_browser_services |
| 955 | 'target_name': 'net_browser_services', |
| 956 | 'type': 'static_library', |
| 957 | 'sources': [ |
| 958 | 'dns/mojo_host_resolver_impl.cc', |
| 959 | 'dns/mojo_host_resolver_impl.h', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 960 | 'proxy/in_process_mojo_proxy_resolver_factory.cc', |
| 961 | 'proxy/in_process_mojo_proxy_resolver_factory.h', |
sammc | 1d5df4d | 2015-05-05 05:06:17 | [diff] [blame] | 962 | 'proxy/mojo_proxy_resolver_factory.h', |
eroman | dcacef2 | 2015-06-01 19:36:35 | [diff] [blame] | 963 | 'proxy/proxy_resolver_factory_mojo.cc', |
| 964 | 'proxy/proxy_resolver_factory_mojo.h', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 965 | 'proxy/proxy_service_mojo.cc', |
| 966 | 'proxy/proxy_service_mojo.h', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 967 | ], |
| 968 | 'dependencies': [ |
| 969 | 'mojo_type_converters', |
| 970 | 'net', |
| 971 | 'net_interfaces', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 972 | '../mojo/mojo_base.gyp:mojo_common_lib', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 973 | '../mojo/mojo_base.gyp:mojo_url_type_converters', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 974 | '../mojo/mojo_public.gyp:mojo_cpp_bindings', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 975 | |
| 976 | # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we |
| 977 | # need this dependency since in_process_mojo_proxy_resolver_factory |
| 978 | # creates the utility process side Mojo services in the browser |
| 979 | # process. Ultimately, this will go away when we only support |
| 980 | # out-of-process. |
| 981 | 'net_utility_services', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 982 | ], |
| 983 | }, |
| 984 | { |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 985 | # GN version: //net:net_utility_services |
| 986 | 'target_name': 'net_utility_services', |
| 987 | 'type': 'static_library', |
| 988 | 'sources': [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 989 | 'dns/host_resolver_mojo.cc', |
| 990 | 'dns/host_resolver_mojo.h', |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 991 | 'proxy/mojo_proxy_resolver_factory_impl.cc', |
| 992 | 'proxy/mojo_proxy_resolver_factory_impl.h', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 993 | 'proxy/mojo_proxy_resolver_impl.cc', |
| 994 | 'proxy/mojo_proxy_resolver_impl.h', |
sammc | a3242c9 | 2015-07-10 02:38:51 | [diff] [blame] | 995 | 'proxy/mojo_proxy_resolver_v8_tracing_bindings.h', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 996 | ], |
| 997 | 'dependencies': [ |
| 998 | 'mojo_type_converters', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 999 | 'net_interfaces', |
amistry | b91865c | 2015-03-06 08:50:36 | [diff] [blame] | 1000 | 'net_with_v8', |
morrita | 9e8f56a | 2015-03-05 20:30:05 | [diff] [blame] | 1001 | '../mojo/mojo_base.gyp:mojo_url_type_converters', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 1002 | '../mojo/mojo_public.gyp:mojo_cpp_bindings', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 1003 | ], |
| 1004 | }, |
| 1005 | { |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1006 | # GN version: //net:mojo_type_converters |
| 1007 | 'target_name': 'mojo_type_converters', |
| 1008 | 'type': 'static_library', |
| 1009 | 'sources': [ |
amistry | 7ec5811 | 2015-02-26 06:03:00 | [diff] [blame] | 1010 | 'dns/mojo_host_type_converters.cc', |
| 1011 | 'dns/mojo_host_type_converters.h', |
| 1012 | 'proxy/mojo_proxy_type_converters.cc', |
| 1013 | 'proxy/mojo_proxy_type_converters.h', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1014 | ], |
| 1015 | 'dependencies': [ |
| 1016 | 'net', |
| 1017 | 'net_interfaces', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 1018 | '../mojo/mojo_public.gyp:mojo_cpp_bindings', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 1019 | ], |
| 1020 | }, |
amistry | aa16ad2 | 2015-02-04 09:01:47 | [diff] [blame] | 1021 | ], |
| 1022 | }], |
[email protected] | 3f55cf8 | 2014-01-24 04:32:18 | [diff] [blame] | 1023 | ['OS != "ios" and OS != "android"', { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1024 | 'targets': [ |
| 1025 | # iOS doesn't have the concept of simple executables, these targets |
| 1026 | # can't be compiled on the platform. |
| 1027 | { |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1028 | 'target_name': 'crash_cache', |
| 1029 | 'type': 'executable', |
| 1030 | 'dependencies': [ |
| 1031 | '../base/base.gyp:base', |
| 1032 | 'net', |
| 1033 | 'net_test_support', |
| 1034 | ], |
| 1035 | 'sources': [ |
| 1036 | 'tools/crash_cache/crash_cache.cc', |
| 1037 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1038 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1039 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1040 | }, |
| 1041 | { |
| 1042 | 'target_name': 'crl_set_dump', |
| 1043 | 'type': 'executable', |
| 1044 | 'dependencies': [ |
| 1045 | '../base/base.gyp:base', |
| 1046 | 'net', |
| 1047 | ], |
| 1048 | 'sources': [ |
| 1049 | 'tools/crl_set_dump/crl_set_dump.cc', |
| 1050 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1051 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1052 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1053 | }, |
| 1054 | { |
| 1055 | 'target_name': 'dns_fuzz_stub', |
| 1056 | 'type': 'executable', |
| 1057 | 'dependencies': [ |
| 1058 | '../base/base.gyp:base', |
| 1059 | 'net', |
| 1060 | ], |
| 1061 | 'sources': [ |
| 1062 | 'tools/dns_fuzz_stub/dns_fuzz_stub.cc', |
| 1063 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1064 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1065 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1066 | }, |
| 1067 | { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1068 | 'target_name': 'gdig', |
| 1069 | 'type': 'executable', |
| 1070 | 'dependencies': [ |
| 1071 | '../base/base.gyp:base', |
| 1072 | 'net', |
| 1073 | ], |
| 1074 | 'sources': [ |
| 1075 | 'tools/gdig/file_net_log.cc', |
| 1076 | 'tools/gdig/gdig.cc', |
| 1077 | ], |
| 1078 | }, |
| 1079 | { |
[email protected] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 1080 | 'target_name': 'get_server_time', |
| 1081 | 'type': 'executable', |
| 1082 | 'dependencies': [ |
| 1083 | '../base/base.gyp:base', |
| 1084 | '../base/base.gyp:base_i18n', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 1085 | '../url/url.gyp:url_lib', |
[email protected] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 1086 | 'net', |
| 1087 | ], |
| 1088 | 'sources': [ |
| 1089 | 'tools/get_server_time/get_server_time.cc', |
| 1090 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1091 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1092 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 1093 | }, |
| 1094 | { |
[email protected] | 19b4fa5 | 2014-05-05 22:03:15 | [diff] [blame] | 1095 | 'target_name': 'hpack_example_generator', |
| 1096 | 'type': 'executable', |
| 1097 | 'dependencies': [ |
| 1098 | '../base/base.gyp:base', |
| 1099 | 'net', |
| 1100 | ], |
| 1101 | 'sources': [ |
| 1102 | 'spdy/fuzzing/hpack_example_generator.cc', |
| 1103 | ], |
| 1104 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1105 | 'msvs_disabled_warnings': [4267, ], |
| 1106 | }, |
| 1107 | { |
| 1108 | 'target_name': 'hpack_fuzz_mutator', |
| 1109 | 'type': 'executable', |
| 1110 | 'dependencies': [ |
| 1111 | '../base/base.gyp:base', |
| 1112 | 'net', |
| 1113 | ], |
| 1114 | 'sources': [ |
| 1115 | 'spdy/fuzzing/hpack_fuzz_mutator.cc', |
| 1116 | ], |
| 1117 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1118 | 'msvs_disabled_warnings': [4267, ], |
| 1119 | }, |
| 1120 | { |
| 1121 | 'target_name': 'hpack_fuzz_wrapper', |
| 1122 | 'type': 'executable', |
| 1123 | 'dependencies': [ |
| 1124 | '../base/base.gyp:base', |
| 1125 | 'net', |
| 1126 | ], |
| 1127 | 'sources': [ |
| 1128 | 'spdy/fuzzing/hpack_fuzz_wrapper.cc', |
| 1129 | ], |
| 1130 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1131 | 'msvs_disabled_warnings': [4267, ], |
| 1132 | }, |
| 1133 | { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1134 | 'target_name': 'net_watcher', |
| 1135 | 'type': 'executable', |
| 1136 | 'dependencies': [ |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1137 | '../base/base.gyp:base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1138 | 'net', |
[email protected] | ffd3eff | 2012-08-31 14:50:48 | [diff] [blame] | 1139 | 'net_with_v8', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1140 | ], |
[email protected] | a6f8cb73 | 2012-11-19 19:22:15 | [diff] [blame] | 1141 | 'conditions': [ |
| 1142 | [ 'use_glib == 1', { |
| 1143 | 'dependencies': [ |
| 1144 | '../build/linux/system.gyp:gconf', |
| 1145 | '../build/linux/system.gyp:gio', |
| 1146 | ], |
| 1147 | }, |
| 1148 | ], |
| 1149 | ], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1150 | 'sources': [ |
| 1151 | 'tools/net_watcher/net_watcher.cc', |
| 1152 | ], |
| 1153 | }, |
| 1154 | { |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1155 | 'target_name': 'run_testserver', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1156 | 'type': 'executable', |
| 1157 | 'dependencies': [ |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1158 | '../base/base.gyp:base', |
[email protected] | e4c029f | 2013-01-20 01:10:24 | [diff] [blame] | 1159 | '../base/base.gyp:test_support_base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1160 | '../testing/gtest.gyp:gtest', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1161 | 'net_test_support', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1162 | ], |
| 1163 | 'sources': [ |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1164 | 'tools/testserver/run_testserver.cc', |
| 1165 | ], |
| 1166 | }, |
| 1167 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1168 | 'target_name': 'quic_client', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1169 | 'type': 'executable', |
| 1170 | 'dependencies': [ |
| 1171 | '../base/base.gyp:base', |
| 1172 | '../url/url.gyp:url_lib', |
| 1173 | 'net', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 1174 | 'simple_quic_tools', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1175 | ], |
| 1176 | 'sources': [ |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1177 | 'tools/quic/quic_simple_client_bin.cc', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1178 | ], |
| 1179 | }, |
| 1180 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1181 | 'target_name': 'quic_server', |
| 1182 | 'type': 'executable', |
| 1183 | 'dependencies': [ |
| 1184 | '../base/base.gyp:base', |
| 1185 | 'net', |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 1186 | 'net_quic_proto', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1187 | 'simple_quic_tools', |
| 1188 | ], |
| 1189 | 'sources': [ |
| 1190 | 'tools/quic/quic_simple_server_bin.cc', |
| 1191 | ], |
| 1192 | }, |
| 1193 | { |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1194 | 'target_name': 'stress_cache', |
| 1195 | 'type': 'executable', |
| 1196 | 'dependencies': [ |
| 1197 | '../base/base.gyp:base', |
| 1198 | 'net', |
| 1199 | 'net_test_support', |
| 1200 | ], |
| 1201 | 'sources': [ |
rvargas | e23fcf65 | 2015-03-04 19:59:22 | [diff] [blame] | 1202 | 'tools/stress_cache/stress_cache.cc', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1203 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1204 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1205 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1206 | }, |
| 1207 | { |
| 1208 | 'target_name': 'tld_cleanup', |
| 1209 | 'type': 'executable', |
| 1210 | 'dependencies': [ |
| 1211 | '../base/base.gyp:base', |
| 1212 | '../base/base.gyp:base_i18n', |
[email protected] | ed32c21 | 2013-05-14 20:49:29 | [diff] [blame] | 1213 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1214 | ], |
| 1215 | 'sources': [ |
| 1216 | 'tools/tld_cleanup/tld_cleanup.cc', |
| 1217 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1218 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1219 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1220 | }, |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1221 | ], |
| 1222 | }], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1223 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1224 | 'targets': [ |
| 1225 | { |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1226 | 'target_name': 'epoll_server', |
| 1227 | 'type': 'static_library', |
| 1228 | 'dependencies': [ |
| 1229 | '../base/base.gyp:base', |
| 1230 | 'net', |
| 1231 | ], |
| 1232 | 'sources': [ |
| 1233 | 'tools/epoll_server/epoll_server.cc', |
| 1234 | 'tools/epoll_server/epoll_server.h', |
| 1235 | ], |
| 1236 | }, |
| 1237 | { |
| 1238 | 'target_name': 'flip_in_mem_edsm_server_base', |
[email protected] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1239 | 'type': 'static_library', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1240 | 'cflags': [ |
| 1241 | '-Wno-deprecated', |
| 1242 | ], |
| 1243 | 'dependencies': [ |
| 1244 | '../base/base.gyp:base', |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1245 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1246 | 'balsa', |
| 1247 | 'epoll_server', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1248 | 'net', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1249 | ], |
| 1250 | 'sources': [ |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1251 | 'tools/flip_server/acceptor_thread.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1252 | 'tools/flip_server/acceptor_thread.h', |
| 1253 | 'tools/flip_server/constants.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1254 | 'tools/flip_server/flip_config.cc', |
| 1255 | 'tools/flip_server/flip_config.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1256 | 'tools/flip_server/http_interface.cc', |
| 1257 | 'tools/flip_server/http_interface.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1258 | 'tools/flip_server/mem_cache.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1259 | 'tools/flip_server/mem_cache.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1260 | 'tools/flip_server/output_ordering.cc', |
| 1261 | 'tools/flip_server/output_ordering.h', |
| 1262 | 'tools/flip_server/ring_buffer.cc', |
| 1263 | 'tools/flip_server/ring_buffer.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1264 | 'tools/flip_server/sm_connection.cc', |
| 1265 | 'tools/flip_server/sm_connection.h', |
| 1266 | 'tools/flip_server/sm_interface.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1267 | 'tools/flip_server/spdy_interface.cc', |
| 1268 | 'tools/flip_server/spdy_interface.h', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1269 | 'tools/flip_server/spdy_ssl.cc', |
| 1270 | 'tools/flip_server/spdy_ssl.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1271 | 'tools/flip_server/spdy_util.cc', |
| 1272 | 'tools/flip_server/spdy_util.h', |
| 1273 | 'tools/flip_server/streamer_interface.cc', |
| 1274 | 'tools/flip_server/streamer_interface.h', |
tfarina | fb3c78c | 2016-02-09 22:13:52 | [diff] [blame] | 1275 | 'tools/flip_server/tcp_socket_util.cc', |
| 1276 | 'tools/flip_server/tcp_socket_util.h', |
rvargas | 145310f | 2015-08-14 18:09:04 | [diff] [blame] | 1277 | 'tools/flip_server/url_to_filename_encoder.cc', |
| 1278 | 'tools/flip_server/url_to_filename_encoder.h', |
| 1279 | 'tools/flip_server/url_utilities.cc', |
| 1280 | 'tools/flip_server/url_utilities.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1281 | ], |
| 1282 | }, |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1283 | { |
[email protected] | 673ec5d | 2013-11-12 02:54:25 | [diff] [blame] | 1284 | 'target_name': 'flip_in_mem_edsm_server_unittests', |
| 1285 | 'type': 'executable', |
| 1286 | 'dependencies': [ |
| 1287 | '../testing/gtest.gyp:gtest', |
| 1288 | '../testing/gmock.gyp:gmock', |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1289 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 673ec5d | 2013-11-12 02:54:25 | [diff] [blame] | 1290 | 'flip_in_mem_edsm_server_base', |
| 1291 | 'net', |
| 1292 | 'net_test_support', |
| 1293 | ], |
| 1294 | 'sources': [ |
| 1295 | 'tools/flip_server/flip_test_utils.cc', |
| 1296 | 'tools/flip_server/flip_test_utils.h', |
| 1297 | 'tools/flip_server/http_interface_test.cc', |
| 1298 | 'tools/flip_server/mem_cache_test.cc', |
| 1299 | 'tools/flip_server/run_all_tests.cc', |
| 1300 | 'tools/flip_server/spdy_interface_test.cc', |
rvargas | 145310f | 2015-08-14 18:09:04 | [diff] [blame] | 1301 | 'tools/flip_server/url_to_filename_encoder_unittest.cc', |
| 1302 | 'tools/flip_server/url_utilities_unittest.cc', |
[email protected] | 673ec5d | 2013-11-12 02:54:25 | [diff] [blame] | 1303 | ], |
| 1304 | }, |
| 1305 | { |
[email protected] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1306 | 'target_name': 'flip_in_mem_edsm_server', |
| 1307 | 'type': 'executable', |
| 1308 | 'cflags': [ |
| 1309 | '-Wno-deprecated', |
| 1310 | ], |
| 1311 | 'dependencies': [ |
| 1312 | '../base/base.gyp:base', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1313 | 'flip_in_mem_edsm_server_base', |
[email protected] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1314 | 'net', |
| 1315 | ], |
| 1316 | 'sources': [ |
| 1317 | 'tools/flip_server/flip_in_mem_edsm_server.cc', |
| 1318 | ], |
| 1319 | }, |
| 1320 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1321 | 'target_name': 'epoll_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1322 | 'type': 'static_library', |
| 1323 | 'dependencies': [ |
| 1324 | '../base/base.gyp:base', |
| 1325 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 1326 | '../url/url.gyp:url_lib', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1327 | 'balsa', |
| 1328 | 'epoll_server', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1329 | 'net', |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 1330 | 'net_quic_proto', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1331 | ], |
| 1332 | 'sources': [ |
[email protected] | e45d6889 | 2013-03-30 17:50:10 | [diff] [blame] | 1333 | 'tools/quic/quic_client.cc', |
| 1334 | 'tools/quic/quic_client.h', |
[email protected] | cbd731e | 2013-10-24 00:20:39 | [diff] [blame] | 1335 | 'tools/quic/quic_default_packet_writer.cc', |
| 1336 | 'tools/quic/quic_default_packet_writer.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1337 | 'tools/quic/quic_epoll_clock.cc', |
| 1338 | 'tools/quic/quic_epoll_clock.h', |
| 1339 | 'tools/quic/quic_epoll_connection_helper.cc', |
| 1340 | 'tools/quic/quic_epoll_connection_helper.h', |
rtenneti | fb3fa6c | 2015-03-16 23:04:55 | [diff] [blame] | 1341 | 'tools/quic/quic_packet_reader.cc', |
| 1342 | 'tools/quic/quic_packet_reader.h', |
[email protected] | 9f0dcd4e | 2014-01-16 15:58:14 | [diff] [blame] | 1343 | 'tools/quic/quic_packet_writer_wrapper.cc', |
| 1344 | 'tools/quic/quic_packet_writer_wrapper.h', |
[email protected] | e45d6889 | 2013-03-30 17:50:10 | [diff] [blame] | 1345 | 'tools/quic/quic_server.cc', |
| 1346 | 'tools/quic/quic_server.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1347 | 'tools/quic/quic_socket_utils.cc', |
| 1348 | 'tools/quic/quic_socket_utils.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1349 | ], |
| 1350 | }, |
| 1351 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1352 | 'target_name': 'epoll_quic_client', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1353 | 'type': 'executable', |
| 1354 | 'dependencies': [ |
| 1355 | '../base/base.gyp:base', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1356 | 'net', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1357 | 'epoll_quic_tools', |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 1358 | 'simple_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1359 | ], |
| 1360 | 'sources': [ |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1361 | 'tools/quic/quic_client_bin.cc', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1362 | ], |
| 1363 | }, |
| 1364 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1365 | 'target_name': 'epoll_quic_server', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1366 | 'type': 'executable', |
| 1367 | 'dependencies': [ |
| 1368 | '../base/base.gyp:base', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1369 | 'net', |
rtenneti | b6f1c0d | 2015-04-03 17:52:06 | [diff] [blame] | 1370 | 'net_quic_proto', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1371 | 'epoll_quic_tools', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 1372 | 'simple_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1373 | ], |
| 1374 | 'sources': [ |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1375 | 'tools/quic/quic_server_bin.cc', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1376 | ], |
[email protected] | 7499f22fe | 2014-04-30 21:58:50 | [diff] [blame] | 1377 | }, |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1378 | ] |
| 1379 | }], |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1380 | ['OS=="android"', { |
| 1381 | 'targets': [ |
| 1382 | { |
| 1383 | 'target_name': 'net_jni_headers', |
| 1384 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1385 | 'sources': [ |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1386 | 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1387 | 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1388 | 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
tbansal | 59a1ddc | 2015-09-14 17:35:01 | [diff] [blame] | 1389 | 'android/java/src/org/chromium/net/AndroidTrafficStats.java', |
[email protected] | d72acb0 | 2012-12-15 22:19:44 | [diff] [blame] | 1390 | 'android/java/src/org/chromium/net/GURLUtils.java', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1391 | 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 1392 | 'android/java/src/org/chromium/net/NetStringUtil.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1393 | 'android/java/src/org/chromium/net/NetworkChangeNotifier.java', |
| 1394 | 'android/java/src/org/chromium/net/ProxyChangeListener.java', |
[email protected] | 18c360a | 2013-10-22 14:35:15 | [diff] [blame] | 1395 | 'android/java/src/org/chromium/net/X509Util.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1396 | ], |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1397 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 1398 | 'jni_gen_package': 'net', |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1399 | }, |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1400 | 'includes': [ '../build/jni_generator.gypi' ], |
| 1401 | }, |
| 1402 | { |
| 1403 | 'target_name': 'net_test_jni_headers', |
| 1404 | 'type': 'none', |
| 1405 | 'sources': [ |
| 1406 | 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java', |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1407 | 'test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1408 | 'test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1409 | ], |
| 1410 | 'variables': { |
jbudorick | b7043d8 | 2015-06-27 01:43:03 | [diff] [blame] | 1411 | 'jni_gen_package': 'net/test', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1412 | }, |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1413 | 'includes': [ '../build/jni_generator.gypi' ], |
| 1414 | }, |
| 1415 | { |
| 1416 | 'target_name': 'net_java', |
| 1417 | 'type': 'none', |
| 1418 | 'variables': { |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1419 | 'java_in_dir': '../net/android/java', |
| 1420 | }, |
| 1421 | 'dependencies': [ |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1422 | '../base/base.gyp:base', |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1423 | 'cert_verify_status_android_java', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1424 | 'certificate_mime_types_java', |
jkarlin | 0818d525 | 2014-12-02 21:06:02 | [diff] [blame] | 1425 | 'network_change_notifier_types_java', |
pauljensen | be5bc323 | 2015-10-05 20:39:27 | [diff] [blame] | 1426 | 'network_change_notifier_android_types_java', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1427 | 'net_errors_java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1428 | 'private_key_types_java', |
tbansal | 59a1ddc | 2015-09-14 17:35:01 | [diff] [blame] | 1429 | 'traffic_stats_error_java', |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1430 | ], |
| 1431 | 'includes': [ '../build/java.gypi' ], |
| 1432 | }, |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1433 | { |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1434 | 'target_name': 'embedded_test_server_aidl', |
| 1435 | 'type': 'none', |
| 1436 | 'variables': { |
| 1437 | 'aidl_interface_file': '../net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerInterface.aidl', |
| 1438 | }, |
| 1439 | 'sources': [ |
| 1440 | '../net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerImpl.aidl', |
| 1441 | ], |
| 1442 | 'includes': [ '../build/java_aidl.gypi' ], |
| 1443 | }, |
| 1444 | { |
[email protected] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1445 | 'target_name': 'net_java_test_support', |
| 1446 | 'type': 'none', |
| 1447 | 'variables': { |
[email protected] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1448 | 'java_in_dir': '../net/test/android/javatests', |
aurimas | 088bb6b | 2015-10-01 00:56:20 | [diff] [blame] | 1449 | # TODO(jbudorick): remove chromium_code: 0 line once crbug.com/488192 is fixed. |
| 1450 | 'chromium_code': 0, |
[email protected] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1451 | }, |
xunjieli | d26defc0 | 2015-05-07 16:48:14 | [diff] [blame] | 1452 | 'dependencies': [ |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1453 | 'embedded_test_server_aidl', |
jbudorick | 0d414de1 | 2015-08-20 02:23:34 | [diff] [blame] | 1454 | 'net_java', |
xunjieli | d26defc0 | 2015-05-07 16:48:14 | [diff] [blame] | 1455 | 'url_request_failed_job_java', |
yfriedman | 05fc830 | 2015-05-15 16:31:32 | [diff] [blame] | 1456 | '../base/base.gyp:base_java', |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1457 | '../base/base.gyp:base_java_test_support', |
jbudorick | 0d414de1 | 2015-08-20 02:23:34 | [diff] [blame] | 1458 | '../third_party/android_tools/android_tools.gyp:legacy_http_javalib', |
xunjieli | d26defc0 | 2015-05-07 16:48:14 | [diff] [blame] | 1459 | ], |
[email protected] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1460 | 'includes': [ '../build/java.gypi' ], |
| 1461 | }, |
| 1462 | { |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1463 | 'target_name': 'libnet_java_test_support', |
| 1464 | 'type': 'shared_library', |
| 1465 | 'dependencies': [ |
| 1466 | 'net_test_support', |
| 1467 | '../base/base.gyp:base', |
| 1468 | ], |
| 1469 | 'sources': [ |
| 1470 | 'test/android/net_test_entry_point.cc', |
| 1471 | 'test/android/net_test_jni_onload.cc', |
| 1472 | 'test/android/net_test_jni_onload.h', |
| 1473 | ], |
| 1474 | }, |
| 1475 | { |
| 1476 | 'target_name': 'net_test_support_apk', |
| 1477 | 'type': 'none', |
| 1478 | 'dependencies': [ |
| 1479 | 'net_java_test_support', |
| 1480 | ], |
| 1481 | 'variables': { |
| 1482 | 'android_manifest_path': 'test/android/javatests/AndroidManifest.xml', |
| 1483 | 'apk_name': 'ChromiumNetTestSupport', |
| 1484 | 'is_test_apk': 1, |
| 1485 | 'java_in_dir': 'test/android/javatests', |
| 1486 | 'java_in_dir_suffix': '/src_dummy', |
| 1487 | 'native_lib_target': 'libnet_java_test_support', |
jbudorick | 2082ffe | 2016-03-14 19:17:52 | [diff] [blame] | 1488 | 'never_lint': 1, |
jbudorick | ccffb98 | 2015-12-22 01:21:35 | [diff] [blame] | 1489 | }, |
| 1490 | 'includes': [ |
| 1491 | '../build/java_apk.gypi', |
| 1492 | ], |
| 1493 | }, |
| 1494 | { |
| 1495 | # Targets that need the net test support APK should depend on this |
| 1496 | # target. It ensures that the APK is built without passing the |
| 1497 | # classpath on to dependent targets. |
| 1498 | 'target_name': 'require_net_test_support_apk', |
| 1499 | 'type': 'none', |
| 1500 | 'actions': [ |
| 1501 | { |
| 1502 | 'action_name': 'require_ChromiumNetTestSupport', |
| 1503 | 'variables': { |
| 1504 | 'required_file': '<(PRODUCT_DIR)/net_test_support_apk/ChromiumNetTestSupport.apk.required', |
| 1505 | }, |
| 1506 | 'inputs': [ |
| 1507 | '<(PRODUCT_DIR)/apks/ChromiumNetTestSupport.apk', |
| 1508 | ], |
| 1509 | 'outputs': [ |
| 1510 | '<(required_file)', |
| 1511 | ], |
| 1512 | 'action': [ |
| 1513 | 'python', '../build/android/gyp/touch.py', '<(required_file)', |
| 1514 | ], |
| 1515 | }, |
| 1516 | ], |
| 1517 | }, |
| 1518 | { |
xunjieli | d26defc0 | 2015-05-07 16:48:14 | [diff] [blame] | 1519 | 'target_name': 'url_request_failed_job_java', |
| 1520 | 'type': 'none', |
| 1521 | 'variables': { |
| 1522 | 'source_file': 'test/url_request/url_request_failed_job.h', |
| 1523 | }, |
| 1524 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 1525 | }, |
| 1526 | { |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1527 | 'target_name': 'net_javatests', |
| 1528 | 'type': 'none', |
| 1529 | 'variables': { |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1530 | 'java_in_dir': '../net/android/javatests', |
| 1531 | }, |
| 1532 | 'dependencies': [ |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1533 | '../base/base.gyp:base', |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1534 | '../base/base.gyp:base_java_test_support', |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1535 | 'net_java', |
pauljensen | 373bed9 | 2015-10-23 13:18:42 | [diff] [blame] | 1536 | 'net_java_test_support', |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1537 | ], |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1538 | 'includes': [ '../build/java.gypi' ], |
| 1539 | }, |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1540 | { |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1541 | 'target_name': 'net_errors_java', |
| 1542 | 'type': 'none', |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1543 | 'sources': [ |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1544 | 'android/java/NetError.template', |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1545 | ], |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1546 | 'variables': { |
[email protected] | 1b19c9a1e | 2013-03-02 16:39:08 | [diff] [blame] | 1547 | 'package_name': 'org/chromium/net', |
[email protected] | 2716d84e | 2013-01-19 04:05:48 | [diff] [blame] | 1548 | 'template_deps': ['base/net_error_list.h'], |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1549 | }, |
| 1550 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1551 | }, |
| 1552 | { |
| 1553 | 'target_name': 'certificate_mime_types_java', |
| 1554 | 'type': 'none', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1555 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1556 | 'source_file': 'base/mime_util.h', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1557 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1558 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1559 | }, |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1560 | { |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1561 | 'target_name': 'cert_verify_status_android_java', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1562 | 'type': 'none', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1563 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1564 | 'source_file': 'android/cert_verify_result_android.h', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1565 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1566 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1567 | }, |
| 1568 | { |
jkarlin | 0818d525 | 2014-12-02 21:06:02 | [diff] [blame] | 1569 | 'target_name': 'network_change_notifier_types_java', |
| 1570 | 'type': 'none', |
| 1571 | 'variables': { |
| 1572 | 'source_file': 'base/network_change_notifier.h', |
| 1573 | }, |
| 1574 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 1575 | }, |
| 1576 | { |
pauljensen | be5bc323 | 2015-10-05 20:39:27 | [diff] [blame] | 1577 | 'target_name': 'network_change_notifier_android_types_java', |
| 1578 | 'type': 'none', |
| 1579 | 'variables': { |
| 1580 | 'source_file': 'android/network_change_notifier_android.cc', |
| 1581 | }, |
| 1582 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 1583 | }, |
| 1584 | { |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1585 | 'target_name': 'private_key_types_java', |
| 1586 | 'type': 'none', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1587 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1588 | 'source_file': 'android/keystore.h', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1589 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1590 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1591 | }, |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1592 | { |
tbansal | 59a1ddc | 2015-09-14 17:35:01 | [diff] [blame] | 1593 | 'target_name': 'traffic_stats_error_java', |
| 1594 | 'type': 'none', |
| 1595 | 'variables': { |
| 1596 | 'source_file': 'android/traffic_stats.cc', |
| 1597 | }, |
| 1598 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 1599 | }, |
| 1600 | { |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1601 | 'target_name': 'net_unittests_apk', |
| 1602 | 'type': 'none', |
| 1603 | 'dependencies': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1604 | 'net_java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1605 | 'net_javatests', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1606 | 'net_java_test_support', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1607 | 'net_unittests', |
| 1608 | ], |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1609 | 'conditions': [ |
| 1610 | ['v8_use_external_startup_data==1', { |
| 1611 | 'dependencies': [ |
| 1612 | '../v8/tools/gyp/v8.gyp:v8_external_snapshot', |
| 1613 | ], |
michaelbai | 0cd95d0 | 2015-10-30 02:16:57 | [diff] [blame] | 1614 | 'variables': { |
| 1615 | 'dest_path': '<(asset_location)', |
michaelbai | 01630673 | 2015-11-03 19:48:00 | [diff] [blame] | 1616 | 'renaming_sources': [ |
michaelbai | 0cd95d0 | 2015-10-30 02:16:57 | [diff] [blame] | 1617 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 1618 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 1619 | ], |
michaelbai | 01630673 | 2015-11-03 19:48:00 | [diff] [blame] | 1620 | 'renaming_destinations': [ |
| 1621 | 'natives_blob_<(arch_suffix).bin', |
| 1622 | 'snapshot_blob_<(arch_suffix).bin', |
| 1623 | ], |
michaelbai | 0cd95d0 | 2015-10-30 02:16:57 | [diff] [blame] | 1624 | 'clear': 1, |
| 1625 | }, |
| 1626 | 'includes': ['../build/android/copy_ex.gypi'], |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1627 | }], |
| 1628 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1629 | 'variables': { |
| 1630 | 'test_suite_name': 'net_unittests', |
mikecase | 56d80d7 | 2015-06-03 00:57:26 | [diff] [blame] | 1631 | 'isolate_file': 'net_unittests.isolate', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1632 | 'android_manifest_path': 'android/unittest_support/AndroidManifest.xml', |
| 1633 | 'resource_dir': 'android/unittest_support/res', |
agrieve | 3ac557f0 | 2016-04-12 15:52:00 | [diff] [blame] | 1634 | 'shard_timeout': 300, |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1635 | 'conditions': [ |
| 1636 | ['v8_use_external_startup_data==1', { |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1637 | 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets', |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1638 | 'additional_input_paths': [ |
michaelbai | 01630673 | 2015-11-03 19:48:00 | [diff] [blame] | 1639 | '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob_<(arch_suffix).bin', |
| 1640 | '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob_<(arch_suffix).bin', |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1641 | ], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1642 | }], |
| 1643 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1644 | }, |
michaelbai | 01630673 | 2015-11-03 19:48:00 | [diff] [blame] | 1645 | 'includes': [ |
| 1646 | '../build/apk_test.gypi', |
| 1647 | '../build/android/v8_external_startup_data_arch_suffix.gypi', |
| 1648 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1649 | }, |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1650 | { |
| 1651 | 'target_name': 'net_junit_tests', |
| 1652 | 'type': 'none', |
| 1653 | 'dependencies': [ |
| 1654 | 'net_java', |
| 1655 | '../base/base.gyp:base', |
| 1656 | '../base/base.gyp:base_java_test_support', |
jbudorick | f091dcb | 2015-08-25 21:36:59 | [diff] [blame] | 1657 | '../base/base.gyp:base_junit_test_support', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1658 | '../testing/android/junit/junit_test.gyp:junit_test_support', |
| 1659 | ], |
| 1660 | 'variables': { |
| 1661 | 'main_class': 'org.chromium.testing.local.JunitTestMain', |
| 1662 | 'src_paths': [ |
| 1663 | 'android/junit/', |
| 1664 | ], |
mikecase | 713185d2 | 2016-02-16 17:43:41 | [diff] [blame] | 1665 | 'test_type': 'junit', |
mikecase | 4868bb07 | 2016-02-19 20:44:41 | [diff] [blame] | 1666 | 'wrapper_script_name': 'helper/<(_target_name)', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1667 | }, |
| 1668 | 'includes': [ |
mikecase | 713185d2 | 2016-02-16 17:43:41 | [diff] [blame] | 1669 | '../build/android/test_runner.gypi', |
aberent | ec894a5 | 2015-07-09 14:45:53 | [diff] [blame] | 1670 | '../build/host_jar.gypi', |
| 1671 | ], |
| 1672 | }, |
stip | bf7e148 | 2015-10-12 22:31:00 | [diff] [blame] | 1673 | ], |
| 1674 | 'conditions': [ |
| 1675 | ['test_isolation_mode != "noop"', |
| 1676 | { |
| 1677 | 'targets': [ |
| 1678 | { |
| 1679 | 'target_name': 'net_unittests_apk_run', |
| 1680 | 'type': 'none', |
| 1681 | 'dependencies': [ |
| 1682 | 'net_unittests_apk', |
| 1683 | ], |
| 1684 | 'includes': [ |
| 1685 | '../build/isolate.gypi', |
| 1686 | ], |
| 1687 | 'sources': [ |
| 1688 | 'net_unittests_apk.isolate', |
| 1689 | ], |
| 1690 | }, |
| 1691 | ] |
| 1692 | } |
| 1693 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1694 | ], |
| 1695 | }], |
[email protected] | 28af123 | 2013-08-26 18:49:29 | [diff] [blame] | 1696 | ['OS == "android" or OS == "linux"', { |
| 1697 | 'targets': [ |
| 1698 | { |
| 1699 | 'target_name': 'disk_cache_memory_test', |
| 1700 | 'type': 'executable', |
| 1701 | 'dependencies': [ |
| 1702 | '../base/base.gyp:base', |
| 1703 | 'net', |
| 1704 | ], |
| 1705 | 'sources': [ |
| 1706 | 'tools/disk_cache_memory_test/disk_cache_memory_test.cc', |
| 1707 | ], |
| 1708 | }, |
| 1709 | ], |
| 1710 | }], |
gabadie | 6222f26 | 2016-03-23 12:00:29 | [diff] [blame] | 1711 | ['OS == "linux"', { |
| 1712 | 'targets': [ |
| 1713 | { |
gabadie | 64af64a | 2016-03-29 16:36:42 | [diff] [blame] | 1714 | 'target_name': 'cachetool', |
| 1715 | 'type': 'executable', |
| 1716 | 'dependencies': [ |
| 1717 | '../base/base.gyp:base', |
| 1718 | 'net', |
| 1719 | 'net_test_support', |
| 1720 | ], |
| 1721 | 'sources': [ |
| 1722 | 'tools/cachetool/cachetool.cc', |
| 1723 | ], |
| 1724 | }, |
| 1725 | { |
gabadie | 6222f26 | 2016-03-23 12:00:29 | [diff] [blame] | 1726 | 'target_name': 'content_decoder_tool', |
| 1727 | 'type': 'executable', |
| 1728 | 'dependencies': [ |
| 1729 | '../base/base.gyp:base', |
Hans Wennborg | f369bd1 | 2016-03-25 00:46:27 | [diff] [blame] | 1730 | '../url/url.gyp:url_lib', |
gabadie | 6222f26 | 2016-03-23 12:00:29 | [diff] [blame] | 1731 | 'net', |
| 1732 | ], |
| 1733 | 'sources': [ |
gabadie | 6222f26 | 2016-03-23 12:00:29 | [diff] [blame] | 1734 | 'filter/mock_filter_context.cc', |
gabadie | 64af64a | 2016-03-29 16:36:42 | [diff] [blame] | 1735 | 'tools/content_decoder_tool/content_decoder_tool.cc', |
gabadie | 6222f26 | 2016-03-23 12:00:29 | [diff] [blame] | 1736 | ], |
| 1737 | } |
| 1738 | ], |
| 1739 | }], |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1740 | ['test_isolation_mode != "noop"', { |
| 1741 | 'targets': [ |
| 1742 | { |
| 1743 | 'target_name': 'net_unittests_run', |
| 1744 | 'type': 'none', |
| 1745 | 'dependencies': [ |
| 1746 | 'net_unittests', |
| 1747 | ], |
| 1748 | 'includes': [ |
[email protected] | cc902cb | 2013-07-12 00:54:49 | [diff] [blame] | 1749 | '../build/isolate.gypi', |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1750 | ], |
[email protected] | cc902cb | 2013-07-12 00:54:49 | [diff] [blame] | 1751 | 'sources': [ |
| 1752 | 'net_unittests.isolate', |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1753 | ], |
| 1754 | }, |
| 1755 | ], |
| 1756 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 1757 | ], |
| 1758 | } |