Fold [GoldenImagePathManager] into [GoldenPathManager] #cleanup

These are required changes sto be submitted together with ag/26486827.

Bug: 322324387
Test: Test-only change, covered by existing unit tests
Change-Id: I5287c8ed485ff818f5714759663b64f157951897
This commit is contained in:
Mike Schneider
2024-03-08 11:06:01 +01:00
parent 4b0090700a
commit b7c80a5491

View File

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