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
48
49
50
51
|
# Copyright 2017 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("//components/cronet/native/include/headers.gni")
import("//testing/test.gni")
source_set("cronet_native_testutil") {
testonly = true
deps = [
"//base",
"//components/cronet/native:cronet_native_headers",
"//net:test_support",
]
configs += [ "//components/cronet/native:cronet_native_include_config" ]
public_configs = [ "//components/cronet/native:cronet_native_include_config" ]
sources = [
"test_util.cc",
"test_util.h",
]
}
# Tests for publicly exported Cronet Native API. This target does NOT depend on
# cronet_native_impl to prevent static linking of implementation into test app.
source_set("cronet_native_tests") {
testonly = true
deps = [
":cronet_native_testutil",
"//base",
"//base/test:test_support",
"//components/cronet/native:cronet_native_headers",
"//components/cronet/test:test_support",
"//net:test_support",
"//testing/gtest",
]
configs += [ "//components/cronet/native:cronet_native_include_config" ]
sources = [
"buffer_test.cc",
"engine_test.cc",
"executors_test.cc",
"test_url_request_callback.cc",
"test_url_request_callback.h",
"url_request_test.cc",
]
}
|