summaryrefslogtreecommitdiff
path: root/chromium/components/cronet/ios/test/BUILD.gn
blob: a25b6570e08c920888bd4e64925b132114a38097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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" ]
}