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.stubs.system", 30 "android.test.base.stubs.system", 31 "framework-configinfrastructure.stubs.module_lib", 32 "framework-sdkextensions.stubs.module_lib", 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 "cts-healthconnect-phr-lib", 42 ], 43 srcs: [ 44 "src/android/healthconnect/tests/backuprestore/*.java", 45 ], 46 min_sdk_version: "34", 47 target_sdk_version: "34", 48 sdk_version: "module_current", 49 test_config: "AndroidTestBackupRestore.xml", 50 manifest: "AndroidManifestBackupRestore.xml", 51 resource_dirs: ["res"], 52 data: [ 53 ":HealthFitnessCtsTestApp", 54 ":HealthFitnessCtsTestApp2", 55 ], 56} 57 58android_test { 59 name: "HealthFitnessIntegrationTests", 60 team: "trendy_team_android_health", 61 test_suites: [ 62 "device-tests", 63 "general-tests", 64 "mts-healthfitness", 65 ], 66 libs: [ 67 "framework-healthfitness.impl", 68 ], 69 70 static_libs: [ 71 "androidx.test.rules", 72 "compatibility-device-util-axt", 73 "androidx.test.ext.truth", 74 "cts-healthconnect-utils", 75 "android.permission.flags-aconfig-java-export", 76 ], 77 78 srcs: [ 79 ":healthfitness-permissions-testapp-srcs", 80 "src/**/*.java", 81 ], 82 exclude_srcs: [ 83 "src/android/healthconnect/tests/backuprestore/*.java", 84 "src/android/healthconnect/tests/exportimport/*.java", 85 ], 86 min_sdk_version: "34", 87 target_sdk_version: "34", 88 sdk_version: "module_current", 89 data: [ 90 ":HealthFitnessPermsTestApp", 91 ":HCPermsTestAppNoUsageIntent", 92 ":HCSharedUserPermsTestApp", 93 ":RequestReadHeartRateTestApp", 94 ":RequestBodySensorsTestApp", 95 ], 96} 97 98android_test { 99 name: "HealthFitnessIntegrationExportImportTests", 100 team: "trendy_team_android_health", 101 test_suites: [ 102 "device-tests", 103 "general-tests", 104 "mts-healthfitness", 105 ], 106 libs: [ 107 "framework-healthfitness.impl", 108 ], 109 static_libs: [ 110 // TODO(b/318484678): Remove this dependency. 111 "service-healthfitness.impl", 112 "androidx.test.rules", 113 "compatibility-device-util-axt", 114 "androidx.test.ext.truth", 115 "cts-healthconnect-utils", 116 "cts-healthconnect-phr-lib", 117 "healthconnect-documentprovider-utils", 118 "healthfitness-exported-aconfig-flags-lib", 119 ], 120 srcs: [ 121 "src/android/healthconnect/tests/exportimport/*.java", 122 ], 123 min_sdk_version: "34", 124 sdk_version: "module_current", 125 target_sdk_version: "34", 126 test_config: "AndroidTestExportImport.xml", 127 manifest: "AndroidManifestExportImport.xml", 128 data: [ 129 ":HealthFitnessCtsTestApp", 130 ":HealthFitnessTestDocumentProviderApp", 131 ":HealthFitnessTestDocumentProviderApp2", 132 ], 133} 134