Merge "Fold [GoldenImagePathManager] into [GoldenPathManager] #cleanup" into main

This commit is contained in:
Mike Schneider
2024-03-12 17:42:03 +00:00
committed by Android (Google) Code Review

View File

@@ -50,7 +50,7 @@ import kotlinx.coroutines.flow.update
import platform.test.screenshot.DeviceEmulationSpec import platform.test.screenshot.DeviceEmulationSpec
import platform.test.screenshot.DisplaySpec import platform.test.screenshot.DisplaySpec
import platform.test.screenshot.FragmentScreenshotTestRule import platform.test.screenshot.FragmentScreenshotTestRule
import platform.test.screenshot.GoldenImagePathManager import platform.test.screenshot.GoldenPathManager
import platform.test.screenshot.matchers.PixelPerfectMatcher import platform.test.screenshot.matchers.PixelPerfectMatcher
class Injector(step: FingerprintNavigationStep.UiStep) { class Injector(step: FingerprintNavigationStep.UiStep) {
@@ -154,7 +154,7 @@ class Injector(step: FingerprintNavigationStep.UiStep) {
fun BiometricFragmentScreenShotRule() = fun BiometricFragmentScreenShotRule() =
FragmentScreenshotTestRule( FragmentScreenshotTestRule(
DeviceEmulationSpec.forDisplays(Phone).first(), DeviceEmulationSpec.forDisplays(Phone).first(),
GoldenImagePathManager( GoldenPathManager(
InstrumentationRegistry.getInstrumentation().context, InstrumentationRegistry.getInstrumentation().context,
InstrumentationRegistry.getInstrumentation().targetContext.filesDir.absolutePath + InstrumentationRegistry.getInstrumentation().targetContext.filesDir.absolutePath +
screenshotPath, screenshotPath,