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

Commit a1461725 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

Studio: Add explicit types to test files after Kotlin2 upgrade

Fixes: 383388853
Change-Id: I9a6efaa866ac8ff403889000f46be7eed2772bef
Flag: EXEMPT studio fix
Test: Run these tests in studio
parent 4acfb8f3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ class DeviceControlsTileTest(flags: FlagsParameterization) : SysuiTestCase() {
            if (featureEnabled) {
                Optional.of(controlsController)
            } else {
                Optional.empty()
                Optional.empty<ControlsController>()
            }
        }

@@ -149,7 +149,7 @@ class DeviceControlsTileTest(flags: FlagsParameterization) : SysuiTestCase() {
            if (featureEnabled) {
                Optional.of(controlsListingController)
            } else {
                Optional.empty()
                Optional.empty<ControlsController>()
            }
        }

@@ -157,7 +157,7 @@ class DeviceControlsTileTest(flags: FlagsParameterization) : SysuiTestCase() {
            if (featureEnabled) {
                Optional.of(controlsUiController)
            } else {
                Optional.empty()
                Optional.empty<ControlsController>()
            }
        }

+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ class MediaProjectionChipInteractorTest : SysuiTestCase() {
                        if (
                            (it.arguments[0] as Intent).`package` == CAST_TO_OTHER_DEVICES_PACKAGE
                        ) {
                            emptyList()
                            emptyList<ResolveInfo>()
                        } else {
                            listOf(mock<ResolveInfo>())
                        }
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class CastDeviceTest : SysuiTestCase() {
            doAnswer {
                    // See Utils.isHeadlessRemoteDisplayProvider
                    if ((it.arguments[0] as Intent).`package` == HEADLESS_REMOTE_PACKAGE) {
                        emptyList()
                        emptyList<ResolveInfo>()
                    } else {
                        listOf(mock<ResolveInfo>())
                    }