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: "test_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 "ctstestserver", 37 "hamcrest-library", 38 "junit", 39 "kotlin-test", 40 "mockito-target", 41 "net-tests-utils", 42 "truth", 43 ], 44 libs: [ 45 "android.test.base", 46 "androidx.annotation_annotation", 47 "framework-connectivity", 48 "org.apache.http.legacy", 49 ], 50 lint: { 51 test: true, 52 }, 53} 54 55android_test { 56 name: "CtsNetHttpTestCases", 57 defaults: [ 58 "cts_defaults", 59 ], 60 enforce_default_target_sdk_version: true, 61 sdk_version: "test_current", 62 min_sdk_version: "30", 63 static_libs: ["CtsNetHttpTestsLib"], 64 // Tag this as a cts test artifact 65 test_suites: [ 66 "cts", 67 "general-tests", 68 "mts-tethering", 69 "mcts-tethering", 70 ], 71} 72