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/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/module_args/v8.gni") | 8 import("//build/module_args/v8.gni") |
9 import("//url/config.gni") | 9 import("//url/config.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1302 ":simple_quic_tools", | 1302 ":simple_quic_tools", |
1303 "//base", | 1303 "//base", |
1304 "//third_party/boringssl", | 1304 "//third_party/boringssl", |
1305 "//third_party/protobuf:protobuf_lite", | 1305 "//third_party/protobuf:protobuf_lite", |
1306 ] | 1306 ] |
1307 } | 1307 } |
1308 | 1308 |
1309 # TODO(GYP) make this compile on Android, we need some native test deps done. | 1309 # TODO(GYP) make this compile on Android, we need some native test deps done. |
1310 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. | 1310 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. |
1311 if (!is_android && !is_mac) { | 1311 if (!is_android && !is_mac) { |
1312 # TODO(GYP): Delete this after we've converted everything to GN. | |
1313 # The _run targets exist only for compatibility w/ GYP. | |
1314 group("net_unittests_run") { | |
1315 testonly = true | |
1316 deps = [ | |
1317 ":net_unittests", | |
1318 ] | |
1319 } | |
1312 test("net_unittests") { | 1320 test("net_unittests") { |
1313 sources = gypi_values.net_test_sources | 1321 sources = gypi_values.net_test_sources |
1314 | 1322 |
1315 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1323 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1316 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1324 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1317 defines = [] | 1325 defines = [] |
1318 | 1326 |
1319 deps = [ | 1327 deps = [ |
1320 ":balsa", | 1328 ":balsa", |
1321 ":extras", | 1329 ":extras", |
(...skipping 14 matching lines...) Expand all Loading... | |
1336 "//sql", | 1344 "//sql", |
1337 "//testing/gmock", | 1345 "//testing/gmock", |
1338 "//testing/gtest", | 1346 "//testing/gtest", |
1339 "//third_party/zlib", | 1347 "//third_party/zlib", |
1340 "//url", | 1348 "//url", |
1341 ] | 1349 ] |
1342 | 1350 |
1343 data = [ | 1351 data = [ |
1344 "data/", | 1352 "data/", |
1345 ] | 1353 ] |
1354 | |
1346 if (is_linux || is_mac || is_win) { | 1355 if (is_linux || is_mac || is_win) { |
1347 deps += [ | 1356 deps += [ |
1348 "//third_party/pyftpdlib/", | 1357 "//third_party/pyftpdlib/", |
1349 "//third_party/pywebsocket/", | 1358 "//third_party/pywebsocket/", |
1350 "//third_party/tlslite/", | 1359 "//third_party/tlslite/", |
1351 ] | 1360 ] |
1352 data += [ "tools/testserver/" ] | 1361 data_deps = [ |
1362 "//third_party/pyftpdlib/", | |
1363 "//third_party/pywebsocket/", | |
1364 "//third_party/tlslite/", | |
1365 ] | |
1366 data += [ | |
1367 "tools/testserver/", | |
1368 "//third_party/pyftpdlib/", | |
M-A Ruel
2015/07/26 00:51:24
Why are they needed both as data_deps and data?
Dirk Pranke
2015/07/26 17:52:53
same answer.
| |
1369 "//third_party/pywebsocket/", | |
1370 "//third_party/tlslite/", | |
1371 "$root_out_dir/pyproto/google/", | |
1372 ] | |
1353 } | 1373 } |
1354 | 1374 |
1355 if (is_desktop_linux) { | 1375 if (is_desktop_linux) { |
1356 deps += [ ":epoll_quic_tools" ] | 1376 deps += [ ":epoll_quic_tools" ] |
1357 } | 1377 } |
1358 if (is_linux) { | 1378 if (is_linux) { |
1359 sources += gypi_values.net_linux_test_sources | 1379 sources += gypi_values.net_linux_test_sources |
1360 deps += [ | 1380 deps += [ |
1361 ":balsa", | 1381 ":balsa", |
1362 ":epoll_quic_tools", | 1382 ":epoll_quic_tools", |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1661 } else { | 1681 } else { |
1662 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1682 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
1663 } | 1683 } |
1664 | 1684 |
1665 if (is_win && icu_use_data_file) { | 1685 if (is_win && icu_use_data_file) { |
1666 # This is needed to trigger the dll copy step on windows. | 1686 # This is needed to trigger the dll copy step on windows. |
1667 # TODO(mark): Specifying this here shouldn't be necessary. | 1687 # TODO(mark): Specifying this here shouldn't be necessary. |
1668 deps += [ "//third_party/icu:icudata" ] | 1688 deps += [ "//third_party/icu:icudata" ] |
1669 } | 1689 } |
1670 } | 1690 } |
OLD | NEW |