Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 deps = [ | 489 deps = [ |
| 490 ":net", | 490 ":net", |
| 491 ":test_support", | 491 ":test_support", |
| 492 "//base", | 492 "//base", |
| 493 "//build/config/sanitizers:deps", | 493 "//build/config/sanitizers:deps", |
| 494 "//build/win:default_exe_manifest", | 494 "//build/win:default_exe_manifest", |
| 495 ] | 495 ] |
| 496 } | 496 } |
| 497 } | 497 } |
| 498 | 498 |
| 499 bundle_data("test_support_bundle_data") { | 499 if (is_ios) { |
|
sdefresne
2016/07/22 15:36:48
We generally define the bundle_data target on all
Robert Sesek
2016/07/22 17:05:10
Done.
| |
| 500 visibility = [ ":test_support" ] | 500 bundle_data("test_support_bundle_data") { |
| 501 testonly = true | 501 visibility = [ ":test_support" ] |
| 502 sources = gypi_values.net_test_support_data_sources | 502 testonly = true |
| 503 outputs = [ | 503 sources = gypi_values.net_test_support_data_sources |
| 504 "{{bundle_resources_dir}}/" + | 504 outputs = [ |
| 505 "{{source_root_relative_dir}}/{{source_file_part}}", | 505 "{{bundle_resources_dir}}/" + |
| 506 ] | 506 "{{source_root_relative_dir}}/{{source_file_part}}", |
| 507 ] | |
| 508 } | |
| 507 } | 509 } |
| 508 | 510 |
| 509 static_library("test_support") { | 511 static_library("test_support") { |
| 510 testonly = true | 512 testonly = true |
| 511 sources = [ | 513 sources = [ |
| 512 "base/load_timing_info_test_util.cc", | 514 "base/load_timing_info_test_util.cc", |
| 513 "base/load_timing_info_test_util.h", | 515 "base/load_timing_info_test_util.h", |
| 514 "base/mock_file_stream.cc", | 516 "base/mock_file_stream.cc", |
| 515 "base/mock_file_stream.h", | 517 "base/mock_file_stream.h", |
| 516 "base/test_completion_callback.cc", | 518 "base/test_completion_callback.cc", |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 622 "//base", | 624 "//base", |
| 623 "//base/test:test_support", | 625 "//base/test:test_support", |
| 624 "//crypto", | 626 "//crypto", |
| 625 "//net", | 627 "//net", |
| 626 "//net/tools/tld_cleanup", | 628 "//net/tools/tld_cleanup", |
| 627 "//testing/gmock", | 629 "//testing/gmock", |
| 628 "//testing/gtest", | 630 "//testing/gtest", |
| 629 "//url", | 631 "//url", |
| 630 ] | 632 ] |
| 631 | 633 |
| 632 deps = [ | 634 deps = [] |
| 633 ":test_support_bundle_data", | 635 |
| 634 ] | 636 if (is_ios) { |
| 637 deps += [ ":test_support_bundle_data" ] | |
| 638 } | |
| 635 | 639 |
| 636 data = [ | 640 data = [ |
| 637 "data/", | 641 "data/", |
| 638 ] | 642 ] |
| 639 | 643 |
| 640 if (!is_ios) { | 644 if (!is_ios) { |
| 641 public_deps += [ "//third_party/protobuf:py_proto" ] | 645 public_deps += [ "//third_party/protobuf:py_proto" ] |
| 642 } | 646 } |
| 643 | 647 |
| 644 if (use_nss_certs) { | 648 if (use_nss_certs) { |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1308 ] | 1312 ] |
| 1309 deps = [ | 1313 deps = [ |
| 1310 ":net", | 1314 ":net", |
| 1311 "//base", | 1315 "//base", |
| 1312 "//build/config/sanitizers:deps", | 1316 "//build/config/sanitizers:deps", |
| 1313 "//build/win:default_exe_manifest", | 1317 "//build/win:default_exe_manifest", |
| 1314 ] | 1318 ] |
| 1315 } | 1319 } |
| 1316 } | 1320 } |
| 1317 | 1321 |
| 1318 bundle_data("net_unittests_bundle_data") { | 1322 if (is_ios) { |
|
sdefresne
2016/07/22 15:36:48
ditto
Robert Sesek
2016/07/22 17:05:10
Done.
| |
| 1319 testonly = true | 1323 bundle_data("net_unittests_bundle_data") { |
| 1320 sources = gypi_values.net_unittests_data_sources | 1324 testonly = true |
| 1321 outputs = [ | 1325 sources = gypi_values.net_unittests_data_sources |
| 1322 "{{bundle_resources_dir}}/" + | 1326 outputs = [ |
| 1323 "{{source_root_relative_dir}}/{{source_file_part}}", | 1327 "{{bundle_resources_dir}}/" + |
| 1324 ] | 1328 "{{source_root_relative_dir}}/{{source_file_part}}", |
| 1329 ] | |
| 1330 } | |
| 1325 } | 1331 } |
| 1326 | 1332 |
| 1327 test("net_unittests") { | 1333 test("net_unittests") { |
| 1328 sources = gypi_values.net_test_sources | 1334 sources = gypi_values.net_test_sources |
| 1329 | 1335 |
| 1330 configs += [ | 1336 configs += [ |
| 1331 "//build/config:precompiled_headers", | 1337 "//build/config:precompiled_headers", |
| 1332 | 1338 |
| 1333 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1339 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1334 "//build/config/compiler:no_size_t_to_int_warning", | 1340 "//build/config/compiler:no_size_t_to_int_warning", |
| 1335 ] | 1341 ] |
| 1336 defines = [] | 1342 defines = [] |
| 1337 | 1343 |
| 1338 deps = [ | 1344 deps = [ |
| 1339 ":balsa", | 1345 ":balsa", |
| 1340 ":extras", | 1346 ":extras", |
| 1341 ":net", | 1347 ":net", |
| 1342 ":net_unittests_bundle_data", | |
| 1343 ":simple_quic_tools", | 1348 ":simple_quic_tools", |
| 1344 ":stale_while_revalidate_experiment_domains", | 1349 ":stale_while_revalidate_experiment_domains", |
| 1345 ":test_support", | 1350 ":test_support", |
| 1346 "//base", | 1351 "//base", |
| 1347 "//base:i18n", | 1352 "//base:i18n", |
| 1348 "//base/third_party/dynamic_annotations", | 1353 "//base/third_party/dynamic_annotations", |
| 1349 "//crypto", | 1354 "//crypto", |
| 1350 "//crypto:platform", | 1355 "//crypto:platform", |
| 1351 "//crypto:test_support", | 1356 "//crypto:test_support", |
| 1352 "//net/base/registry_controlled_domains", | 1357 "//net/base/registry_controlled_domains", |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1539 | 1544 |
| 1540 # Needs GetAppOutput(). | 1545 # Needs GetAppOutput(). |
| 1541 "test/python_utils_unittest.cc", | 1546 "test/python_utils_unittest.cc", |
| 1542 | 1547 |
| 1543 # The following tests are disabled because they don't apply to | 1548 # The following tests are disabled because they don't apply to |
| 1544 # iOS. | 1549 # iOS. |
| 1545 # OS is not "linux" or "freebsd" or "openbsd". | 1550 # OS is not "linux" or "freebsd" or "openbsd". |
| 1546 "socket/unix_domain_client_socket_posix_unittest.cc", | 1551 "socket/unix_domain_client_socket_posix_unittest.cc", |
| 1547 "socket/unix_domain_server_socket_posix_unittest.cc", | 1552 "socket/unix_domain_server_socket_posix_unittest.cc", |
| 1548 ] | 1553 ] |
| 1554 | |
| 1555 deps += [ ":net_unittests_bundle_data" ] | |
|
sdefresne
2016/07/22 15:36:48
nit: you could use bundle_deps instead to increase
Robert Sesek
2016/07/22 17:05:10
Good call. Done.
| |
| 1549 } | 1556 } |
| 1550 | 1557 |
| 1551 # Unit tests that aren't supported by the current ICU alternatives on Android. | 1558 # Unit tests that aren't supported by the current ICU alternatives on Android. |
| 1552 if (is_android && use_platform_icu_alternatives) { | 1559 if (is_android && use_platform_icu_alternatives) { |
| 1553 sources -= [ | 1560 sources -= [ |
| 1554 "base/filename_util_unittest.cc", | 1561 "base/filename_util_unittest.cc", |
| 1555 "base/url_util_unittest.cc", | 1562 "base/url_util_unittest.cc", |
| 1556 "cert/x509_certificate_unittest.cc", | 1563 "cert/x509_certificate_unittest.cc", |
| 1557 "proxy/proxy_resolver_v8_unittest.cc", | 1564 "proxy/proxy_resolver_v8_unittest.cc", |
| 1558 "url_request/url_request_job_unittest.cc", | 1565 "url_request/url_request_job_unittest.cc", |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2001 "url_request/url_request_fuzzer.cc", | 2008 "url_request/url_request_fuzzer.cc", |
| 2002 ] | 2009 ] |
| 2003 deps = [ | 2010 deps = [ |
| 2004 ":net_fuzzer_test_support", | 2011 ":net_fuzzer_test_support", |
| 2005 ":test_support", | 2012 ":test_support", |
| 2006 "//base", | 2013 "//base", |
| 2007 "//net", | 2014 "//net", |
| 2008 ] | 2015 ] |
| 2009 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict" | 2016 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict" |
| 2010 } | 2017 } |
| OLD | NEW |