1// Copyright (C) 2022 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 19android_test { 20 name: "CtsHealthFitnessDeviceTestCases", 21 defaults: ["cts_defaults"], 22 libs: [ 23 "android.test.runner", 24 "android.test.base", 25 "framework-healthfitness", 26 "framework-configinfrastructure", 27 "framework-sdkextensions" 28 ], 29 srcs: [ 30 ":healthfitness-cts-testapp-srcs", 31 "src/android/healthconnect/cts/*.java", 32 ], 33 // Tag this module as a cts test artifact 34 test_suites: [ 35 "cts", 36 "general-tests", 37 "mts-healthfitness", 38 ], 39 static_libs: [ 40 "androidx.test.rules", 41 "androidx.test.ext.truth", 42 "compatibility-device-util-axt", 43 "ctstestrunner-axt", 44 "cts-wm-util", 45 "modules-utils-build", 46 "testng", 47 ], 48 min_sdk_version: "UpsideDownCake", 49 sdk_version: "module_current", 50 data: [ 51 ":HealthFitnessCtsTestApp", 52 ":HealthFitnessCtsTestApp2", 53 ], 54} 55 56android_test { 57 name: "CtsHealthFitnessDeviceTestCasesNoPermission", 58 defaults: ["cts_defaults"], 59 libs: [ 60 "android.test.runner", 61 "android.test.base", 62 "framework-healthfitness", 63 ], 64 srcs: [ 65 "src/android/healthconnect/cts/nopermission/*.java", 66 "src/android/healthconnect/cts/TestUtils.java", 67 ], 68 // Tag this module as a cts test artifact 69 test_suites: [ 70 "cts", 71 "general-tests", 72 "mts-healthfitness", 73 ], 74 static_libs: [ 75 "androidx.test.rules", 76 "androidx.test.ext.truth", 77 "compatibility-device-util-axt", 78 "ctstestrunner-axt", 79 "cts-wm-util", 80 "testng", 81 ], 82 min_sdk_version: "UpsideDownCake", 83 sdk_version: "module_current", 84 test_config:"AndroidTestNoPermission.xml", 85 manifest: "AndroidManifestNoPermission.xml", 86} 87 88android_test { 89 name: "CtsHealthConnectControllerTestCases", 90 defaults: ["cts_defaults"], 91 libs: [ 92 "android.test.runner", 93 "android.test.base", 94 "framework-healthfitness", 95 ], 96 srcs: [ 97 ":healthfitness-cts-testapp-srcs", 98 ":healthfitness-cts-testapp2-srcs", 99 "src/android/healthconnect/cts/ui/**/*.kt", 100 "src/android/healthconnect/cts/TestUtils.java", 101 "src/com/android/cts/install/lib/*.java", 102 ], 103 // Tag this module as a cts test artifact 104 test_suites: [ 105 "cts", 106 "general-tests", 107 "mts-healthfitness", 108 ], 109 static_libs: [ 110 "androidx.test.rules", 111 "androidx.test.ext.truth", 112 "compatibility-device-util-axt", 113 "ctstestrunner-axt", 114 "cts-wm-util", 115 "testng", 116 "cts-healthconnect-lib", 117 "cts-install-lib" 118 ], 119 min_sdk_version: "UpsideDownCake", 120 sdk_version: "module_current", 121 test_config:"AndroidTestUI.xml", 122 manifest: "AndroidManifestUI.xml", 123 data: [ 124 ":HealthFitnessCtsTestApp", 125 ":HealthFitnessCtsTestApp2", 126 ":CtsHealthConnectTestAppAWithNormalReadWritePermission", 127 ":CtsHealthConnectTestAppBWithNormalReadWritePermission" 128 ], 129} 130