Skip to content

Commit 66428a4

Browse files
committed
Tests
1 parent bb47179 commit 66428a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class SessionEventEncoderTest {
7171
"app_id":"1:12345:android:app",
7272
"device_model":"${Build.MODEL}",
7373
"session_sdk_version":"0.1.0",
74+
"os_version":"${Build.VERSION.RELEASE}",
7475
"log_environment":3,
7576
"android_app_info":{
7677
"package_name":"com.google.firebase.sessions.test",
@@ -101,6 +102,7 @@ class SessionEventEncoderTest {
101102
appId = "",
102103
deviceModel = "",
103104
sessionSdkVersion = "",
105+
osDisplayVersion = "",
104106
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
105107
AndroidApplicationInfo(packageName = "", versionName = ""),
106108
)
@@ -129,6 +131,7 @@ class SessionEventEncoderTest {
129131
"app_id":"",
130132
"device_model":"",
131133
"session_sdk_version":"",
134+
"os_version":"",
132135
"log_environment":3,
133136
"android_app_info":{
134137
"package_name":"",

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/testing/TestSessionEventData.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ internal object TestSessionEventData {
5757
appId = FakeFirebaseApp.MOCK_APP_ID,
5858
deviceModel = Build.MODEL,
5959
sessionSdkVersion = BuildConfig.VERSION_NAME,
60+
osDisplayVersion = Build.VERSION.RELEASE,
6061
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
6162
AndroidApplicationInfo(
6263
packageName = ApplicationProvider.getApplicationContext<Context>().packageName,

0 commit comments

Comments
 (0)