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_team: "trendy_team_java_core_libraries", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "libcore_okhttp_test_cases_defaults", 22 defaults: ["cts_support_defaults"], 23 platform_apis: true, 24 min_sdk_version: "29", 25 static_libs: [ 26 "bouncycastle-unbundled", 27 "cts-core-test-runner-axt", 28 29 // Jar containing expectations files. 30 "libcore-expectations-knownfailures-jar", 31 32 "okhttp-nojarjar", 33 "okhttp-tests-nojarjar", 34 ], 35 dex_preopt: { 36 enabled: false, 37 }, 38 optimize: { 39 enabled: false, 40 }, 41 // Include both the 32 and 64 bit versions of libjavacoretests, 42 // where applicable. 43 compile_multilib: "both", 44} 45 46// Tests used in CTS and in Conscrypt MTS. 47android_test { 48 name: "CtsLibcoreOkHttpTestCases", 49 defaults: ["libcore_okhttp_test_cases_defaults"], 50 // Tag this module as a cts test artifact 51 test_suites: [ 52 "cts", 53 "general-tests", 54 "mts-conscrypt", 55 "mcts-conscrypt", 56 ], 57 host_required: ["cts-dalvik-host-test-runner"], 58 test_config: "CtsLibcoreOkHttpTestCases.xml", 59 sdk_version: "test_current", 60} 61 62// Tests used in ART MTS. 63android_test { 64 name: "MtsLibcoreOkHttpTestCases", 65 defaults: ["libcore_okhttp_test_cases_defaults"], 66 test_suites: [ 67 "general-tests", 68 "mts-art", 69 ], 70 host_required: ["cts-dalvik-host-test-runner"], 71 test_config: "MtsLibcoreOkHttpTestCases.xml", 72} 73