This source file includes following definitions.
- SendVersionInPacket
- SetSendVersionInPacket
- SetSequenceNumberLength
- GetSequenceNumberLength
- SetIsServer
#include "net/quic/test_tools/quic_packet_creator_peer.h"
#include "net/quic/quic_packet_creator.h"
namespace net {
namespace test {
bool QuicPacketCreatorPeer::SendVersionInPacket(QuicPacketCreator* creator) {
return creator->send_version_in_packet_;
}
void QuicPacketCreatorPeer::SetSendVersionInPacket(
QuicPacketCreator* creator, bool send_version_in_packet) {
creator->send_version_in_packet_ = send_version_in_packet;
}
void QuicPacketCreatorPeer::SetSequenceNumberLength(
QuicPacketCreator* creator,
QuicSequenceNumberLength sequence_number_length) {
creator->sequence_number_length_ = sequence_number_length;
}
QuicSequenceNumberLength QuicPacketCreatorPeer::GetSequenceNumberLength(
QuicPacketCreator* creator) {
return creator->sequence_number_length_;
}
void QuicPacketCreatorPeer::SetIsServer(QuicPacketCreator* creator,
bool is_server) {
creator->is_server_ = is_server;
}
}
}