mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/16019 - Fix intermittent test failure TrackingProtectionPolicyFactoryTest (https://github.com/mozilla-mobile/fenix/pull/16056)
This commit is contained in:
parent
7f82d5e052
commit
5070c12a7b
@ -9,18 +9,25 @@ import org.junit.Assert.assertArrayEquals
|
|||||||
import org.junit.Assert.assertEquals
|
import org.junit.Assert.assertEquals
|
||||||
import org.junit.Assert.assertFalse
|
import org.junit.Assert.assertFalse
|
||||||
import org.junit.Assert.assertTrue
|
import org.junit.Assert.assertTrue
|
||||||
|
import org.junit.Before
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import org.mozilla.fenix.Config
|
import org.mozilla.fenix.Config
|
||||||
import org.mozilla.fenix.FeatureFlags
|
import org.mozilla.fenix.FeatureFlags
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
import org.mozilla.fenix.ReleaseChannel
|
import org.mozilla.fenix.ReleaseChannel
|
||||||
import org.mozilla.fenix.utils.Settings
|
|
||||||
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
|
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
|
||||||
|
import org.mozilla.fenix.utils.Settings
|
||||||
|
|
||||||
@RunWith(FenixRobolectricTestRunner::class)
|
@RunWith(FenixRobolectricTestRunner::class)
|
||||||
class TrackingProtectionPolicyFactoryTest {
|
class TrackingProtectionPolicyFactoryTest {
|
||||||
|
|
||||||
|
@Before
|
||||||
|
fun setup() {
|
||||||
|
mockkObject(Config)
|
||||||
|
every { Config.channel } returns ReleaseChannel.Nightly
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `WHEN useStrictMode is true then SHOULD return strict mode`() {
|
fun `WHEN useStrictMode is true then SHOULD return strict mode`() {
|
||||||
val expected = TrackingProtectionPolicy.strict()
|
val expected = TrackingProtectionPolicy.strict()
|
||||||
|
Loading…
Reference in New Issue
Block a user