For #16019 - Fix intermittent test failure TrackingProtectionPolicyFactoryTest (#16056)

This commit is contained in:
Arturo Mejia 2020-10-21 10:25:25 -04:00 committed by GitHub
parent 1a10215caf
commit dbe6dbb18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -9,18 +9,25 @@ import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mozilla.fenix.Config
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.R
import org.mozilla.fenix.ReleaseChannel
import org.mozilla.fenix.utils.Settings
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
import org.mozilla.fenix.utils.Settings
@RunWith(FenixRobolectricTestRunner::class)
class TrackingProtectionPolicyFactoryTest {
@Before
fun setup() {
mockkObject(Config)
every { Config.channel } returns ReleaseChannel.Nightly
}
@Test
fun `WHEN useStrictMode is true then SHOULD return strict mode`() {
val expected = TrackingProtectionPolicy.strict()