summaryrefslogtreecommitdiff
path: root/packages/CredentialManager/tests/robotests/Android.bp
blob: 01f403d3719dcc37023808f5929e51cf33ce2652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package {
    // 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_app {
    name: "CredentialManagerRobo",
    srcs: [],
    static_libs: [
        "SystemUI-core",
        "CredentialManager-handheld",
        "ScreenshotComposeUtilsLib",
        "androidx.test.espresso.core",
        "androidx.compose.material3_material3",
        "platform-screenshot-diff-core",
    ],
    manifest: "robo-manifest.xml",
    dont_merge_manifests: true,
    platform_apis: true,
    system_ext_specific: true,
    certificate: "platform",
    privileged: true,
    kotlincflags: ["-Xjvm-default=all"],
    asset_dirs: ["customization/assets"],
    resource_dirs: ["screenshot/customization/res"],
    use_resource_processor: true,
}

// This is a RNG (Robolectric native graphics) test target.
android_robolectric_test {
    name: "CredentialManagerScreenshotTest",
    srcs: [
        ":CredentialManagerScreenshotTestFiles",
    ],

    // Do not add any libraries here, instead add them to the ScreenshotTestRobo
    static_libs: [
        "androidx.compose.runtime_runtime",
        "androidx.test.uiautomator_uiautomator",
        "androidx.test.ext.junit",
        "inline-mockito-robolectric-prebuilt",
        "platform-parametric-runner-lib",
        "uiautomator-helpers",
        "flag-junit-base",
    ],
    libs: [
        "android.test.runner.stubs.system",
        "android.test.base.stubs.system",
        "android.test.mock.stubs.system",
        "truth",
    ],
    java_resource_dirs: ["config"],
    instrumentation_for: "CredentialManagerRobo",
}