Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: net/BUILD.gn

Issue 1896903002: [GN/iOS] Explicitly list test data in net_unittests_bundle_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-fix-tests-ui-gfx
Patch Set: Define the file list in net/net.gypi and sync gyp & gn Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 deps = [ 580 deps = [
581 ":net", 581 ":net",
582 ":test_support", 582 ":test_support",
583 "//base", 583 "//base",
584 "//build/config/sanitizers:deps", 584 "//build/config/sanitizers:deps",
585 ] 585 ]
586 } 586 }
587 } 587 }
588 588
589 bundle_data("test_support_bundle_data") { 589 bundle_data("test_support_bundle_data") {
590 visibility = [ ":test_support" ]
590 testonly = true 591 testonly = true
591 sources = [ 592 sources = gypi_values.net_test_support_data_sources
592 "data/ssl/certificates",
593 ]
594 outputs = [ 593 outputs = [
595 "{{bundle_resources_dir}}/" + 594 "{{bundle_resources_dir}}/" +
596 "{{source_root_relative_dir}}/{{source_file_part}}", 595 "{{source_root_relative_dir}}/{{source_file_part}}",
597 ] 596 ]
598 } 597 }
599 598
600 source_set("test_support") { 599 source_set("test_support") {
601 testonly = true 600 testonly = true
602 sources = [ 601 sources = [
603 "base/load_timing_info_test_util.cc", 602 "base/load_timing_info_test_util.cc",
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 ] 694 ]
696 } 695 }
697 696
698 configs += [ 697 configs += [
699 "//build/config:precompiled_headers", 698 "//build/config:precompiled_headers",
700 699
701 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 700 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
702 "//build/config/compiler:no_size_t_to_int_warning", 701 "//build/config/compiler:no_size_t_to_int_warning",
703 ] 702 ]
704 703
705 deps = [
706 ":test_support_bundle_data",
707 ]
708
709 public_deps = [ 704 public_deps = [
710 "//base", 705 "//base",
711 "//base/test:test_support", 706 "//base/test:test_support",
712 "//crypto", 707 "//crypto",
713 "//net", 708 "//net",
714 "//net/tools/tld_cleanup", 709 "//net/tools/tld_cleanup",
715 "//testing/gmock", 710 "//testing/gmock",
716 "//testing/gtest", 711 "//testing/gtest",
717 "//url", 712 "//url",
718 ] 713 ]
719 714
715 deps = [
716 ":test_support_bundle_data",
717 ]
718
720 if (!is_ios) { 719 if (!is_ios) {
721 public_deps += [ "//third_party/protobuf:py_proto" ] 720 public_deps += [ "//third_party/protobuf:py_proto" ]
722 } 721 }
723 722
724 if (use_nss_verifier) { 723 if (use_nss_verifier) {
725 public_deps += [ "//crypto:platform" ] 724 public_deps += [ "//crypto:platform" ]
726 } 725 }
727 726
728 if (is_android) { 727 if (is_android) {
729 sources += [ 728 sources += [
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 "//base", 1399 "//base",
1401 "//build/config/sanitizers:deps", 1400 "//build/config/sanitizers:deps",
1402 "//third_party/boringssl", 1401 "//third_party/boringssl",
1403 "//third_party/protobuf:protobuf_lite", 1402 "//third_party/protobuf:protobuf_lite",
1404 ] 1403 ]
1405 } 1404 }
1406 } 1405 }
1407 1406
1408 bundle_data("net_unittests_bundle_data") { 1407 bundle_data("net_unittests_bundle_data") {
1409 testonly = true 1408 testonly = true
1410 sources = [ 1409 sources = gypi_values.net_unittests_data_sources
1411 "data/certificate_policies_unittest",
1412 "data/name_constraints_unittest",
1413 "data/parse_certificate_unittest",
1414 "data/parse_ocsp_unittest",
1415 "data/test.html",
1416 "data/url_request_unittest",
1417 "data/verify_certificate_chain_unittest",
1418 "data/verify_name_match_unittest/names",
1419 "third_party/nist-pkits/certs",
1420 "third_party/nist-pkits/crls",
1421 ]
1422 outputs = [ 1410 outputs = [
1423 "{{bundle_resources_dir}}/" + 1411 "{{bundle_resources_dir}}/" +
1424 "{{source_root_relative_dir}}/{{source_file_part}}", 1412 "{{source_root_relative_dir}}/{{source_file_part}}",
1425 ] 1413 ]
1426 } 1414 }
1427 1415
1428 test("net_unittests") { 1416 test("net_unittests") {
1429 sources = gypi_values.net_test_sources 1417 sources = gypi_values.net_test_sources
1430 1418
1431 configs += [ 1419 configs += [
(...skipping 21 matching lines...) Expand all
1453 "//net/base/registry_controlled_domains", 1441 "//net/base/registry_controlled_domains",
1454 "//sql", 1442 "//sql",
1455 "//testing/gmock", 1443 "//testing/gmock",
1456 "//testing/gtest", 1444 "//testing/gtest",
1457 "//third_party/zlib", 1445 "//third_party/zlib",
1458 "//url", 1446 "//url",
1459 "//url:url_features", 1447 "//url:url_features",
1460 ] 1448 ]
1461 1449
1462 data = [ 1450 data = [
1463 "data/", 1451 "data/",
eroman 2016/04/20 18:04:05 Why are these not a problem? The current CL enume
eroman 2016/04/20 18:11:00 Let me re-word: I think my confusion is in unders
sdefresne 2016/04/20 18:13:51 The "data" property of "test" target is not used o
sdefresne 2016/04/20 18:21:02 Initially I wanted to try to list only individual
1464 ] 1452 ]
1465 data_deps = [] 1453 data_deps = []
1466 1454
1467 if (use_openssl) { 1455 if (use_openssl) {
1468 data_deps += [ "third_party/nist-pkits/" ] 1456 data_deps += [ "third_party/nist-pkits/" ]
1469 } 1457 }
1470 1458
1471 if (is_linux || is_mac || is_win) { 1459 if (is_linux || is_mac || is_win) {
1472 deps += [ 1460 deps += [
1473 "//third_party/pyftpdlib/", 1461 "//third_party/pyftpdlib/",
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 sources = [ 2002 sources = [
2015 "socket/socks5_client_socket_fuzzer.cc", 2003 "socket/socks5_client_socket_fuzzer.cc",
2016 ] 2004 ]
2017 deps = [ 2005 deps = [
2018 ":net_fuzzer_test_support", 2006 ":net_fuzzer_test_support",
2019 ":test_support", 2007 ":test_support",
2020 "//base", 2008 "//base",
2021 "//net", 2009 "//net",
2022 ] 2010 ]
2023 } 2011 }
OLDNEW
« no previous file with comments | « components/security_state/BUILD.gn ('k') | net/net.gyp » ('j') | net/net.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698