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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 2022 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/android/rules.gni")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/android/httpclient/AnnotatedSimpleHttpClient.java",
"java/src/org/chromium/chrome/browser/android/httpclient/SimpleHttpClient.java",
]
deps = [
"//base:base_java",
"//base:jni_java",
"//build/android:build_java",
"//chrome/browser/android/httpclient/public:java",
"//chrome/browser/profiles/android:java",
"//content/public/android:content_java",
"//net/android:net_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//url:gurl_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/chrome/browser/android/httpclient/SimpleHttpClient.java" ]
}
source_set("android") {
# Not listed here are http_client_bridge.h|cc because they need to use
# profile_android.h which is not modularised yet. As such they live in
# //chrome/browser:browser next to other unmodularized code.
sources = [
"http_client.cc",
"http_client.h",
]
deps = [
"//base:base",
"//chrome/browser/profiles:profile",
"//content/public/browser",
"//net",
"//net/traffic_annotation",
"//services/network/public/cpp",
"//services/network/public/mojom:url_loader_base",
"//url",
]
}
source_set("unittests") {
testonly = true
sources = [ "http_client_unittest.cc" ]
deps = [
":android",
"//base:base",
"//base/test:test_support",
"//content/public/browser",
"//content/test:test_support",
"//net:net",
"//net/traffic_annotation:test_support",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
"//services/network/public/mojom:url_loader_base",
"//testing/gmock",
"//testing/gtest:gtest",
]
}
android_library("javatests") {
testonly = true
sources = [ "java/src/org/chromium/chrome/browser/android/httpclient/SimpleHttpClientTest.java" ]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/browser/profiles/android:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java",
"//net/android:net_java_test_support",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit:junit",
"//url:gurl_java",
]
}
java_library("junit_tests") {
bypass_platform_checks = true
testonly = true
sources = [ "java/src/org/chromium/chrome/browser/android/httpclient/SimpleHttpClientUnitTest.java" ]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/profiles/android:java",
"//net/android:net_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//url:gurl_java",
"//url:gurl_junit_test_support",
]
}
|