Skip to content

Commit 06336e4

Browse files
authored
Enqueue rekey pixel (duckduckgo#3826)
Task/Issue URL: https://app.asana.com/0/488551667048375/1205898947038379/f ### Description Enqueue rekey pixel ### Steps to test this PR QA optional
1 parent 2cfe6e1 commit 06336e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/pixels/NetworkProtectionPixelNames.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ enum class NetworkProtectionPixelNames(
4949
NETP_LATENCY_REPORT("m_netp_ev_latency_c"),
5050
NETP_REPORT_POOR_LATENCY_DAILY("m_netp_ev_poor_latency_d"),
5151
NETP_REPORT_LATENCY_ERROR_DAILY("m_netp_ev_latency_error_d"),
52-
NETP_REKEY_COMPLETED("m_netp_ev_rekey_completed_c"),
53-
NETP_REKEY_COMPLETED_DAILY("m_netp_ev_rekey_completed_d"),
52+
NETP_REKEY_COMPLETED("m_netp_ev_rekey_completed_c", enqueue = true),
53+
NETP_REKEY_COMPLETED_DAILY("m_netp_ev_rekey_completed_d", enqueue = true),
5454
NETP_VPN_CONFLICT_SHOWN("m_netp_imp_vpn_conflict_dialog_c"),
5555
NETP_VPN_CONFLICT_SHOWN_DAILY("m_netp_imp_vpn_conflict_dialog_d"),
5656
NETP_ALWAYSON_CONFLICT_SHOWN("m_netp_imp_always_on_conflict_dialog_c"),

network-protection/network-protection-impl/src/test/java/com/duckduckgo/networkprotection/impl/pixels/RealNetworkProtectionPixelTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ class RealNetworkProtectionPixelTest {
122122
testee.reportRekeyCompleted()
123123
testee.reportRekeyCompleted()
124124

125-
verify(pixel).fire("m_netp_ev_rekey_completed_d")
126-
verify(pixel, times(2)).fire("m_netp_ev_rekey_completed_c")
125+
verify(pixel).enqueueFire("m_netp_ev_rekey_completed_d")
126+
verify(pixel, times(2)).enqueueFire("m_netp_ev_rekey_completed_c")
127127
}
128128

129129
@Test

0 commit comments

Comments
 (0)