Skip to content

Commit 43b0342

Browse files
committed
Rebase to firebase-sessions branch.
1 parent d8887a4 commit 43b0342

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/SettingsCacheTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SettingsCacheTest {
3939

4040
@Test
4141
fun sessionCache_returnsEmptyCache() {
42-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
42+
val context = FakeFirebaseApp().firebaseApp.applicationContext
4343
val settingsCache = SettingsCache(context.dataStore)
4444
assertThat(settingsCache.sessionSamplingRate()).isNull()
4545
assertThat(settingsCache.sessionsEnabled()).isNull()
@@ -49,7 +49,7 @@ class SettingsCacheTest {
4949

5050
@Test
5151
fun sessionCache_SettingConfigsReturnsCachedValue() {
52-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
52+
val context = FakeFirebaseApp().firebaseApp.applicationContext
5353
val settingsCache = SettingsCache(context.dataStore)
5454

5555
runBlocking {
@@ -70,7 +70,7 @@ class SettingsCacheTest {
7070

7171
@Test
7272
fun sessionCache_SettingConfigsReturnsCacheExpiredWithShortCacheDuration() {
73-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
73+
val context = FakeFirebaseApp().firebaseApp.applicationContext
7474
val settingsCache = SettingsCache(context.dataStore)
7575

7676
runBlocking {
@@ -91,7 +91,7 @@ class SettingsCacheTest {
9191

9292
@Test
9393
fun sessionCache_SettingConfigsReturnsCachedValueWithPartialConfigs() {
94-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
94+
val context = FakeFirebaseApp().firebaseApp.applicationContext
9595
val settingsCache = SettingsCache(context.dataStore)
9696

9797
runBlocking {
@@ -111,7 +111,7 @@ class SettingsCacheTest {
111111

112112
@Test
113113
fun sessionCache_SettingConfigsAllowsUpdateConfigsAndCachesValues() {
114-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
114+
val context = FakeFirebaseApp().firebaseApp.applicationContext
115115
val settingsCache = SettingsCache(context.dataStore)
116116

117117
runBlocking {
@@ -143,7 +143,7 @@ class SettingsCacheTest {
143143

144144
@Test
145145
fun sessionCache_SettingConfigsCleansCacheForNullValues() {
146-
val context = FakeFirebaseApp.fakeFirebaseApp().applicationContext
146+
val context = FakeFirebaseApp().firebaseApp.applicationContext
147147
val settingsCache = SettingsCache(context.dataStore)
148148

149149
runBlocking {

0 commit comments

Comments
 (0)