blob: 51e1e2acc9c266ad5032dfb02450696048dcfbe4 [file] [log] [blame]
Motomu Utsumiceb2a752022-10-04 18:38:04 +09001//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Patrick Rohrf0f0ac02023-01-18 02:54:41 -080021// cronet_test_java_defaults can be used to specify a java_defaults target that
22// either enables or disables Cronet tests. This is used to disable Cronet
23// tests on tm-mainline-prod where the required APIs are not present.
24cronet_test_java_defaults = "CronetTestJavaDefaultsEnabled"
25// This is a placeholder comment to avoid merge conflicts
26// as cronet_test_java_defaults may have different values
27// depending on the branch
28
Chidera Olibie4fad0c32022-11-23 18:53:54 +000029android_test {
Chidera Olibie8d6cbff2023-01-10 11:16:27 +000030 name: "CtsNetHttpTestCases",
Chidera Olibie4fad0c32022-11-23 18:53:54 +000031 compile_multilib: "both", // Include both the 32 and 64 bit versions
32 defaults: ["cts_defaults"],
33 sdk_version: "test_current",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000034 srcs: [
35 "src/**/*.java",
36 "src/**/*.kt",
37 ],
Motomu Utsumiceb2a752022-10-04 18:38:04 +090038 static_libs: [
39 "androidx.test.rules",
40 "androidx.core_core",
Chidera Olibie4fad0c32022-11-23 18:53:54 +000041 "ctstestrunner-axt",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000042 "ctstestserver",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090043 "junit",
44 ],
45 libs: [
46 "android.test.runner",
47 "android.test.base",
48 "android.test.mock",
49 "androidx.annotation_annotation",
Motomu Utsumi6dca85d2022-10-11 18:32:15 +090050 "framework-cronet",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000051 "org.apache.http.legacy",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090052 ],
Motomu Utsumiceb2a752022-10-04 18:38:04 +090053
Chidera Olibie4fad0c32022-11-23 18:53:54 +000054 // Tag this as a cts test artifact
55 test_suites: [
56 "cts",
57 "general-tests",
58 "mts-tethering"
Motomu Utsumiceb2a752022-10-04 18:38:04 +090059 ],
60}