Skip to content

Commit

Permalink
Minor changes to UC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Dec 10, 2024
1 parent a041c52 commit 552b9ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ class UserConsentModeDebugTest {
mEventDao = splitRoomDatabase.eventDao()
val dispatcher: HttpResponseMockDispatcher = buildDispatcher()
val config = TestableSplitConfigBuilder().ready(30000)
.trafficType("client")
.trafficType("account")
.enableDebug()
.impressionsMode(ImpressionsMode.DEBUG)
.impressionsRefreshRate(3)
.eventFlushInterval(3)
Expand All @@ -224,7 +225,7 @@ class UserConsentModeDebugTest {
return HttpStreamResponseMock(200, null)
}

override fun getResponse(uri: URI, method: HttpMethod, body: String): HttpResponseMock {
override fun getResponse(uri: URI, method: HttpMethod, body: String?): HttpResponseMock {
println(uri.path)
return if (uri.path.contains("/" + IntegrationHelper.ServicePath.MEMBERSHIPS)) {
HttpResponseMock(200, IntegrationHelper.emptyAllSegments())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class UserConsentModeNoneTest {
mCountDao = splitRoomDatabase.impressionsCountDao()
val dispatcher: HttpResponseMockDispatcher = buildDispatcher()
val config = TestableSplitConfigBuilder().ready(30000)
.trafficType("client")
.trafficType("account")
.impressionsMode(ImpressionsMode.NONE)
.impressionsRefreshRate(3)
.eventFlushInterval(3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ class UserConsentModeOptimizedTest {
mCountDao = splitRoomDatabase.impressionsCountDao()
val dispatcher: HttpResponseMockDispatcher = buildDispatcher()
val config = TestableSplitConfigBuilder().ready(30000)
.trafficType("client")
.trafficType("account")
.impressionsMode(ImpressionsMode.OPTIMIZED)
.impressionsRefreshRate(3)
.impressionsCountersRefreshRate(3)
.mtkRefreshRate(3)
.enableDebug()
.eventFlushInterval(3)
.userConsent(userConsent)
.build()
Expand All @@ -236,7 +237,7 @@ class UserConsentModeOptimizedTest {
return HttpStreamResponseMock(200, null)
}

override fun getResponse(uri: URI, method: HttpMethod, body: String): HttpResponseMock {
override fun getResponse(uri: URI, method: HttpMethod, body: String?): HttpResponseMock {
println(uri.path)
return if (uri.path.contains("/" + IntegrationHelper.ServicePath.MEMBERSHIPS)) {
HttpResponseMock(200, IntegrationHelper.emptyAllSegments())
Expand Down

0 comments on commit 552b9ec

Please sign in to comment.