Chromium Code Reviews| 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. |