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

Commit d35065f5 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Add test config for FlickerServiceTests

Bug: 289349543
Test: atest FlickerServiceTests
Change-Id: I1848ee30bfd8b13193a13e7fac0cd5f523888f6b
parent 56910a59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ android_test {
android_test {
    name: "WMShellFlickerServiceTests",
    defaults: ["WMShellFlickerTestsDefault"],
    additional_manifests: ["manifests/AndroidManifestSplitScreen.xml"],
    additional_manifests: ["manifests/AndroidManifestService.xml"],
    package_name: "com.android.wm.shell.flicker.service",
    instrumentation_target_package: "com.android.wm.shell.flicker.service",
    srcs: [
+24 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2023 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"
    package="com.android.wm.shell.flicker.service">

    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.wm.shell.flicker.service"
                     android:label="WindowManager Flicker Service Tests">
    </instrumentation>
</manifest>
+20 −0
Original line number Diff line number Diff line
@@ -67,6 +67,13 @@ filegroup {
    srcs: ["src/**/rotation/*.kt"],
}

filegroup {
    name: "FlickerServiceTests-src",
    srcs: [
        "src/com/android/server/wm/flicker/service/**/*.kt",
    ],
}

java_defaults {
    name: "FlickerTestsDefault",
    manifest: "manifests/AndroidManifest.xml",
@@ -109,6 +116,7 @@ android_test {
        ":FlickerTestsQuickswitch-src",
        ":FlickerTestsRotation-src",
        ":FlickerTestsNotification-src",
        ":FlickerServiceTests-src",
    ],
}

@@ -190,6 +198,18 @@ android_test {
    ],
}

android_test {
    name: "FlickerServiceTests",
    defaults: ["FlickerTestsDefault"],
    additional_manifests: ["manifests/AndroidManifestService.xml"],
    package_name: "com.android.server.wm.flicker.service",
    instrumentation_target_package: "com.android.server.wm.flicker.service",
    srcs: [
        ":FlickerTestsBase-src",
        ":FlickerServiceTests-src",
    ],
}

java_library {
    name: "wm-flicker-common-assertions",
    platform_apis: true,
+24 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2023 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"
    package="com.android.server.wm.flicker.service">

    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.server.wm.flicker.service"
                     android:label="WindowManager Flicker Service Tests">
    </instrumentation>
</manifest>