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    min_sdk_version: "34",
47    target_sdk_version: "34",
48    sdk_version: "module_current",
49    libs: [
50        "android.test.base.stubs.test",
51        "android.test.mock.stubs.test",
52        "android.test.runner.stubs.test",
53        "framework-healthfitness.stubs.system",
54    ],
55    data: [
56        ":CtsExerciseRouteTestRouteWriterApp",
57        ":CtsExerciseRouteTestRouteReaderWriterApp",
58    ],
59}
60
61android_test_helper_app {
62    name: "CtsExerciseRouteTestRouteWriterApp",
63    manifest: "RouteWriterAppManifest.xml",
64    static_libs: [
65        "cts-healthconnect-lib",
66        "cts-healthconnect-test-helper",
67    ],
68    min_sdk_version: "34",
69    target_sdk_version: "34",
70    sdk_version: "module_current",
71}
72
73android_test_helper_app {
74    name: "CtsExerciseRouteTestRouteReaderWriterApp",
75    manifest: "RouteReaderWriterAppManifest.xml",
76    static_libs: [
77        "cts-healthconnect-lib",
78        "cts-healthconnect-test-helper",
79    ],
80    min_sdk_version: "34",
81    target_sdk_version: "34",
82    sdk_version: "module_current",
83}
84