| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/ios/rules.gni") |
| import("//testing/test.gni") |
| |
| test("cronet_test") { |
| testonly = true |
| sources = [ |
| "../../run_all_unittests.cc", |
| "cronet_acceptlang_test.mm", |
| "cronet_http_test.mm", |
| "cronet_metrics_test.mm", |
| "cronet_netlog_test.mm", |
| "cronet_performance_test.mm", |
| "cronet_pkp_test.mm", |
| "cronet_prefs_test.mm", |
| "cronet_quic_test.mm", |
| "cronet_test_base.h", |
| "cronet_test_base.mm", |
| |
| # Use native stream engine instead (https://crbug.com/874542) |
| # "get_stream_engine.mm", |
| "start_cronet.h", |
| "start_cronet.mm", |
| ] |
| |
| deps = [ |
| "//base", |
| "//base:i18n", |
| "//components/cronet:cronet_buildflags", |
| "//components/cronet/ios:cronet_framework+link", |
| "//components/cronet/native/test:cronet_native_tests", |
| "//components/cronet/test:test_support", |
| "//components/grpc_support:bidirectional_stream_test", |
| "//net", |
| "//net:simple_quic_tools", |
| "//net:test_support", |
| "//third_party/icu", |
| ] |
| |
| defines = [ "CRONET_TESTS_IMPLEMENTATION" ] |
| |
| bundle_deps = [ "//components/cronet/ios:cronet_framework+bundle" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |