package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_perfetto_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["external_perfetto_license"],
}

cc_test {
    name: "CtsHeapprofdJavaCtsTest",
    team: "trendy_team_perfetto",
    srcs: [
        "heapprofd_java_test_cts.cc",
        ":perfetto_protos_perfetto_config_cpp_gen",
        ":perfetto_protos_perfetto_common_cpp_gen",
    ],
    generated_headers: [
        "perfetto_protos_perfetto_config_cpp_gen_headers",
        "perfetto_protos_perfetto_common_cpp_gen_headers",
    ],
    static_libs: [
        "libgmock",
        "perfetto_cts_deps",
        "perfetto_flags_c_lib",
        "perfetto_trace_protos",
    ],
    whole_static_libs: [
        "perfetto_gtest_logcat_printer",
    ],
    shared_libs: [
        "libandroid",
        "liblog",
    ],
    test_suites: [
        "cts",
        "general-tests",
        "mts-art",
        "mcts-art",
    ],
    compile_multilib: "both",
    multilib: {
        lib32: {
            suffix: "32",
        },
        lib64: {
            suffix: "64",
        },
    },
    per_testcase_directory: true,
    data: [
        ":CtsPerfettoNonProfileableApp",
        ":CtsPerfettoProfileableApp",
        ":CtsPerfettoProducerApp",
        ":CtsPerfettoReleaseApp",
        ":CtsPerfettoDebuggableApp",
        ":perfetto_device_preparer_sh",
    ],
    stl: "libc++_static",
    // This test is also run via Mainline Testing against the ART Mainline
    // Module, which is updatable since Android 12 (API level 31).
    min_sdk_version: "31",
    defaults: [
        "perfetto_defaults",
    ],
}
