package { default_team: "trendy_team_fwk_core_networking", default_applicable_licenses: ["Android-Apache-2.0"], } filegroup { name: "dns_async_test_default_map", srcs: ["dns_async_test_default.map"], } cc_defaults { name: "dns_async_defaults", cflags: [ "-fstack-protector-all", "-g", "-Wall", "-Wextra", "-Werror", "-Wnullable-to-nonnull-conversion", "-Wsign-compare", "-Wthread-safety", "-Wunused-parameter", ], srcs: [ "NativeDnsAsyncTest.cpp", ], // This test runs on older platform versions, so many libraries (such as libbase and libc++) // need to be linked statically. The test also needs to be linked with a version script to // ensure that the statically-linked library isn't exported from the executable, where it // would override the shared libraries that the platform itself uses. // See http://b/333438055 for an example of what goes wrong when libc++ is partially exported // from an executable. version_script: ":dns_async_test_default_map", stl: "libc++_static", shared_libs: [ "libandroid", "liblog", "libutils", ], static_libs: [ "libbase", "libnetdutils", ], // To be compatible with R devices, the min_sdk_version must be 30. min_sdk_version: "30", host_required: ["net-tests-utils-host-common"], } cc_test { name: "CtsNativeNetDnsTestCases", defaults: ["dns_async_defaults"], multilib: { lib32: { suffix: "32", }, lib64: { suffix: "64", }, }, test_suites: [ "cts", "general-tests", "mts-dnsresolver", "mts-networking", "mcts-dnsresolver", "mcts-networking", ], }