src/net/third_party/quiche/src/quic/core/quic_dispatcher_test.cc
// Tests that store delivers empty packet list if CHLO arrives firstly.
Tests that store delivers empty packet list if CHLO arrives firstly.
Tests that store delivers empty packet list if CHLO arrives firstly .
TEST_P(BufferedPacketStoreTest, DeliverEmptyPackets) {
  QuicConnectionId conn_id = TestConnectionId(1);
  QuicSocketAddress client_address(QuicIpAddress::Loopback4(), 1);
  EXPECT_CALL(*dispatcher_, ShouldCreateOrBufferPacketForConnection(
                                ReceivedPacketInfoConnectionIdEquals(conn_id)));
  EXPECT_CALL(*dispatcher_, CreateQuicSession(conn_id, client_address,
                                              quiche::QuicheStringPiece(), _))
      .WillOnce(Return(ByMove(CreateSession(
          dispatcher_.get(), config_, conn_id, client_address, &mock_helper_,
          &mock_alarm_factory_, &crypto_config_,
          QuicDispatcherPeer::GetCache(dispatcher_.get()), &session1_))));
  EXPECT_CALL(*reinterpret_cast<MockQuicConnection*>(session1_->connection()),
              ProcessUdpPacket(_, client_address, _));
  ProcessPacket(client_address, conn_id, true, SerializeFullCHLO());
}
TEST_P ( BufferedPacketStoreTest , DeliverEmptyPackets ) { QuicConnectionId conn_id = TestConnectionId ( 1 ) ; QuicSocketAddress client_address ( QuicIpAddress :: Loopback4 ( ) , 1 ) ; EXPECT_CALL ( * dispatcher_ , ShouldCreateOrBufferPacketForConnection ( ReceivedPacketInfoConnectionIdEquals ( conn_id ) ) ) ; EXPECT_CALL ( * dispatcher_ , CreateQuicSession ( conn_id , client_address , quiche :: QuicheStringPiece ( ) , _ ) ) . WillOnce ( Return ( ByMove ( CreateSession ( dispatcher_ . get ( ) , config_ , conn_id , client_address , & mock_helper_ , & mock_alarm_factory_ , & crypto_config_ , QuicDispatcherPeer :: GetCache ( dispatcher_ . get ( ) ) , & session1_ ) ) ) ) ; EXPECT_CALL ( * reinterpret_cast < MockQuicConnection * > ( session1_ -> connection ( ) ) , ProcessUdpPacket ( _ , client_address , _ ) ) ; ProcessPacket ( client_address , conn_id , true , SerializeFullCHLO ( ) ) ; }
Tests that store delivers empty packet list if CHLO arrives firstly.
Tests that store delivers empty packet list if CHLO arrives firstly .