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

Commit 4fc11a56 authored by Vania Desmonda's avatar Vania Desmonda
Browse files

Add ScreenRecordRule to DesktopModeBaseTest

Bug: 408170368
Test: presubmits
Flag: EXEMPT test infra
Change-Id: I96c95ceb62edcd6402aebeb0b212229d8c807d8b
parent 930e7b5b
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()