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

Commit 618b77e9 authored by Devarshi Bhatt's avatar Devarshi Bhatt Committed by Android (Google) Code Review
Browse files

Merge "Add functional tests for desktop mode scenario tests." into main

parents f1dfbcfb 7b22db98
Loading
Loading
Loading
Loading
+34 −0
Original line number Original line 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.
 */

package com.android.wm.shell.flicker.service.desktopmode.functional

import android.platform.test.annotations.Postsubmit
import com.android.wm.shell.flicker.service.desktopmode.scenarios.CloseAllAppsWithAppHeaderExit
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner

/** Functional test for [CloseAllAppsWithAppHeaderExit]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
open class CloseAllAppsWithAppHeaderExitTest : CloseAllAppsWithAppHeaderExit() {

    @Test
    override fun closeAllAppsInDesktop() {
        super.closeAllAppsInDesktop()
    }
}
+34 −0
Original line number Original line 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.
 */

package com.android.wm.shell.flicker.service.desktopmode.functional

import android.platform.test.annotations.Postsubmit
import com.android.wm.shell.flicker.service.desktopmode.scenarios.DragAppWindowMultiWindow
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner

/** Functional test for [DragAppWindowMultiWindow]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
open class DragAppWindowMultiWindowTest : DragAppWindowMultiWindow()
{
    @Test
    override fun dragAppWindow() {
        super.dragAppWindow()
    }
}
+34 −0
Original line number Original line 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.
 */

package com.android.wm.shell.flicker.service.desktopmode.functional

import android.platform.test.annotations.Postsubmit
import com.android.wm.shell.flicker.service.desktopmode.scenarios.DragAppWindowSingleWindow
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner

/** Functional test for [DragAppWindowSingleWindow]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
open class DragAppWindowSingleWindowTest : DragAppWindowSingleWindow()
{
    @Test
    override fun dragAppWindow() {
        super.dragAppWindow()
    }
}
+33 −0
Original line number Original line 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.
 */

package com.android.wm.shell.flicker.service.desktopmode.functional

import android.platform.test.annotations.Postsubmit
import com.android.wm.shell.flicker.service.desktopmode.scenarios.EnterDesktopWithAppHandleMenu
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner

/** Functional test for [EnterDesktopWithAppHandleMenu]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
open class EnterDesktopWithAppHandleMenuTest : EnterDesktopWithAppHandleMenu() {
    @Test
    override fun enterDesktopWithAppHandleMenu() {
        super.enterDesktopWithAppHandleMenu()
    }
}
+35 −0
Original line number Original line 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.
 */

package com.android.wm.shell.flicker.service.desktopmode.functional

import android.platform.test.annotations.Postsubmit
import android.tools.Rotation
import com.android.wm.shell.flicker.service.desktopmode.scenarios.EnterDesktopWithDrag
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner

/** Functional test for [EnterDesktopWithDrag]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Postsubmit
open class EnterDesktopWithDragTest : EnterDesktopWithDrag(Rotation.ROTATION_0) {

    @Test
    override fun enterDesktopWithDrag() {
        super.enterDesktopWithDrag()
    }
}
Loading