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/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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1304 ] | 1304 ] |
| 1305 deps = [ | 1305 deps = [ |
| 1306 ":net", | 1306 ":net", |
| 1307 ":simple_quic_tools", | 1307 ":simple_quic_tools", |
| 1308 "//base", | 1308 "//base", |
| 1309 "//third_party/boringssl", | 1309 "//third_party/boringssl", |
| 1310 "//third_party/protobuf:protobuf_lite", | 1310 "//third_party/protobuf:protobuf_lite", |
| 1311 ] | 1311 ] |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 # TODO(GYP) bug 513775: Make this work on Mac. | 1314 # TODO(GYP) make this compile on Android, we need some native test deps done. |
| 1315 if (!is_mac) { | 1315 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. |
| 1316 if (!is_android && !is_mac) { | |
| 1317 # TODO(GYP): Delete this after we've converted everything to GN. | |
| 1318 # The _run targets exist only for compatibility w/ GYP. | |
| 1319 group("net_unittests_run") { | |
| 1320 testonly = true | |
| 1321 deps = [ | |
| 1322 ":net_unittests", | |
| 1323 ] | |
| 1324 } | |
| 1325 | |
| 1316 test("net_unittests") { | 1326 test("net_unittests") { |
| 1317 sources = gypi_values.net_test_sources | 1327 sources = gypi_values.net_test_sources |
| 1318 | 1328 |
| 1319 configs += [ | 1329 configs += [ |
| 1320 "//build/config:precompiled_headers", | 1330 "//build/config:precompiled_headers", |
| 1321 | 1331 |
| 1322 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1332 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1323 "//build/config/compiler:no_size_t_to_int_warning", | 1333 "//build/config/compiler:no_size_t_to_int_warning", |
| 1324 ] | 1334 ] |
| 1325 defines = [] | 1335 defines = [] |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 1344 "//sql", | 1354 "//sql", |
| 1345 "//testing/gmock", | 1355 "//testing/gmock", |
| 1346 "//testing/gtest", | 1356 "//testing/gtest", |
| 1347 "//third_party/zlib", | 1357 "//third_party/zlib", |
| 1348 "//url", | 1358 "//url", |
| 1349 ] | 1359 ] |
| 1350 | 1360 |
| 1351 data = [ | 1361 data = [ |
| 1352 "data/", | 1362 "data/", |
| 1353 ] | 1363 ] |
| 1364 | |
| 1354 if (is_linux || is_mac || is_win) { | 1365 if (is_linux || is_mac || is_win) { |
| 1355 deps += [ | 1366 deps += [ |
| 1356 "//third_party/pyftpdlib/", | 1367 "//third_party/pyftpdlib/", |
| 1357 "//third_party/pywebsocket/", | 1368 "//third_party/pywebsocket/", |
| 1358 "//third_party/tlslite/", | 1369 "//third_party/tlslite/", |
| 1359 ] | 1370 ] |
| 1360 data += [ "tools/testserver/" ] | 1371 data_deps = [ |
| 1372 "//third_party/pyftpdlib/", | |
| 1373 "//third_party/pywebsocket/", | |
| 1374 "//third_party/tlslite/", | |
| 1375 ] | |
| 1376 data += [ | |
| 1377 "tools/testserver/", | |
| 1378 "//third_party/pyftpdlib/", | |
| 1379 "//third_party/pywebsocket/", | |
| 1380 "//third_party/tlslite/", | |
| 1381 "$root_out_dir/pyproto/google/", | |
| 1382 ] | |
|
Dirk Pranke
2015/07/28 23:50:05
This duplication (and related occurrences elsewher
| |
| 1361 } | 1383 } |
| 1362 | 1384 |
| 1363 if (is_desktop_linux) { | 1385 if (is_desktop_linux) { |
| 1364 deps += [ ":epoll_quic_tools" ] | 1386 deps += [ ":epoll_quic_tools" ] |
| 1365 } | 1387 } |
| 1366 if (is_linux) { | 1388 if (is_linux) { |
| 1367 sources += gypi_values.net_linux_test_sources | 1389 sources += gypi_values.net_linux_test_sources |
| 1368 deps += [ | 1390 deps += [ |
| 1369 ":balsa", | 1391 ":balsa", |
| 1370 ":epoll_quic_tools", | 1392 ":epoll_quic_tools", |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1654 if (enable_websockets) { | 1676 if (enable_websockets) { |
| 1655 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1677 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1656 } | 1678 } |
| 1657 | 1679 |
| 1658 if (use_v8_in_net) { | 1680 if (use_v8_in_net) { |
| 1659 deps += [ ":net_with_v8" ] | 1681 deps += [ ":net_with_v8" ] |
| 1660 } else { | 1682 } else { |
| 1661 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1683 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1662 } | 1684 } |
| 1663 } | 1685 } |
| OLD | NEW |