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        "cts-install-lib",
74        "platform-test-annotations",
75        "cts-healthconnect-utils",
76        "cts-healthconnect-lib",
77    ],
78    sdk_version: "test_current",
79}
80
81android_test_helper_app {
82    name: "CtsPhrTestHelperApp1",
83    manifest: "CtsPhrTestHelperApp1Manifest.xml",
84    static_libs: [
85        "cts-healthconnect-lib",
86        "cts-healthconnect-test-helper",
87    ],
88    sdk_version: "test_current",
89    target_sdk_version: "34",
90    min_sdk_version: "34",
91}
92
93android_test_helper_app {
94    name: "CtsPhrTestHelperApp2",
95    manifest: "CtsPhrTestHelperApp2Manifest.xml",
96    static_libs: [
97        "cts-healthconnect-lib",
98        "cts-healthconnect-test-helper",
99    ],
100    sdk_version: "test_current",
101    target_sdk_version: "34",
102    min_sdk_version: "34",
103}
104