Skip to content

Commit

Permalink
For mozilla-mobile#3869 - Fixes unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boek committed Feb 11, 2020
1 parent 3ade102 commit 3b80fa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/test/java/org/mozilla/fenix/components/TestCore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import io.mockk.mockk
import mozilla.components.browser.engine.gecko.GeckoEngine
import mozilla.components.browser.session.SessionManager
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.fetch.Client
import mozilla.components.feature.pwa.WebAppShortcutManager
import mozilla.components.lib.dataprotect.SecureAbove22Preferences

Expand All @@ -17,6 +18,7 @@ class TestCore(context: Context) : Core(context) {
override val engine = mockk<GeckoEngine>(relaxed = true)
override val sessionManager = SessionManager(engine)
override val store = mockk<BrowserStore>()
override val client = mockk<Client>()
override val webAppShortcutManager = mockk<WebAppShortcutManager>()
override fun getSecureAbove22Preferences() = mockk<SecureAbove22Preferences>(relaxed = true)
}

0 comments on commit 3b80fa1

Please sign in to comment.