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

Unified Diff: net/BUILD.gn

Issue 1803423002: [iOS] Define bundle_data target for //net:net_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-generated-files
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 758ef55b41527176e79b205a022ffb42da9b0812..7bddc2acef9d157757ab3ceee199c70310d71f29 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -700,6 +700,12 @@ source_set("test_support") {
"//build/config/compiler:no_size_t_to_int_warning",
]
+ # net/test/cert_test_util.cc depends on the test data, so this needs
mattm 2016/03/16 20:28:33 Any idea why this wasn't a problem in gyp? I gues
sdefresne 2016/03/17 16:02:22 With gyp, due to how the files are moved into the
+ # to be a dependency of the test_support target.
+ deps = [
+ ":net_unittests_bundle_data",
+ ]
+
public_deps = [
"//base",
"//base/test:test_support",
@@ -1372,6 +1378,16 @@ if (!is_ios) {
}
}
+bundle_data("net_unittests_bundle_data") {
+ sources = [
+ "data",
mattm 2016/03/16 20:28:33 I think we should maintain symmetry between gyp an
Dirk Pranke 2016/03/16 22:02:20 Agreed we should probably match lists to avoid con
sdefresne 2016/03/17 16:02:22 Agreed for keeping the list in sync. As mentioned
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/" +
+ "{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+}
+
test("net_unittests") {
sources = gypi_values.net_test_sources
@@ -1396,6 +1412,7 @@ test("net_unittests") {
":extras",
":http_server",
":net",
+ ":net_unittests_bundle_data",
":simple_quic_tools",
":stale_while_revalidate_experiment_domains",
":test_support",
@@ -1618,26 +1635,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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698