2019-05-07 23:36:37 +02:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2019-07-12 20:38:15 +02:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2019-05-07 23:36:37 +02:00
|
|
|
|
|
|
|
package org.mozilla.fenix.components
|
|
|
|
|
|
|
|
import android.content.Context
|
|
|
|
import io.mockk.mockk
|
|
|
|
import mozilla.components.browser.engine.gecko.GeckoEngine
|
|
|
|
import mozilla.components.browser.session.SessionManager
|
2019-09-26 21:50:50 +02:00
|
|
|
import mozilla.components.browser.state.store.BrowserStore
|
2020-02-11 06:21:10 +01:00
|
|
|
import mozilla.components.concept.fetch.Client
|
2019-11-07 22:44:58 +01:00
|
|
|
import mozilla.components.feature.pwa.WebAppShortcutManager
|
2019-05-07 23:36:37 +02:00
|
|
|
|
2019-10-07 07:20:00 +02:00
|
|
|
class TestCore(context: Context) : Core(context) {
|
2019-05-07 23:36:37 +02:00
|
|
|
|
|
|
|
override val engine = mockk<GeckoEngine>(relaxed = true)
|
|
|
|
override val sessionManager = SessionManager(engine)
|
2019-09-26 21:50:50 +02:00
|
|
|
override val store = mockk<BrowserStore>()
|
2020-02-11 06:21:10 +01:00
|
|
|
override val client = mockk<Client>()
|
2019-11-07 22:44:58 +01:00
|
|
|
override val webAppShortcutManager = mockk<WebAppShortcutManager>()
|
2019-05-07 23:36:37 +02:00
|
|
|
}
|