This adds the moved tests to CTS as well. The moved unit tests are appropriate for CTS as they test data holder classes that need to function properly for apps to work. Test: atest FrameworksNetTests Test: atest CtsNetTestCases: added tests pass Bug: 129199900 Change-Id: I895d2b57da658d5bed28ebe128611d5d15835742 Merged-In: I9f708a252ab606b782f5f828dce8c1690c3703bf Merged-In: I895d2b57da658d5bed28ebe128611d5d15835742 (cherry picked from commit cc21fbd483138771dae04f4d86ab411e2e88e575)
72 lines
1.8 KiB
Plaintext
72 lines
1.8 KiB
Plaintext
//########################################################################
|
|
// Build FrameworksNetTests package
|
|
//########################################################################
|
|
java_defaults {
|
|
name: "FrameworksNetTests-jni-defaults",
|
|
static_libs: [
|
|
"FrameworksNetCommonTests",
|
|
"frameworks-base-testutils",
|
|
"frameworks-net-testutils",
|
|
"framework-protos",
|
|
"androidx.test.rules",
|
|
"mockito-target-minus-junit4",
|
|
"platform-test-annotations",
|
|
"services.core",
|
|
"services.net",
|
|
],
|
|
libs: [
|
|
"android.test.runner",
|
|
"android.test.base",
|
|
"android.test.mock",
|
|
],
|
|
jni_libs: [
|
|
"ld-android",
|
|
"libartbase",
|
|
"libbacktrace",
|
|
"libbase",
|
|
"libbinder",
|
|
"libbinderthreadstate",
|
|
"libbpf",
|
|
"libbpf_android",
|
|
"libc++",
|
|
"libcgrouprc",
|
|
"libcrypto",
|
|
"libcutils",
|
|
"libdexfile",
|
|
"libdl_android",
|
|
"libhidl-gen-utils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libhwbinder",
|
|
"libjsoncpp",
|
|
"liblog",
|
|
"liblzma",
|
|
"libnativehelper",
|
|
"libnetdbpf",
|
|
"libnetdutils",
|
|
"libpackagelistparser",
|
|
"libpcre2",
|
|
"libprocessgroup",
|
|
"libselinux",
|
|
"libui",
|
|
"libutils",
|
|
"libvndksupport",
|
|
"libtinyxml2",
|
|
"libunwindstack",
|
|
"libutilscallstack",
|
|
"libziparchive",
|
|
"libz",
|
|
"netd_aidl_interface-cpp",
|
|
"libnetworkstatsfactorytestjni",
|
|
],
|
|
}
|
|
|
|
android_test {
|
|
name: "FrameworksNetTests",
|
|
defaults: ["FrameworksNetTests-jni-defaults"],
|
|
srcs: ["java/**/*.java", "java/**/*.kt"],
|
|
platform_apis: true,
|
|
test_suites: ["device-tests"],
|
|
certificate: "platform",
|
|
}
|