Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: ReceivedPacketHandler)
Generated by this command:
mockgen -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler ReceivedPacketHandler
Package mockackhandler is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: SentPacketHandler)
Generated by this command:
mockgen -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler SentPacketHandler
Package mockackhandler is a generated GoMock package.
Index ¶
- type MockReceivedPacketHandler
- func (m *MockReceivedPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)
- func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder
- func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame
- func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time
- func (m *MockReceivedPacketHandler) IsPotentiallyDuplicate(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel) bool
- func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN, arg2 protocol.EncryptionLevel, ...) error
- type MockReceivedPacketHandlerMockRecorder
- func (mr *MockReceivedPacketHandlerMockRecorder) DropPackets(arg0 any) *gomock.Call
- func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0, arg1 any) *gomock.Call
- func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call
- func (mr *MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate(arg0, arg1 any) *gomock.Call
- func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- type MockSentPacketHandler
- func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)
- func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN
- func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder
- func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time
- func (m *MockSentPacketHandler) OnLossDetectionTimeout() error
- func (m *MockSentPacketHandler) PeekPacketNumber(arg0 protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)
- func (m *MockSentPacketHandler) PopPacketNumber(arg0 protocol.EncryptionLevel) protocol.PacketNumber
- func (m *MockSentPacketHandler) QueueProbePacket(arg0 protocol.EncryptionLevel) bool
- func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.EncryptionLevel, arg2 time.Time) (bool, error)
- func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount)
- func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error
- func (m *MockSentPacketHandler) SendMode(arg0 time.Time) ackhandler.SendMode
- func (m *MockSentPacketHandler) SentPacket(arg0 time.Time, arg1, arg2 protocol.PacketNumber, ...)
- func (m *MockSentPacketHandler) SetHandshakeConfirmed()
- func (m *MockSentPacketHandler) SetMaxDatagramSize(arg0 protocol.ByteCount)
- func (m *MockSentPacketHandler) TimeUntilSend() time.Time
- type MockSentPacketHandlerMockRecorder
- func (mr *MockSentPacketHandlerMockRecorder) DropPackets(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) ECNMode(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout() *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout() *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) QueueProbePacket(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) ReceivedBytes(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) ResetForRetry(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) SendMode(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed() *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) SetMaxDatagramSize(arg0 any) *gomock.Call
- func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockReceivedPacketHandler ¶
type MockReceivedPacketHandler struct {
// contains filtered or unexported fields
}
MockReceivedPacketHandler is a mock of ReceivedPacketHandler interface.
func NewMockReceivedPacketHandler ¶
func NewMockReceivedPacketHandler(ctrl *gomock.Controller) *MockReceivedPacketHandler
NewMockReceivedPacketHandler creates a new mock instance.
func (*MockReceivedPacketHandler) DropPackets ¶ added in v0.32.0
func (m *MockReceivedPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)
DropPackets mocks base method.
func (*MockReceivedPacketHandler) EXPECT ¶
func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReceivedPacketHandler) GetAckFrame ¶
func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame
GetAckFrame mocks base method.
func (*MockReceivedPacketHandler) GetAlarmTimeout ¶
func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time
GetAlarmTimeout mocks base method.
func (*MockReceivedPacketHandler) IsPotentiallyDuplicate ¶ added in v0.32.0
func (m *MockReceivedPacketHandler) IsPotentiallyDuplicate(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel) bool
IsPotentiallyDuplicate mocks base method.
func (*MockReceivedPacketHandler) ReceivedPacket ¶
func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN, arg2 protocol.EncryptionLevel, arg3 time.Time, arg4 bool) error
ReceivedPacket mocks base method.
type MockReceivedPacketHandlerMockRecorder ¶
type MockReceivedPacketHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockReceivedPacketHandlerMockRecorder is the mock recorder for MockReceivedPacketHandler.
func (*MockReceivedPacketHandlerMockRecorder) DropPackets ¶ added in v0.32.0
func (mr *MockReceivedPacketHandlerMockRecorder) DropPackets(arg0 any) *gomock.Call
DropPackets indicates an expected call of DropPackets.
func (*MockReceivedPacketHandlerMockRecorder) GetAckFrame ¶
func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0, arg1 any) *gomock.Call
GetAckFrame indicates an expected call of GetAckFrame.
func (*MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout ¶
func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call
GetAlarmTimeout indicates an expected call of GetAlarmTimeout.
func (*MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate ¶ added in v0.32.0
func (mr *MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate(arg0, arg1 any) *gomock.Call
IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.
func (*MockReceivedPacketHandlerMockRecorder) ReceivedPacket ¶
func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
ReceivedPacket indicates an expected call of ReceivedPacket.
type MockSentPacketHandler ¶
type MockSentPacketHandler struct {
// contains filtered or unexported fields
}
MockSentPacketHandler is a mock of SentPacketHandler interface.
func NewMockSentPacketHandler ¶
func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler
NewMockSentPacketHandler creates a new mock instance.
func (*MockSentPacketHandler) DropPackets ¶ added in v0.32.0
func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)
DropPackets mocks base method.
func (*MockSentPacketHandler) ECNMode ¶ added in v0.39.0
func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN
ECNMode mocks base method.
func (*MockSentPacketHandler) EXPECT ¶
func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSentPacketHandler) GetLossDetectionTimeout ¶ added in v0.32.0
func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time
GetLossDetectionTimeout mocks base method.
func (*MockSentPacketHandler) OnLossDetectionTimeout ¶ added in v0.32.0
func (m *MockSentPacketHandler) OnLossDetectionTimeout() error
OnLossDetectionTimeout mocks base method.
func (*MockSentPacketHandler) PeekPacketNumber ¶ added in v0.32.0
func (m *MockSentPacketHandler) PeekPacketNumber(arg0 protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)
PeekPacketNumber mocks base method.
func (*MockSentPacketHandler) PopPacketNumber ¶ added in v0.32.0
func (m *MockSentPacketHandler) PopPacketNumber(arg0 protocol.EncryptionLevel) protocol.PacketNumber
PopPacketNumber mocks base method.
func (*MockSentPacketHandler) QueueProbePacket ¶ added in v0.32.0
func (m *MockSentPacketHandler) QueueProbePacket(arg0 protocol.EncryptionLevel) bool
QueueProbePacket mocks base method.
func (*MockSentPacketHandler) ReceivedAck ¶
func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.EncryptionLevel, arg2 time.Time) (bool, error)
ReceivedAck mocks base method.
func (*MockSentPacketHandler) ReceivedBytes ¶ added in v0.32.0
func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount)
ReceivedBytes mocks base method.
func (*MockSentPacketHandler) ResetForRetry ¶ added in v0.32.0
func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error
ResetForRetry mocks base method.
func (*MockSentPacketHandler) SendMode ¶ added in v0.8.0
func (m *MockSentPacketHandler) SendMode(arg0 time.Time) ackhandler.SendMode
SendMode mocks base method.
func (*MockSentPacketHandler) SentPacket ¶
func (m *MockSentPacketHandler) SentPacket(arg0 time.Time, arg1, arg2 protocol.PacketNumber, arg3 []ackhandler.StreamFrame, arg4 []ackhandler.Frame, arg5 protocol.EncryptionLevel, arg6 protocol.ECN, arg7 protocol.ByteCount, arg8 bool)
SentPacket mocks base method.
func (*MockSentPacketHandler) SetHandshakeConfirmed ¶ added in v0.32.0
func (m *MockSentPacketHandler) SetHandshakeConfirmed()
SetHandshakeConfirmed mocks base method.
func (*MockSentPacketHandler) SetMaxDatagramSize ¶ added in v0.32.0
func (m *MockSentPacketHandler) SetMaxDatagramSize(arg0 protocol.ByteCount)
SetMaxDatagramSize mocks base method.
func (*MockSentPacketHandler) TimeUntilSend ¶
func (m *MockSentPacketHandler) TimeUntilSend() time.Time
TimeUntilSend mocks base method.
type MockSentPacketHandlerMockRecorder ¶
type MockSentPacketHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockSentPacketHandlerMockRecorder is the mock recorder for MockSentPacketHandler.
func (*MockSentPacketHandlerMockRecorder) DropPackets ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) DropPackets(arg0 any) *gomock.Call
DropPackets indicates an expected call of DropPackets.
func (*MockSentPacketHandlerMockRecorder) ECNMode ¶ added in v0.39.0
func (mr *MockSentPacketHandlerMockRecorder) ECNMode(arg0 any) *gomock.Call
ECNMode indicates an expected call of ECNMode.
func (*MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout() *gomock.Call
GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout.
func (*MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout() *gomock.Call
OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout.
func (*MockSentPacketHandlerMockRecorder) PeekPacketNumber ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber(arg0 any) *gomock.Call
PeekPacketNumber indicates an expected call of PeekPacketNumber.
func (*MockSentPacketHandlerMockRecorder) PopPacketNumber ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber(arg0 any) *gomock.Call
PopPacketNumber indicates an expected call of PopPacketNumber.
func (*MockSentPacketHandlerMockRecorder) QueueProbePacket ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) QueueProbePacket(arg0 any) *gomock.Call
QueueProbePacket indicates an expected call of QueueProbePacket.
func (*MockSentPacketHandlerMockRecorder) ReceivedAck ¶
func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *gomock.Call
ReceivedAck indicates an expected call of ReceivedAck.
func (*MockSentPacketHandlerMockRecorder) ReceivedBytes ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) ReceivedBytes(arg0 any) *gomock.Call
ReceivedBytes indicates an expected call of ReceivedBytes.
func (*MockSentPacketHandlerMockRecorder) ResetForRetry ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) ResetForRetry(arg0 any) *gomock.Call
ResetForRetry indicates an expected call of ResetForRetry.
func (*MockSentPacketHandlerMockRecorder) SendMode ¶ added in v0.8.0
func (mr *MockSentPacketHandlerMockRecorder) SendMode(arg0 any) *gomock.Call
SendMode indicates an expected call of SendMode.
func (*MockSentPacketHandlerMockRecorder) SentPacket ¶
func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call
SentPacket indicates an expected call of SentPacket.
func (*MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed() *gomock.Call
SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed.
func (*MockSentPacketHandlerMockRecorder) SetMaxDatagramSize ¶ added in v0.32.0
func (mr *MockSentPacketHandlerMockRecorder) SetMaxDatagramSize(arg0 any) *gomock.Call
SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize.
func (*MockSentPacketHandlerMockRecorder) TimeUntilSend ¶
func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *gomock.Call
TimeUntilSend indicates an expected call of TimeUntilSend.