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

Commit 0252af2e authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Introduce InputMethodCoreTests" into main

parents d6207313 471798bd
Loading
Loading
Loading
Loading
+66 −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_test {
    name: "InputMethodCoreTests",

    srcs: [
        "src/**/*.java",
        "src/**/*.kt",
        "src/**/I*.aidl",
    ],

    dxflags: ["--core-library"],

    static_libs: [
        "collector-device-lib-platform",
        "android-common",
        "frameworks-core-util-lib",
        "androidx.core_core",
        "androidx.core_core-ktx",
        "androidx.test.ext.junit",
        "androidx.test.runner",
        "androidx.test.rules",
        "flag-junit",
        "junit-params",
        "kotlin-test",
        "mockito-target-minus-junit4",
        "platform-test-annotations",
        "platform-compat-test-rules",
        "truth",
        "print-test-util-lib",
        "testng",
        "device-time-shell-utils",
        "testables",
        "flag-junit",
    ],

    libs: [
        "android.test.runner",
        "android.test.base",
        "android.test.mock",
        "framework",
        "ext",
        "framework-res",
    ],

    sdk_version: "core_platform",
    test_suites: [
        "device-tests",
        "automotive-tests",
    ],

    certificate: "platform",

    resource_dirs: ["res"],

    data: [
        ":com.android.cts.helpers.aosp",
    ],
}
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- 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.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          android:installLocation="internalOnly"
          package="com.android.frameworks.inputmethodcoretests"
          android:sharedUserId="com.android.uid.test">

    <application
        android:supportsRtl="true"
        android:enableOnBackInvokedCallback="true">
        <uses-library android:name="android.test.runner" />
    </application>

    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
            android:targetPackage="com.android.frameworks.inputmethodcoretests"
            android:label="InputMethod Core Tests" />
</manifest>
+38 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- 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.
-->
<configuration description="Runs InputMethod Core Tests.">
    <option name="test-suite-tag" value="apct" />
    <option name="test-suite-tag" value="apct-instrumentation" />

    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
        <option name="cleanup-apks" value="true" />
        <option name="test-file-name" value="InputMethodCoreTests.apk" />
    </target_preparer>

    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
        <!-- TODO(b/254155965): Design a mechanism to finally remove this command. -->
        <option name="run-command" value="settings put global device_config_sync_disabled 0" />
    </target_preparer>

    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.DeviceInteractionHelperInstaller" />

    <option name="test-tag" value="InputMethodCoreTests" />
    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.frameworks.inputmethodcoretests" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="hidden-api-checks" value="false"/>
    </test>
</configuration>
+1 −0
Original line number Diff line number Diff line
include /core/java/android/view/inputmethod/OWNERS
Loading