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

Commit 3b2f5071 authored by Vania Desmonda's avatar Vania Desmonda Committed by Android (Google) Code Review
Browse files

Merge "Add ScreenRecordRule to DesktopModeBaseTest" into main

parents 69cf329c 4fc11a56
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.wm.shell.flicker

import android.platform.test.rule.ScreenRecordRule
import android.tools.flicker.legacy.LegacyFlickerTest
import android.tools.flicker.rules.ChangeDisplayOrientationRule

@@ -36,10 +37,14 @@ import com.android.server.wm.flicker.taskBarWindowIsAlwaysVisible
 *
 * This will ensure that all the appropriate methods are called before running the tests.
 */
@ScreenRecordRule.ScreenRecord
abstract class DesktopModeBaseTest(flicker: LegacyFlickerTest) : BaseBenchmarkTest(flicker) {
    @get:Rule
    val testName = TestName()

    @get:Rule
    val screenRecordRule = ScreenRecordRule(keepTestLevelRecordingOnSuccess = false)

    // Override this set with the test method names that you want to exclude from the test
    open val excludedTests: Set<String> = emptySet()