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-connectivity.stubs.module_lib", 50 "framework-connectivity.stubs.system", 51 "org.apache.http.legacy.stubs.test", 52 ], 53 lint: { 54 test: true, 55 }, 56} 57 58android_test { 59 name: "CtsNetHttpTestCases", 60 defaults: [ 61 "cts_defaults", 62 ], 63 enforce_default_target_sdk_version: true, 64 sdk_version: "module_current", 65 min_sdk_version: "30", 66 static_libs: ["CtsNetHttpTestsLib"], 67 // Tag this as a cts test artifact 68 test_suites: [ 69 "cts", 70 "general-tests", 71 "mts-tethering", 72 "mcts-tethering", 73 ], 74} 75