@@ -77,7 +77,7 @@ class SenseOfProtectionExperimentImplTest {
77
77
@Test
78
78
fun `when user is new and enrolUserInNewExperimentIfEligible then user is in enrolled` () {
79
79
fakeUserBrowserProperties.setDaysSinceInstalled(28 )
80
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
80
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
81
81
State (
82
82
remoteEnableState = true ,
83
83
enable = true ,
@@ -94,7 +94,7 @@ class SenseOfProtectionExperimentImplTest {
94
94
@Test
95
95
fun `when user is new and experiment is enabled but for different cohort then isEnabled returns false` () {
96
96
fakeUserBrowserProperties.setDaysSinceInstalled(20 )
97
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
97
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
98
98
State (
99
99
remoteEnableState = true ,
100
100
enable = true ,
@@ -109,7 +109,7 @@ class SenseOfProtectionExperimentImplTest {
109
109
@Test
110
110
fun `when user is new and experiment is disabled then isEnabled returns false` () {
111
111
fakeUserBrowserProperties.setDaysSinceInstalled(10 )
112
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
112
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
113
113
State (
114
114
remoteEnableState = false ,
115
115
enable = false ,
@@ -123,7 +123,7 @@ class SenseOfProtectionExperimentImplTest {
123
123
124
124
@Test
125
125
fun `when user is enrolled in new user experiment then getTabManagerPixelParams returns new user experiment params` () {
126
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
126
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
127
127
State (
128
128
remoteEnableState = true ,
129
129
enable = true ,
@@ -135,12 +135,12 @@ class SenseOfProtectionExperimentImplTest {
135
135
val params = testee.getTabManagerPixelParams()
136
136
137
137
assertEquals(VARIANT_1 .cohortName, params[" cohort" ])
138
- assertEquals(fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().featureName().name, params[" experiment" ])
138
+ assertEquals(fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().featureName().name, params[" experiment" ])
139
139
}
140
140
141
141
@Test
142
142
fun `when user is enrolled in new user experiment but experiment is disabled then getTabManagerPixelParams returns empty map` () {
143
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
143
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
144
144
State (
145
145
remoteEnableState = false ,
146
146
enable = false ,
@@ -156,7 +156,7 @@ class SenseOfProtectionExperimentImplTest {
156
156
157
157
@Test
158
158
fun `when user is enrolled in existing user experiment then getTabManagerPixelParams returns existing user experiment params` () {
159
- fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentApr25 ().setRawStoredState(
159
+ fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentMay25 ().setRawStoredState(
160
160
State (
161
161
remoteEnableState = true ,
162
162
enable = true ,
@@ -168,12 +168,12 @@ class SenseOfProtectionExperimentImplTest {
168
168
val params = testee.getTabManagerPixelParams()
169
169
170
170
assertEquals(VARIANT_2 .cohortName, params[" cohort" ])
171
- assertEquals(fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentApr25 ().featureName().name, params[" experiment" ])
171
+ assertEquals(fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentMay25 ().featureName().name, params[" experiment" ])
172
172
}
173
173
174
174
@Test
175
175
fun `when user is enrolled in existing user experiment but experiment is disabled then getTabManagerPixelParams returns empty map` () {
176
- fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentApr25 ().setRawStoredState(
176
+ fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentMay25 ().setRawStoredState(
177
177
State (
178
178
remoteEnableState = false ,
179
179
enable = false ,
@@ -190,15 +190,15 @@ class SenseOfProtectionExperimentImplTest {
190
190
@Test
191
191
fun `when user is not enrolled in any experiment then getTabManagerPixelParams returns empty map` () {
192
192
fakeUserBrowserProperties.setDaysSinceInstalled(30 )
193
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
193
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
194
194
State (
195
195
remoteEnableState = false ,
196
196
enable = false ,
197
197
assignedCohort = null ,
198
198
cohorts = emptyList(),
199
199
),
200
200
)
201
- fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentApr25 ().setRawStoredState(
201
+ fakeSenseOfProtectionToggles.senseOfProtectionExistingUserExperimentMay25 ().setRawStoredState(
202
202
State (
203
203
remoteEnableState = false ,
204
204
enable = false ,
@@ -214,7 +214,7 @@ class SenseOfProtectionExperimentImplTest {
214
214
215
215
@Test
216
216
fun `when user is enrolled in modified control variant then we can detect it` () {
217
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
217
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
218
218
State (
219
219
remoteEnableState = true ,
220
220
enable = true ,
@@ -232,7 +232,7 @@ class SenseOfProtectionExperimentImplTest {
232
232
233
233
@Test
234
234
fun `when user is enrolled in variant 1 then other variants are not enabled` () {
235
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
235
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
236
236
State (
237
237
remoteEnableState = true ,
238
238
enable = true ,
@@ -250,7 +250,7 @@ class SenseOfProtectionExperimentImplTest {
250
250
251
251
@Test
252
252
fun `when user is enrolled in variant 2 then other variants are not enabled` () {
253
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
253
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
254
254
State (
255
255
remoteEnableState = true ,
256
256
enable = true ,
@@ -269,7 +269,7 @@ class SenseOfProtectionExperimentImplTest {
269
269
@Test
270
270
fun `when user is enrolled in modified control then legacy privacy shield is shown` () {
271
271
fakeUserBrowserProperties.setDaysSinceInstalled(20 )
272
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
272
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
273
273
State (
274
274
remoteEnableState = true ,
275
275
enable = true ,
@@ -284,7 +284,7 @@ class SenseOfProtectionExperimentImplTest {
284
284
@Test
285
285
fun `when user is not enrolled in any variant` () {
286
286
fakeUserBrowserProperties.setDaysSinceInstalled(20 )
287
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
287
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
288
288
State (
289
289
remoteEnableState = true ,
290
290
enable = true ,
@@ -298,7 +298,7 @@ class SenseOfProtectionExperimentImplTest {
298
298
@Test
299
299
fun `when user is enrolled in variant 1 then new privacy shield is shown` () {
300
300
fakeUserBrowserProperties.setDaysSinceInstalled(20 )
301
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
301
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
302
302
State (
303
303
remoteEnableState = true ,
304
304
enable = true ,
@@ -313,7 +313,7 @@ class SenseOfProtectionExperimentImplTest {
313
313
@Test
314
314
fun `when user is enrolled in variant 2 then new privacy shield is shown` () {
315
315
fakeUserBrowserProperties.setDaysSinceInstalled(20 )
316
- fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25 ().setRawStoredState(
316
+ fakeSenseOfProtectionToggles.senseOfProtectionNewUserExperimentMay25 ().setRawStoredState(
317
317
State (
318
318
remoteEnableState = true ,
319
319
enable = true ,
0 commit comments