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

Commit 3fe29ca3 authored by Matt Casey's avatar Matt Casey
Browse files

Use mock context for ActionIntentExecutorTest

We don't actually want to start an intent.

Bug: 411311893
Fix: 411311893
Test: atest SystemUITests:com.android.systemui.screenshot.ActionIntentExecutorTest#launchIntent_callsCloseSystemWindows
Flag: EXEMPT test only
Change-Id: Ib6bcd6aae9cf9d00bc141ee914dde9b95ce2691f
parent 3a4293c0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@

package com.android.systemui.screenshot

import android.content.Context
import android.content.Intent
import android.os.Process.myUserHandle
import android.platform.test.annotations.EnableFlags
import android.testing.TestableContext
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.android.systemui.Flags
import com.android.systemui.SysuiTestCase
@@ -42,7 +42,7 @@ class ActionIntentExecutorTest : SysuiTestCase() {
    private val scheduler = TestCoroutineScheduler()
    private val mainDispatcher = StandardTestDispatcher(scheduler)
    private val testScope = TestScope(mainDispatcher)
    private val testableContext = TestableContext(mContext)
    private val testableContext = mock<Context>()

    private val activityManagerWrapper = mock<ActivityManagerWrapper>()
    private val screenshotProxy = mock<ScreenshotProxy>()