Skip to content

Commit 4bfd2cb

Browse files
committed
ICE client: Add TEST_ICE_ctr_create_permission_retx
To fix a test
1 parent fec295e commit 4bfd2cb

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,9 @@ int TEST_ICE_ctr_binding_resp_recv = 0; // binding responses we received
851851
int TEST_ICE_ctr_allocate_send = 0; // TURN allocate requests sent
852852
int TEST_ICE_ctr_send_ind_send = 0; // TURN send indications sent (data out via relay)
853853
int TEST_ICE_ctr_data_ind_recv = 0; // TURN data indications received (data in via relay)
854-
int TEST_ICE_ctr_binding_req_retx = 0; // binding request retransmissions (not counting initial send)
855-
int TEST_ICE_ctr_allocate_retx = 0; // TURN allocate request retransmissions
854+
int TEST_ICE_ctr_binding_req_retx = 0; // binding request retransmissions (not counting initial send)
855+
int TEST_ICE_ctr_allocate_retx = 0; // TURN allocate request retransmissions
856+
int TEST_ICE_ctr_create_permission_retx = 0; // TURN CreatePermission request retransmissions
856857

857858
void TEST_ICE_ctr_Reset()
858859
{
@@ -864,8 +865,9 @@ void TEST_ICE_ctr_Reset()
864865
TEST_ICE_ctr_allocate_send = 0;
865866
TEST_ICE_ctr_send_ind_send = 0;
866867
TEST_ICE_ctr_data_ind_recv = 0;
867-
TEST_ICE_ctr_binding_req_retx = 0;
868-
TEST_ICE_ctr_allocate_retx = 0;
868+
TEST_ICE_ctr_binding_req_retx = 0;
869+
TEST_ICE_ctr_allocate_retx = 0;
870+
TEST_ICE_ctr_create_permission_retx = 0;
869871
}
870872

871873
void TEST_ICE_ctr_Print()
@@ -877,8 +879,9 @@ void TEST_ICE_ctr_Print()
877879
SpewMsg( "TEST_ICE_ctr_allocate_send=%d\n", TEST_ICE_ctr_allocate_send );
878880
SpewMsg( "TEST_ICE_ctr_send_ind_send=%d\n", TEST_ICE_ctr_send_ind_send );
879881
SpewMsg( "TEST_ICE_ctr_data_ind_recv=%d\n", TEST_ICE_ctr_data_ind_recv );
880-
SpewMsg( "TEST_ICE_ctr_binding_req_retx=%d\n", TEST_ICE_ctr_binding_req_retx );
881-
SpewMsg( "TEST_ICE_ctr_allocate_retx=%d\n", TEST_ICE_ctr_allocate_retx );
882+
SpewMsg( "TEST_ICE_ctr_binding_req_retx=%d\n", TEST_ICE_ctr_binding_req_retx );
883+
SpewMsg( "TEST_ICE_ctr_allocate_retx=%d\n", TEST_ICE_ctr_allocate_retx );
884+
SpewMsg( "TEST_ICE_ctr_create_permission_retx=%d\n", TEST_ICE_ctr_create_permission_retx );
882885
}
883886

884887
// Compare IP addresses, ignoring the port.
@@ -988,6 +991,8 @@ void CSteamNetworkingSocketsSTUNRequest::Think( SteamNetworkingMicroseconds usec
988991
++TEST_ICE_ctr_binding_req_retx;
989992
else if ( nMsgType == k_nTURN_AllocateRequest )
990993
++TEST_ICE_ctr_allocate_retx;
994+
else if ( nMsgType == k_nTURN_CreatePermissionRequest )
995+
++TEST_ICE_ctr_create_permission_retx;
991996
else
992997
AssertMsg( false, "Untracked STUN retransmit type 0x%x", nMsgType );
993998
}

0 commit comments

Comments
 (0)