blob: 805fc04735339dba88518e627842eab2dd475a73 [file] [log] [blame]
// Copyright (C) 2022 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"],
}
java_library {
name: "SafetyCenterTests",
srcs: [
"src/**/safetycenter/*.kt"
],
sdk_version: "system_current",
min_sdk_version: "34",
static_libs: [
"kotlin-stdlib",
"hilt_android",
"androidx.test.core",
"androidx.test.rules",
"androidx.test.espresso.contrib",
"androidx.test.ext.junit",
"androidx.test.ext.truth",
"androidx.test.rules",
"HealthConnectLibrary",
"hilt_android_testing",
"mockito-target-minus-junit4",
],
libs: [
"android.test.mock.stubs",
"android.test.mock",
]
}
android_test {
name: "HealthConnectControllerUITests",
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
exclude_srcs: [
"src/**/safetycenter/*.kt"
],
defaults: ["modules-utils-testable-device-config-defaults"],
sdk_version: "module_current",
min_sdk_version: "34",
static_libs: [
"SafetyCenterTests",
"androidx.test.core",
"androidx.test.rules",
"HealthConnectPermissionsApis",
"HealthConnectMigrationApis",
"HealthConnectLibrary",
"SettingsLibSettingsTheme",
"kotlin-stdlib",
"kotlinx-coroutines-android",
"androidx.navigation_navigation-common-ktx",
"androidx.navigation_navigation-fragment-ktx",
"androidx.navigation_navigation-runtime-ktx",
"androidx.navigation_navigation-ui-ktx",
"SettingsLibCollapsingToolbarBaseActivity",
"SettingsLibHelpUtils",
"SettingsLibTopIntroPreference",
"SettingsLibFooterPreference",
"androidx.annotation_annotation",
"hilt_android_testing",
"kotlinx_coroutines_test",
// test dependencies
"androidx.test.espresso.contrib",
"androidx.test.ext.junit",
"androidx.test.ext.truth",
"androidx.test.rules",
],
resource_dirs: ["main_res"],
libs: [
"kotlin-annotations",
"android.test.base",
"android.test.mock.stubs",
"framework-healthfitness.impl",
],
kotlincflags: ["-Xjvm-default=all"],
test_suites: [
"general-tests",
"mts-healthfitness",
],
test_mainline_modules: ["com.google.android.healthfitness.apex"],
data: [
":HealthConnectUITestApp",
":HealthConnectUITestApp2",
":UnsupportedTestApp",
],
}