src/net/third_party/quiche/src/quic/core/quic_dispatcher_test.cc
// Packets with truncated connection IDs should be dropped.
Packets with truncated connection IDs should be dropped.
Packets with truncated connection IDs should be dropped .
TEST_P(QuicDispatcherTestStrayPacketConnectionId,
       StrayPacketTruncatedConnectionId) {
  CreateTimeWaitListManager();
  QuicSocketAddress client_address(QuicIpAddress::Loopback4(), 1);
  QuicConnectionId connection_id = TestConnectionId(1);
  EXPECT_CALL(*dispatcher_, CreateQuicSession(_, _, _, _)).Times(0);
  EXPECT_CALL(*time_wait_list_manager_, ProcessPacket(_, _, _, _, _)).Times(0);
  EXPECT_CALL(*time_wait_list_manager_,
              AddConnectionIdToTimeWait(_, _, _, _, _))
      .Times(0);
  ProcessPacket(client_address, connection_id, true, "data",
                CONNECTION_ID_ABSENT, PACKET_4BYTE_PACKET_NUMBER);
}
TEST_P ( QuicDispatcherTestStrayPacketConnectionId , StrayPacketTruncatedConnectionId ) { CreateTimeWaitListManager ( ) ; QuicSocketAddress client_address ( QuicIpAddress :: Loopback4 ( ) , 1 ) ; QuicConnectionId connection_id = TestConnectionId ( 1 ) ; EXPECT_CALL ( * dispatcher_ , CreateQuicSession ( _ , _ , _ , _ ) ) . Times ( 0 ) ; EXPECT_CALL ( * time_wait_list_manager_ , ProcessPacket ( _ , _ , _ , _ , _ ) ) . Times ( 0 ) ; EXPECT_CALL ( * time_wait_list_manager_ , AddConnectionIdToTimeWait ( _ , _ , _ , _ , _ ) ) . Times ( 0 ) ; ProcessPacket ( client_address , connection_id , true , " " , CONNECTION_ID_ABSENT , PACKET_4BYTE_PACKET_NUMBER ) ; }
Packets with truncated connection IDs should be dropped.
Packets with truncated connection IDs should be dropped .