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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 693 ] | 693 ] |
| 694 } | 694 } |
| 695 | 695 |
| 696 configs += [ | 696 configs += [ |
| 697 "//build/config:precompiled_headers", | 697 "//build/config:precompiled_headers", |
| 698 | 698 |
| 699 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 699 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 700 "//build/config/compiler:no_size_t_to_int_warning", | 700 "//build/config/compiler:no_size_t_to_int_warning", |
| 701 ] | 701 ] |
| 702 | 702 |
| 703 # 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
| |
| 704 # to be a dependency of the test_support target. | |
| 705 deps = [ | |
| 706 ":net_unittests_bundle_data", | |
| 707 ] | |
| 708 | |
| 703 public_deps = [ | 709 public_deps = [ |
| 704 "//base", | 710 "//base", |
| 705 "//base/test:test_support", | 711 "//base/test:test_support", |
| 706 "//crypto", | 712 "//crypto", |
| 707 "//net", | 713 "//net", |
| 708 "//net/tools/tld_cleanup", | 714 "//net/tools/tld_cleanup", |
| 709 "//testing/gmock", | 715 "//testing/gmock", |
| 710 "//testing/gtest", | 716 "//testing/gtest", |
| 711 "//url", | 717 "//url", |
| 712 ] | 718 ] |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1365 ":net", | 1371 ":net", |
| 1366 ":simple_quic_tools", | 1372 ":simple_quic_tools", |
| 1367 "//base", | 1373 "//base", |
| 1368 "//build/config/sanitizers:deps", | 1374 "//build/config/sanitizers:deps", |
| 1369 "//third_party/boringssl", | 1375 "//third_party/boringssl", |
| 1370 "//third_party/protobuf:protobuf_lite", | 1376 "//third_party/protobuf:protobuf_lite", |
| 1371 ] | 1377 ] |
| 1372 } | 1378 } |
| 1373 } | 1379 } |
| 1374 | 1380 |
| 1381 bundle_data("net_unittests_bundle_data") { | |
| 1382 sources = [ | |
| 1383 "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
| |
| 1384 ] | |
| 1385 outputs = [ | |
| 1386 "{{bundle_resources_dir}}/" + | |
| 1387 "{{source_root_relative_dir}}/{{source_file_part}}", | |
| 1388 ] | |
| 1389 } | |
| 1390 | |
| 1375 test("net_unittests") { | 1391 test("net_unittests") { |
| 1376 sources = gypi_values.net_test_sources | 1392 sources = gypi_values.net_test_sources |
| 1377 | 1393 |
| 1378 if (is_ios) { | 1394 if (is_ios) { |
| 1379 sources -= [ | 1395 sources -= [ |
| 1380 "websockets/websocket_stream_cookie_test.cc", | 1396 "websockets/websocket_stream_cookie_test.cc", |
| 1381 "websockets/websocket_stream_create_test_base.cc", | 1397 "websockets/websocket_stream_create_test_base.cc", |
| 1382 "websockets/websocket_stream_create_test_base.h", | 1398 "websockets/websocket_stream_create_test_base.h", |
| 1383 ] | 1399 ] |
| 1384 } | 1400 } |
| 1385 | 1401 |
| 1386 configs += [ | 1402 configs += [ |
| 1387 "//build/config:precompiled_headers", | 1403 "//build/config:precompiled_headers", |
| 1388 | 1404 |
| 1389 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1405 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1390 "//build/config/compiler:no_size_t_to_int_warning", | 1406 "//build/config/compiler:no_size_t_to_int_warning", |
| 1391 ] | 1407 ] |
| 1392 defines = [] | 1408 defines = [] |
| 1393 | 1409 |
| 1394 deps = [ | 1410 deps = [ |
| 1395 ":balsa", | 1411 ":balsa", |
| 1396 ":extras", | 1412 ":extras", |
| 1397 ":http_server", | 1413 ":http_server", |
| 1398 ":net", | 1414 ":net", |
| 1415 ":net_unittests_bundle_data", | |
| 1399 ":simple_quic_tools", | 1416 ":simple_quic_tools", |
| 1400 ":stale_while_revalidate_experiment_domains", | 1417 ":stale_while_revalidate_experiment_domains", |
| 1401 ":test_support", | 1418 ":test_support", |
| 1402 "//base", | 1419 "//base", |
| 1403 "//base:i18n", | 1420 "//base:i18n", |
| 1404 "//base/third_party/dynamic_annotations", | 1421 "//base/third_party/dynamic_annotations", |
| 1405 "//crypto", | 1422 "//crypto", |
| 1406 "//crypto:platform", | 1423 "//crypto:platform", |
| 1407 "//crypto:test_support", | 1424 "//crypto:test_support", |
| 1408 "//net/base/registry_controlled_domains", | 1425 "//net/base/registry_controlled_domains", |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1611 if (!enable_mdns) { | 1628 if (!enable_mdns) { |
| 1612 sources -= [ | 1629 sources -= [ |
| 1613 "dns/mdns_cache_unittest.cc", | 1630 "dns/mdns_cache_unittest.cc", |
| 1614 "dns/mdns_client_unittest.cc", | 1631 "dns/mdns_client_unittest.cc", |
| 1615 "dns/record_parsed_unittest.cc", | 1632 "dns/record_parsed_unittest.cc", |
| 1616 "dns/record_rdata_unittest.cc", | 1633 "dns/record_rdata_unittest.cc", |
| 1617 ] | 1634 ] |
| 1618 } | 1635 } |
| 1619 | 1636 |
| 1620 if (is_ios) { | 1637 if (is_ios) { |
| 1621 # TODO(GYP) | |
| 1622 # 'actions': [ | |
| 1623 # { | |
| 1624 # 'action_name': 'copy_test_data', | |
| 1625 # 'variables': { | |
| 1626 # 'test_data_files': [ | |
| 1627 # 'data/certificate_policies_unittest/', | |
| 1628 # 'data/name_constraints_unittest/', | |
| 1629 # 'data/parse_certificate_unittest/', | |
| 1630 # 'data/ssl/certificates/', | |
| 1631 # 'data/test.html', | |
| 1632 # 'data/url_request_unittest/', | |
| 1633 # 'data/verify_certificate_chain_unittest/', | |
| 1634 # 'data/verify_name_match_unittest/names/', | |
| 1635 # ], | |
| 1636 # 'test_data_prefix': 'net', | |
| 1637 # }, | |
| 1638 # 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 1639 # }, | |
| 1640 # ], | |
| 1641 sources -= [ | 1638 sources -= [ |
| 1642 # TODO(droger): The following tests are disabled because the | 1639 # TODO(droger): The following tests are disabled because the |
| 1643 # implementation is missing or incomplete. | 1640 # implementation is missing or incomplete. |
| 1644 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. | 1641 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 1645 "base/keygen_handler_unittest.cc", | 1642 "base/keygen_handler_unittest.cc", |
| 1646 "disk_cache/backend_unittest.cc", | 1643 "disk_cache/backend_unittest.cc", |
| 1647 "disk_cache/blockfile/block_files_unittest.cc", | 1644 "disk_cache/blockfile/block_files_unittest.cc", |
| 1648 | 1645 |
| 1649 # Need to read input data files. | 1646 # Need to read input data files. |
| 1650 "filter/brotli_filter_unittest.cc", | 1647 "filter/brotli_filter_unittest.cc", |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1931 "//base", | 1928 "//base", |
| 1932 "//net", | 1929 "//net", |
| 1933 ] | 1930 ] |
| 1934 } | 1931 } |
| 1935 | 1932 |
| 1936 buildflag_header("features") { | 1933 buildflag_header("features") { |
| 1937 header = "net_features.h" | 1934 header = "net_features.h" |
| 1938 | 1935 |
| 1939 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] | 1936 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] |
| 1940 } | 1937 } |
| OLD | NEW |