• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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_team: "trendy_team_fwk_core_networking",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_library {
23    name: "CtsNetHttpTestsLib",
24    defaults: [
25        "cts_defaults",
26    ],
27    sdk_version: "module_current",
28    min_sdk_version: "30",
29    srcs: [
30        "src/**/*.java",
31        "src/**/*.kt",
32    ],
33    static_libs: [
34        "androidx.test.ext.junit",
35        "ctstestrunner-axt",
36        "flag-junit",
37        "com.android.net.http.flags-aconfig-java",
38        "ctstestserver",
39        "hamcrest-library",
40        "junit",
41        "kotlin-test",
42        "mockito-target",
43        "net-tests-utils",
44        "truth",
45    ],
46    libs: [
47        "android.test.base.stubs.test",
48        "androidx.annotation_annotation",
49        "framework-sdkextensions.stubs.module_lib",
50        "framework-connectivity.stubs.module_lib",
51        "framework-connectivity.stubs.system",
52        "httpclient_impl",
53        "org.apache.http.legacy.stubs.test",
54    ],
55    lint: {
56        test: true,
57    },
58}
59
60android_test {
61    name: "CtsNetHttpTestCases",
62    defaults: [
63        "cts_defaults",
64    ],
65    enforce_default_target_sdk_version: true,
66    sdk_version: "module_current",
67    min_sdk_version: "30",
68    static_libs: ["CtsNetHttpTestsLib"],
69    // Tag this as a cts test artifact
70    test_suites: [
71        "cts",
72        "general-tests",
73        "mts-tethering",
74        "mcts-tethering",
75    ],
76}
77