diff options
author | sdefresne <sdefresne@chromium.org> | 2016-03-18 04:04:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 11:05:50 +0000 |
commit | b0a316459b6513356a05f1198daeceed6d196494 (patch) | |
tree | 088defee7d682c9e5cfe4a4b2934ed37408dcd8f | |
parent | 6d1646cef28a7d0bf51a1ddf1b6cf20161719799 (diff) | |
download | chromium_src-b0a316459b6513356a05f1198daeceed6d196494.zip chromium_src-b0a316459b6513356a05f1198daeceed6d196494.tar.gz chromium_src-b0a316459b6513356a05f1198daeceed6d196494.tar.bz2 |
[iOS] Define bundle_data target for //net:net_unittests.
This ensure that the files required by net_unittests application
will be copied into the application bundle on iOS.
Synchronise the list of data files required for net_unittests
target in gyp and gn.
BUG=297668
Review URL: https://codereview.chromium.org/1803423002
Cr-Commit-Position: refs/heads/master@{#381932}
-rw-r--r-- | net/BUILD.gn | 53 |
1 files changed, 33 insertions, 20 deletions
diff --git a/net/BUILD.gn b/net/BUILD.gn index 758ef55..fea8c61c 100644 --- a/net/BUILD.gn +++ b/net/BUILD.gn @@ -595,6 +595,17 @@ if (!is_ios) { } } +bundle_data("test_support_bundle_data") { + testonly = true + sources = [ + "data/ssl/certificates", + ] + outputs = [ + "{{bundle_resources_dir}}/" + + "{{source_root_relative_dir}}/{{source_file_part}}", + ] +} + source_set("test_support") { testonly = true sources = [ @@ -700,6 +711,10 @@ source_set("test_support") { "//build/config/compiler:no_size_t_to_int_warning", ] + deps = [ + ":test_support_bundle_data", + ] + public_deps = [ "//base", "//base/test:test_support", @@ -1372,6 +1387,23 @@ if (!is_ios) { } } +bundle_data("net_unittests_bundle_data") { + testonly = true + sources = [ + "data/certificate_policies_unittest", + "data/name_constraints_unittest", + "data/parse_certificate_unittest", + "data/test.html", + "data/url_request_unittest", + "data/verify_certificate_chain_unittest", + "data/verify_name_match_unittest/names", + ] + outputs = [ + "{{bundle_resources_dir}}/" + + "{{source_root_relative_dir}}/{{source_file_part}}", + ] +} + test("net_unittests") { sources = gypi_values.net_test_sources @@ -1396,6 +1428,7 @@ test("net_unittests") { ":extras", ":http_server", ":net", + ":net_unittests_bundle_data", ":simple_quic_tools", ":stale_while_revalidate_experiment_domains", ":test_support", @@ -1618,26 +1651,6 @@ test("net_unittests") { } if (is_ios) { - # TODO(GYP) - # 'actions': [ - # { - # 'action_name': 'copy_test_data', - # 'variables': { - # 'test_data_files': [ - # 'data/certificate_policies_unittest/', - # 'data/name_constraints_unittest/', - # 'data/parse_certificate_unittest/', - # 'data/ssl/certificates/', - # 'data/test.html', - # 'data/url_request_unittest/', - # 'data/verify_certificate_chain_unittest/', - # 'data/verify_name_match_unittest/names/', - # ], - # 'test_data_prefix': 'net', - # }, - # 'includes': [ '../build/copy_test_data_ios.gypi' ], - # }, - # ], sources -= [ # TODO(droger): The following tests are disabled because the # implementation is missing or incomplete. |