1// Copyright (C) 2024 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 default_team: "trendy_team_android_health", 18} 19 20android_test { 21 name: "CtsHealthFitnessPhrTestCases", 22 team: "trendy_team_android_health", 23 defaults: ["cts_defaults"], 24 libs: [ 25 "android.test.runner.stubs.system", 26 "android.test.base.stubs.system", 27 "framework-healthfitness.stubs.module_lib", 28 "framework-configinfrastructure.stubs.module_lib", 29 "framework-sdkextensions.stubs.module_lib", 30 ], 31 srcs: [ 32 "src/android/healthconnect/cts/phr/**/*.java", 33 ], 34 // Tag this module as a cts test artifact 35 test_suites: [ 36 "cts", 37 "general-tests", 38 "mts-healthfitness", 39 "mcts-healthfitness", 40 ], 41 static_libs: [ 42 "androidx.test.rules", 43 "androidx.test.ext.truth", 44 "compatibility-device-util-axt", 45 "ctstestrunner-axt", 46 "cts-wm-util", 47 "modules-utils-build", 48 "testng", 49 "flag-junit", 50 "healthfitness-exported-aconfig-flags-lib", 51 "cts-healthconnect-utils", 52 "cts-healthconnect-lib", 53 "cts-healthconnect-phr-lib", 54 "flag-junit", 55 ], 56 target_sdk_version: "34", 57 min_sdk_version: "34", 58 sdk_version: "module_current", 59 data: [ 60 ":CtsPhrTestHelperApp1", 61 ":CtsPhrTestHelperApp2", 62 ], 63} 64 65java_library { 66 name: "cts-healthconnect-phr-lib", 67 srcs: [ 68 "src/android/healthconnect/cts/phr/utils/*.java", 69 ], 70 static_libs: [ 71 "androidx.appcompat_appcompat", 72 "androidx.test.rules", 73 "platform-test-annotations", 74 "cts-healthconnect-utils", 75 "cts-healthconnect-lib", 76 ], 77 sdk_version: "test_current", 78} 79 80android_test_helper_app { 81 name: "CtsPhrTestHelperApp1", 82 manifest: "CtsPhrTestHelperApp1Manifest.xml", 83 static_libs: [ 84 "cts-healthconnect-lib", 85 "cts-healthconnect-test-helper", 86 ], 87 sdk_version: "test_current", 88 target_sdk_version: "34", 89 min_sdk_version: "34", 90} 91 92android_test_helper_app { 93 name: "CtsPhrTestHelperApp2", 94 manifest: "CtsPhrTestHelperApp2Manifest.xml", 95 static_libs: [ 96 "cts-healthconnect-lib", 97 "cts-healthconnect-test-helper", 98 ], 99 sdk_version: "test_current", 100 target_sdk_version: "34", 101 min_sdk_version: "34", 102} 103