blob: 3e9e19b72da4663ace3c2bba1814cbb3cecb4fa4 [file] [log] [blame]
// Copyright (C) 2024 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_ravenwood_test {
name: "InternalArrayUtilsTest",
srcs: [
"src/com/android/internal/util/ArrayUtilsTest.java",
],
static_libs: [
"androidx.test.rules",
"junit",
"flag-junit",
"modules-utils-arrayutils",
],
sdk_version: "module_current",
test_suites: [
"general-tests",
"mts-configinfrastructure",
],
team: "trendy_team_android_core_experiments",
}
// FlagManager isn't supported on Ravenwood, so there's no ravenwood version for it.
android_test {
name: "FlagManagerUnitTests",
srcs: [
"src/FlagManagerUnitTests.java",
],
static_libs: [
"aconfig_device_paths_java",
"androidx.test.rules",
"aconfig_storage_file_java",
"configinfra_framework_flags_java_lib",
"junit",
"flag-junit",
],
libs: [
"framework-configinfrastructure.impl",
],
sdk_version: "module_current",
test_suites: [
"general-tests",
],
jarjar_rules: ":framework-configinfrastructure-jarjar",
team: "trendy_team_android_core_experiments",
test_config: "AndroidUnitTest.xml",
}
java_defaults {
name: "AconfigPublicApiCtsTests_defaults",
srcs: [
"src/AconfigPublicApiCtsTests.java",
],
static_libs: [
"androidx.test.rules",
"aconfig_storage_file_java",
"configinfra_framework_flags_java_lib",
"junit",
"flag-junit",
"ravenwood-junit",
"aconfig_device_paths_java_util",
],
libs: [
"framework-configinfrastructure.impl",
],
// See below comment regarding sdk_version.
jarjar_rules: ":framework-configinfrastructure-jarjar",
team: "trendy_team_android_core_experiments",
}
android_test {
name: "AconfigPublicApiCtsTests",
defaults: ["AconfigPublicApiCtsTests_defaults"],
test_suites: [
"general-tests",
"cts",
],
test_config: "AndroidCtsTest.xml",
sdk_version: "module_current",
}
android_ravenwood_test {
name: "AconfigPublicApiCtsTestsRavenwood",
defaults: ["AconfigPublicApiCtsTests_defaults"],
auto_gen_config: true,
}
java_defaults {
name: "AconfigPackageTests_default",
srcs: [
"src/AconfigPackageInternalTests.java",
"src/AconfigPackageTests.java",
],
static_libs: [
"aconfig_device_paths_java_util",
"androidx.test.rules",
"aconfig_storage_file_java",
"junit",
"ravenwood-junit",
],
libs: [
"framework-configinfrastructure.impl",
],
jarjar_rules: ":framework-configinfrastructure-jarjar",
team: "trendy_team_android_core_experiments",
// Commented out for AconfigPackageTestsRavenwood, see below comment.
// sdk_version: "module_current",
}
android_test {
name: "AconfigPackageTests",
defaults: ["AconfigPackageTests_default"],
sdk_version: "module_current",
test_suites: [
"general-tests",
],
}
android_ravenwood_test {
name: "AconfigPackageTestsRavenwood",
defaults: ["AconfigPackageTests_default"],
auto_gen_config: true,
// We can't have a sdk_version here, because aconfig_device_paths_java_util's
// sdk_version isn't actually compatible with "module_current".
// AconfigPackageTests is using aconfig_device_paths_java_util but
// that's allowed because of a soong bug: b/413039369
// sdk_version: "module_current",
}