This source file includes following definitions.
- CalculatePacketSequenceNumberFromWire
- SetLastSerializedConnectionId
- SetLastSequenceNumber
- SetIsServer
#include "net/quic/test_tools/quic_framer_peer.h"
#include "net/quic/quic_framer.h"
#include "net/quic/quic_protocol.h"
namespace net {
namespace test {
QuicPacketSequenceNumber QuicFramerPeer::CalculatePacketSequenceNumberFromWire(
QuicFramer* framer,
QuicSequenceNumberLength sequence_number_length,
QuicPacketSequenceNumber packet_sequence_number) {
return framer->CalculatePacketSequenceNumberFromWire(sequence_number_length,
packet_sequence_number);
}
void QuicFramerPeer::SetLastSerializedConnectionId(
QuicFramer* framer, QuicConnectionId connection_id) {
framer->last_serialized_connection_id_ = connection_id;
}
void QuicFramerPeer::SetLastSequenceNumber(
QuicFramer* framer,
QuicPacketSequenceNumber packet_sequence_number) {
framer->last_sequence_number_ = packet_sequence_number;
}
void QuicFramerPeer::SetIsServer(QuicFramer* framer, bool is_server) {
framer->is_server_ = is_server;
}
}
}