// Copyright (C) 2020 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package { default_applicable_licenses: ["Android-Apache-2.0"], } android_test_helper_app { name: "CtsHealthConnectTestApp", defaults: ["cts_defaults"], manifest: "HealthConnectTestHelper/CtsHealthConnectTestApp.xml", platform_apis: true, static_libs: [ "ctstestrunner-axt", "cts-healthconnect-lib", ], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", srcs: [ "HealthConnectTestHelper/src/**/*.java", "HealthConnectTestHelper/src/**/*.kt", ], libs: ["junit"], } android_test_helper_app { name: "CtsHealthConnectTestAppAWithNormalReadWritePermission", manifest: "HealthConnectTestHelper/CtsHealthConnectTestAppAWithNormalReadWritePermission.xml", static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", } android_test_helper_app { name: "CtsHealthConnectTestAppBWithNormalReadWritePermission", manifest: "HealthConnectTestHelper/CtsHealthConnectTestAppBWithNormalReadWritePermission.xml", static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", } android_test_helper_app { name: "CtsHealthConnectTestAppWithDataManagePermission", manifest: "HealthConnectTestHelper/CtsHealthConnectTestAppWithDataManagePermission.xml", static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", } android_test_helper_app { name: "CtsHealthConnectTestAppWithNoPermission", manifest: "HealthConnectTestHelper/CtsHealthConnectTestAppWithNoPermission.xml", static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", } android_test_helper_app { name: "CtsHealthConnectTestAppWithWritePermissionsOnly", manifest: "HealthConnectTestHelper/CtsHealthConnectTestAppWithWritePermissionsOnly.xml", static_libs: ["cts-healthconnect-lib", "cts-healthconnect-test-helper"], sdk_version: "test_current", min_sdk_version: "34", target_sdk_version: "34", } android_test { name: "CtsHealthConnectHostSideDeviceTestCases", team: "trendy_team_android_health", manifest: "device/AndroidManifest.xml", test_config: "device/AndroidTest.xml", defaults: ["cts_defaults"], srcs: [ "device/**/*.java", "device/**/*.kt", ], static_libs: [ "cts-healthconnect-lib", "modules-utils-build_system", "androidx.test.rules", "androidx.test.ext.truth", "compatibility-device-util-axt", "ctstestrunner-axt", "cts-wm-util", "testng", "cts-healthconnect-utils", ], test_suites: [ "cts", "general-tests", "mts-healthfitness", "mcts-healthfitness", ], sdk_version: "test_current", min_sdk_version: "34", libs: [ "android.test.base", "android.test.mock", "android.test.runner", "framework-healthfitness", ], java_resource_dirs: ["res"], data: [ ":CtsHealthConnectTestAppAWithNormalReadWritePermission", ":CtsHealthConnectTestAppBWithNormalReadWritePermission", ":CtsHealthConnectTestAppWithDataManagePermission", ":CtsHealthConnectTestAppWithNoPermission", ":CtsHealthConnectTestAppWithWritePermissionsOnly", ], } java_test_host { name: "CtsHealthConnectHostTestCases", team: "trendy_team_android_health", defaults: ["cts_defaults"], srcs: [ "host/**/*.java", "host/**/*.kt", ], test_suites: [ "cts", "general-tests", "mts-healthfitness", "mcts-healthfitness", ], libs: [ "compatibility-host-util", "cts-tradefed", "tradefed", "truth", ], static_libs: [ "cts-statsd-atom-host-test-utils", "androidx.annotation_annotation", ], java_resource_dirs: ["host/res"], data: [ ":CtsHealthConnectTestApp", ], }