2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/9605: TestApplication -> FenixRobolectricTestApplication.

This disambiguates it from the FirefoxTestApplication used in on-device
tests.
This commit is contained in:
Michael Comella 2020-04-01 14:07:26 -07:00 committed by Michael Comella
parent dff3a69dc3
commit 5d2c577c64
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,10 @@ package org.mozilla.fenix.helpers
import org.mozilla.fenix.FenixApplication
import org.mozilla.fenix.components.TestComponents
class TestApplication : FenixApplication() {
/**
* An override of our application for use in Robolectric-based unit tests.
*/
class FenixRobolectricTestApplication : FenixApplication() {
override val components = TestComponents(this)

View File

@ -25,7 +25,7 @@ class FenixRobolectricTestRunner(testClass: Class<*>) : RobolectricTestRunner(te
override fun buildGlobalConfig(): Config {
return Config.Builder()
.setApplication(TestApplication::class.java)
.setApplication(FenixRobolectricTestApplication::class.java)
.build()
}
}