Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58d855dd authored by Helen Qin's avatar Helen Qin Committed by Android (Google) Code Review
Browse files

Merge "CredentialManager screenshot test setup" into main

parents 3b20b67e 68e23a07
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
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 ScreenshotTestStub
    static_libs: [
        "androidx.compose.runtime_runtime",
        "androidx.test.uiautomator_uiautomator",
        "androidx.test.ext.junit",
        "inline-mockito-robolectric-prebuilt",
        "platform-parametric-runner-lib",
        "uiautomator-helpers",
    ],
    libs: [
        "android.test.runner",
        "android.test.base",
        "android.test.mock",
        "truth",
    ],
    upstream: true,
    java_resource_dirs: ["config"],
    instrumentation_for: "CredentialManagerRobo",
}
+16 −0
Original line number Diff line number Diff line
# Copyright (C) 2024 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
sdk=NEWEST_SDK
graphicsMode=NATIVE
Loading