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: "HealthFitnessIntegrationBackupRestoreTests", 21 team: "trendy_team_android_health", 22 test_suites: [ 23 "device-tests", 24 "general-tests", 25 "mts-healthfitness", 26 ], 27 28 libs: [ 29 "android.test.runner", 30 "android.test.base", 31 "framework-configinfrastructure", 32 "framework-sdkextensions", 33 "framework-healthfitness.impl", 34 ], 35 36 static_libs: [ 37 "androidx.test.rules", 38 "compatibility-device-util-axt", 39 "androidx.test.ext.truth", 40 "cts-healthconnect-utils", 41 ], 42 srcs: [ 43 "src/android/healthconnect/tests/backuprestore/*.java", 44 ], 45 min_sdk_version: "34", 46 target_sdk_version: "34", 47 sdk_version: "module_current", 48 test_config: "AndroidTestBackupRestore.xml", 49 manifest: "AndroidManifestBackupRestore.xml", 50 resource_dirs: ["res"], 51 data: [ 52 ":HealthFitnessCtsTestApp", 53 ":HealthFitnessCtsTestApp2", 54 ], 55} 56 57android_test { 58 name: "HealthFitnessIntegrationTests", 59 team: "trendy_team_android_health", 60 test_suites: [ 61 "device-tests", 62 "general-tests", 63 "mts-healthfitness", 64 ], 65 libs: [ 66 "framework-healthfitness.impl", 67 ], 68 69 static_libs: [ 70 "androidx.test.rules", 71 "compatibility-device-util-axt", 72 "androidx.test.ext.truth", 73 "cts-healthconnect-utils", 74 ], 75 76 srcs: [ 77 ":healthfitness-permissions-testapp-srcs", 78 "src/**/*.java", 79 ], 80 exclude_srcs: [ 81 "src/android/healthconnect/tests/backuprestore/*.java", 82 "src/android/healthconnect/tests/exportimport/*.java", 83 ], 84 min_sdk_version: "34", 85 target_sdk_version: "34", 86 sdk_version: "module_current", 87 data: [ 88 ":HealthFitnessPermsTestApp", 89 ":HCPermsTestAppNoUsageIntent", 90 ":HCSharedUserPermsTestApp", 91 ], 92} 93 94android_test { 95 name: "HealthFitnessIntegrationExportImportTests", 96 team: "trendy_team_android_health", 97 test_suites: [ 98 "device-tests", 99 "general-tests", 100 "mts-healthfitness", 101 ], 102 libs: [ 103 "framework-healthfitness.impl", 104 ], 105 static_libs: [ 106 "androidx.test.rules", 107 "compatibility-device-util-axt", 108 "androidx.test.ext.truth", 109 "cts-healthconnect-utils", 110 "healthconnect-documentprovider-utils", 111 ], 112 srcs: [ 113 "src/android/healthconnect/tests/exportimport/*.java", 114 ], 115 min_sdk_version: "34", 116 sdk_version: "module_current", 117 target_sdk_version: "34", 118 test_config: "AndroidTestExportImport.xml", 119 manifest: "AndroidManifestExportImport.xml", 120 data: [ 121 ":HealthFitnessTestDocumentProviderApp", 122 ":HealthFitnessTestDocumentProviderApp2", 123 ], 124} 125