//########################################################################
// Build MediaProjectionTests package
//########################################################################

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

android_test {
    name: "MediaProjectionTests",

    srcs: ["**/*.java"],
    libs: [
        "android.test.base.stubs.system",
        "android.test.mock.stubs.system",
        "android.test.runner.stubs.system",
    ],

    static_libs: [
        "androidx.test.runner",
        "androidx.test.rules",
        "androidx.test.ext.junit",
        "flag-junit",
        "frameworks-base-testutils",
        "mockito-target-extended-minus-junit4",
        "platform-test-annotations",
        "cts-mediaprojection-common",
        "testng",
        "testables",
        "truth",
        "platform-compat-test-rules",
    ],

    // Needed for mockito-target-extended-minus-junit4
    jni_libs: [
        "libdexmakerjvmtiagent",
        "libstaticjvmtiagent",
    ],

    data: [
        ":CtsMediaProjectionTestCasesHelperApp",
    ],

    test_suites: ["general-tests"],

    platform_apis: true,

    certificate: "platform",
}
