package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

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",
    ],
    shared_libs: [
        "libandroid",
        "liblog",
        "libutils",
    ],
    // To be compatible with Q devices, the min_sdk_version must be 29.
    min_sdk_version: "29",
}

cc_test {
    name: "CtsNativeNetDnsTestCases",
    defaults: ["dns_async_defaults"],
    multilib: {
        lib32: {
            suffix: "32",
        },
        lib64: {
            suffix: "64",
        },
    },
    test_suites: [
        "cts",
        "general-tests",
        "mts-dnsresolver",
        "mts-networking",
    ],
}
