mockackhandler

package
v0.41.0-7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler (interfaces: ReceivedPacketHandler)

Generated by this command:

mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler ReceivedPacketHandler

Package mockackhandler is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler (interfaces: SentPacketHandler)

Generated by this command:

mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler SentPacketHandler

Package mockackhandler is a generated GoMock package.

Index

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

func (m *MockReceivedPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)

DropPackets mocks base method.

func (*MockReceivedPacketHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReceivedPacketHandler) GetAckFrame

GetAckFrame mocks base method.

func (*MockReceivedPacketHandler) GetAlarmTimeout

func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time

GetAlarmTimeout mocks base method.

func (*MockReceivedPacketHandler) IsPotentiallyDuplicate

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

DropPackets indicates an expected call of DropPackets.

func (*MockReceivedPacketHandlerMockRecorder) GetAckFrame

GetAckFrame indicates an expected call of GetAckFrame.

func (*MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout

GetAlarmTimeout indicates an expected call of GetAlarmTimeout.

func (*MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate

IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.

func (*MockReceivedPacketHandlerMockRecorder) ReceivedPacket

func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 any) *ReceivedPacketHandlerReceivedPacketCall

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

func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel)

DropPackets mocks base method.

func (*MockSentPacketHandler) ECNMode

func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN

ECNMode mocks base method.

func (*MockSentPacketHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSentPacketHandler) GetLossDetectionTimeout

func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time

GetLossDetectionTimeout mocks base method.

func (*MockSentPacketHandler) OnLossDetectionTimeout

func (m *MockSentPacketHandler) OnLossDetectionTimeout() error

OnLossDetectionTimeout mocks base method.

func (*MockSentPacketHandler) PeekPacketNumber

PeekPacketNumber mocks base method.

func (*MockSentPacketHandler) PopPacketNumber

PopPacketNumber mocks base method.

func (*MockSentPacketHandler) QueueProbePacket

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

func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount)

ReceivedBytes mocks base method.

func (*MockSentPacketHandler) ResetForRetry

func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error

ResetForRetry mocks base method.

func (*MockSentPacketHandler) 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

func (m *MockSentPacketHandler) SetHandshakeConfirmed()

SetHandshakeConfirmed mocks base method.

func (*MockSentPacketHandler) SetMaxDatagramSize

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

DropPackets indicates an expected call of DropPackets.

func (*MockSentPacketHandlerMockRecorder) ECNMode

ECNMode indicates an expected call of ECNMode.

func (*MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout

GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout.

func (*MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout

OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout.

func (*MockSentPacketHandlerMockRecorder) PeekPacketNumber

PeekPacketNumber indicates an expected call of PeekPacketNumber.

func (*MockSentPacketHandlerMockRecorder) PopPacketNumber

PopPacketNumber indicates an expected call of PopPacketNumber.

func (*MockSentPacketHandlerMockRecorder) QueueProbePacket

QueueProbePacket indicates an expected call of QueueProbePacket.

func (*MockSentPacketHandlerMockRecorder) ReceivedAck

func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *SentPacketHandlerReceivedAckCall

ReceivedAck indicates an expected call of ReceivedAck.

func (*MockSentPacketHandlerMockRecorder) ReceivedBytes

ReceivedBytes indicates an expected call of ReceivedBytes.

func (*MockSentPacketHandlerMockRecorder) ResetForRetry

ResetForRetry indicates an expected call of ResetForRetry.

func (*MockSentPacketHandlerMockRecorder) SendMode

SendMode indicates an expected call of SendMode.

func (*MockSentPacketHandlerMockRecorder) SentPacket

func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *SentPacketHandlerSentPacketCall

SentPacket indicates an expected call of SentPacket.

func (*MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed

SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed.

func (*MockSentPacketHandlerMockRecorder) SetMaxDatagramSize

SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize.

func (*MockSentPacketHandlerMockRecorder) TimeUntilSend

TimeUntilSend indicates an expected call of TimeUntilSend.

type ReceivedPacketHandlerDropPacketsCall

type ReceivedPacketHandlerDropPacketsCall struct {
	*gomock.Call
}

ReceivedPacketHandlerDropPacketsCall wrap *gomock.Call

func (*ReceivedPacketHandlerDropPacketsCall) Do

Do rewrite *gomock.Call.Do

func (*ReceivedPacketHandlerDropPacketsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ReceivedPacketHandlerDropPacketsCall) Return

Return rewrite *gomock.Call.Return

type ReceivedPacketHandlerGetAckFrameCall

type ReceivedPacketHandlerGetAckFrameCall struct {
	*gomock.Call
}

ReceivedPacketHandlerGetAckFrameCall wrap *gomock.Call

func (*ReceivedPacketHandlerGetAckFrameCall) Do

Do rewrite *gomock.Call.Do

func (*ReceivedPacketHandlerGetAckFrameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ReceivedPacketHandlerGetAckFrameCall) Return

Return rewrite *gomock.Call.Return

type ReceivedPacketHandlerGetAlarmTimeoutCall

type ReceivedPacketHandlerGetAlarmTimeoutCall struct {
	*gomock.Call
}

ReceivedPacketHandlerGetAlarmTimeoutCall wrap *gomock.Call

func (*ReceivedPacketHandlerGetAlarmTimeoutCall) Do

Do rewrite *gomock.Call.Do

func (*ReceivedPacketHandlerGetAlarmTimeoutCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ReceivedPacketHandlerGetAlarmTimeoutCall) Return

Return rewrite *gomock.Call.Return

type ReceivedPacketHandlerIsPotentiallyDuplicateCall

type ReceivedPacketHandlerIsPotentiallyDuplicateCall struct {
	*gomock.Call
}

ReceivedPacketHandlerIsPotentiallyDuplicateCall wrap *gomock.Call

func (*ReceivedPacketHandlerIsPotentiallyDuplicateCall) Do

Do rewrite *gomock.Call.Do

func (*ReceivedPacketHandlerIsPotentiallyDuplicateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ReceivedPacketHandlerIsPotentiallyDuplicateCall) Return

Return rewrite *gomock.Call.Return

type ReceivedPacketHandlerReceivedPacketCall

type ReceivedPacketHandlerReceivedPacketCall struct {
	*gomock.Call
}

ReceivedPacketHandlerReceivedPacketCall wrap *gomock.Call

func (*ReceivedPacketHandlerReceivedPacketCall) Do

Do rewrite *gomock.Call.Do

func (*ReceivedPacketHandlerReceivedPacketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ReceivedPacketHandlerReceivedPacketCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerDropPacketsCall

type SentPacketHandlerDropPacketsCall struct {
	*gomock.Call
}

SentPacketHandlerDropPacketsCall wrap *gomock.Call

func (*SentPacketHandlerDropPacketsCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerDropPacketsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerDropPacketsCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerECNModeCall

type SentPacketHandlerECNModeCall struct {
	*gomock.Call
}

SentPacketHandlerECNModeCall wrap *gomock.Call

func (*SentPacketHandlerECNModeCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerECNModeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerECNModeCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerGetLossDetectionTimeoutCall

type SentPacketHandlerGetLossDetectionTimeoutCall struct {
	*gomock.Call
}

SentPacketHandlerGetLossDetectionTimeoutCall wrap *gomock.Call

func (*SentPacketHandlerGetLossDetectionTimeoutCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerGetLossDetectionTimeoutCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerGetLossDetectionTimeoutCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerOnLossDetectionTimeoutCall

type SentPacketHandlerOnLossDetectionTimeoutCall struct {
	*gomock.Call
}

SentPacketHandlerOnLossDetectionTimeoutCall wrap *gomock.Call

func (*SentPacketHandlerOnLossDetectionTimeoutCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerOnLossDetectionTimeoutCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerOnLossDetectionTimeoutCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerPeekPacketNumberCall

type SentPacketHandlerPeekPacketNumberCall struct {
	*gomock.Call
}

SentPacketHandlerPeekPacketNumberCall wrap *gomock.Call

func (*SentPacketHandlerPeekPacketNumberCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerPeekPacketNumberCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerPeekPacketNumberCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerPopPacketNumberCall

type SentPacketHandlerPopPacketNumberCall struct {
	*gomock.Call
}

SentPacketHandlerPopPacketNumberCall wrap *gomock.Call

func (*SentPacketHandlerPopPacketNumberCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerPopPacketNumberCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerPopPacketNumberCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerQueueProbePacketCall

type SentPacketHandlerQueueProbePacketCall struct {
	*gomock.Call
}

SentPacketHandlerQueueProbePacketCall wrap *gomock.Call

func (*SentPacketHandlerQueueProbePacketCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerQueueProbePacketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerQueueProbePacketCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerReceivedAckCall

type SentPacketHandlerReceivedAckCall struct {
	*gomock.Call
}

SentPacketHandlerReceivedAckCall wrap *gomock.Call

func (*SentPacketHandlerReceivedAckCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerReceivedAckCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerReceivedAckCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerReceivedBytesCall

type SentPacketHandlerReceivedBytesCall struct {
	*gomock.Call
}

SentPacketHandlerReceivedBytesCall wrap *gomock.Call

func (*SentPacketHandlerReceivedBytesCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerReceivedBytesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerReceivedBytesCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerResetForRetryCall

type SentPacketHandlerResetForRetryCall struct {
	*gomock.Call
}

SentPacketHandlerResetForRetryCall wrap *gomock.Call

func (*SentPacketHandlerResetForRetryCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerResetForRetryCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerResetForRetryCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerSendModeCall

type SentPacketHandlerSendModeCall struct {
	*gomock.Call
}

SentPacketHandlerSendModeCall wrap *gomock.Call

func (*SentPacketHandlerSendModeCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerSendModeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerSendModeCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerSentPacketCall

type SentPacketHandlerSentPacketCall struct {
	*gomock.Call
}

SentPacketHandlerSentPacketCall wrap *gomock.Call

func (*SentPacketHandlerSentPacketCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerSentPacketCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerSetHandshakeConfirmedCall

type SentPacketHandlerSetHandshakeConfirmedCall struct {
	*gomock.Call
}

SentPacketHandlerSetHandshakeConfirmedCall wrap *gomock.Call

func (*SentPacketHandlerSetHandshakeConfirmedCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerSetHandshakeConfirmedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerSetHandshakeConfirmedCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerSetMaxDatagramSizeCall

type SentPacketHandlerSetMaxDatagramSizeCall struct {
	*gomock.Call
}

SentPacketHandlerSetMaxDatagramSizeCall wrap *gomock.Call

func (*SentPacketHandlerSetMaxDatagramSizeCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerSetMaxDatagramSizeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerSetMaxDatagramSizeCall) Return

Return rewrite *gomock.Call.Return

type SentPacketHandlerTimeUntilSendCall

type SentPacketHandlerTimeUntilSendCall struct {
	*gomock.Call
}

SentPacketHandlerTimeUntilSendCall wrap *gomock.Call

func (*SentPacketHandlerTimeUntilSendCall) Do

Do rewrite *gomock.Call.Do

func (*SentPacketHandlerTimeUntilSendCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SentPacketHandlerTimeUntilSendCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL