1// Copyright (C) 2016 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_defaults { 20 name: "libcore_okhttp_test_cases_defaults", 21 defaults: ["cts_support_defaults"], 22 platform_apis: true, 23 min_sdk_version: "29", 24 static_libs: [ 25 "bouncycastle-unbundled", 26 "cts-core-test-runner-axt", 27 28 // Jar containing expectations files. 29 "libcore-expectations-knownfailures-jar", 30 31 "okhttp-nojarjar", 32 "okhttp-tests-nojarjar", 33 ], 34 dex_preopt: { 35 enabled: false, 36 }, 37 optimize: { 38 enabled: false, 39 }, 40 // Include both the 32 and 64 bit versions of libjavacoretests, 41 // where applicable. 42 compile_multilib: "both", 43} 44 45// Tests used in CTS and in Conscrypt MTS. 46android_test { 47 name: "CtsLibcoreOkHttpTestCases", 48 defaults: ["libcore_okhttp_test_cases_defaults"], 49 // Tag this module as a cts test artifact 50 test_suites: [ 51 "cts", 52 "general-tests", 53 "mts-conscrypt", 54 ], 55 test_config: "CtsLibcoreOkHttpTestCases.xml" 56} 57 58// Tests used in ART MTS. 59android_test { 60 name: "MtsLibcoreOkHttpTestCases", 61 defaults: ["libcore_okhttp_test_cases_defaults"], 62 test_suites: [ 63 "general-tests", 64 "mts-art", 65 ], 66 test_config: "MtsLibcoreOkHttpTestCases.xml" 67} 68