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_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21android_library { 22 name: "CtsNetHttpTestsLib", 23 defaults: [ 24 "cts_defaults", 25 ], 26 sdk_version: "test_current", 27 min_sdk_version: "30", 28 srcs: [ 29 "src/**/*.java", 30 "src/**/*.kt", 31 ], 32 static_libs: [ 33 "androidx.test.ext.junit", 34 "ctstestrunner-axt", 35 "ctstestserver", 36 "hamcrest-library", 37 "junit", 38 "kotlin-test", 39 "mockito-target", 40 "net-tests-utils", 41 "truth", 42 ], 43 libs: [ 44 "android.test.base", 45 "androidx.annotation_annotation", 46 "framework-connectivity", 47 "org.apache.http.legacy", 48 ], 49 lint: { test: true } 50} 51 52android_test { 53 name: "CtsNetHttpTestCases", 54 defaults: [ 55 "cts_defaults", 56 ], 57 enforce_default_target_sdk_version: true, 58 sdk_version: "test_current", 59 min_sdk_version: "30", 60 static_libs: ["CtsNetHttpTestsLib"], 61 // Tag this as a cts test artifact 62 test_suites: [ 63 "cts", 64 "general-tests", 65 "mts-tethering" 66 ], 67} 68