Skip to content

Commit

Permalink
Improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
strangesource committed Sep 24, 2024
1 parent 0a229a1 commit 6421af1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ConvivaAnalyticsIntegrationTest {
}

verify { videoAnalytics.reportAdBreakStarted(any(), any()) }
player.listeners[PlayerEvent.AdStarted::class]?.forEach { it(TEST_AD) }
player.listeners[PlayerEvent.AdStarted::class]?.forEach { it(TEST_AD_STARTED_EVENT) }
verify {
adAnalytics.reportAdStarted(match { it["c3.ad.position"] == AdPosition.MIDROLL })
}
Expand All @@ -209,7 +209,7 @@ class ConvivaAnalyticsIntegrationTest {
}

verify { videoAnalytics.reportAdBreakStarted(any(), any()) }
player.listeners[PlayerEvent.AdStarted::class]?.forEach { it(TEST_AD) }
player.listeners[PlayerEvent.AdStarted::class]?.forEach { it(TEST_AD_STARTED_EVENT) }
verify {
adAnalytics.reportAdStarted(match { it["c3.ad.position"] == AdPosition.PREROLL })
}
Expand Down Expand Up @@ -266,7 +266,7 @@ private val attachedPlayerEvents = listOf(
SourceEvent.Warning::class,
)

private val TEST_AD = PlayerEvent.AdStarted(
private val TEST_AD_STARTED_EVENT = PlayerEvent.AdStarted(
clientType = AdSourceType.Ima,
clickThroughUrl = "clickThroughUrl",
duration = 10.0,
Expand Down

0 comments on commit 6421af1

Please sign in to comment.