-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathGetGPPDataMock.kt
More file actions
32 lines (28 loc) · 907 Bytes
/
GetGPPDataMock.kt
File metadata and controls
32 lines (28 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.usercentrics.sdk.flutter.mock
import com.usercentrics.sdk.flutter.api.FakeFlutterMethodCall
import com.usercentrics.sdk.services.gpp.GppData
internal object GetGPPDataMock {
val fake = GppData(
gppString = "DBABLA~BVQqAAAACgA.QA",
applicableSections = listOf(7, 8),
sections = mapOf(
"usnat" to mapOf(
"Version" to 1,
"SaleOptOut" to 2,
"GpcSegmentIncluded" to true,
),
),
)
val call = FakeFlutterMethodCall(method = "getGPPData", arguments = null)
val expected = mapOf(
"gppString" to "DBABLA~BVQqAAAACgA.QA",
"applicableSections" to listOf(7, 8),
"sections" to mapOf(
"usnat" to mapOf(
"Version" to 1,
"SaleOptOut" to 2,
"GpcSegmentIncluded" to true,
),
),
)
}