1// Copyright (C) 2023 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: "CtsExerciseRouteTestCases",
21    team: "trendy_team_android_health",
22    manifest: "AndroidManifest.xml",
23    test_config: "AndroidTest.xml",
24    defaults: ["cts_defaults"],
25    srcs: [
26        "src/**/*.java",
27        "src/**/*.kt"
28        ],
29    static_libs: [
30        "cts-healthconnect-lib",
31        "modules-utils-build_system",
32        "androidx.test.rules",
33        "androidx.test.ext.truth",
34        "compatibility-device-util-axt",
35        "ctstestrunner-axt",
36        "cts-wm-util",
37        "testng",
38        "cts-healthconnect-utils",
39    ],
40    test_suites: [
41        "cts",
42        "general-tests",
43        "mts-healthfitness",
44        "mcts-healthfitness",
45    ],
46    sdk_version: "test_current",
47    min_sdk_version: "34",
48    libs: [
49        "android.test.base",
50        "android.test.mock",
51        "android.test.runner",
52        "framework-healthfitness",
53    ],
54    data : [
55          ":CtsExerciseRouteTestRouteWriterApp",
56          ":CtsExerciseRouteTestRouteReaderWriterApp",
57    ]
58}
59
60android_test_helper_app {
61    name: "CtsExerciseRouteTestRouteWriterApp",
62    manifest: "RouteWriterAppManifest.xml",
63    static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"],
64    sdk_version: "test_current",
65    min_sdk_version: "34",
66}
67
68android_test_helper_app {
69    name: "CtsExerciseRouteTestRouteReaderWriterApp",
70    manifest: "RouteReaderWriterAppManifest.xml",
71    static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"],
72    sdk_version: "test_current",
73    min_sdk_version: "34",
74}
75