mockackhandler

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mockackhandler is a generated GoMock package.

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 added in v0.32.0

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 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 MockReceivedPacketHandlerDropPacketsCall added in v0.42.0

type MockReceivedPacketHandlerDropPacketsCall struct {
	*gomock.Call
}

MockReceivedPacketHandlerDropPacketsCall wrap *gomock.Call

func (*MockReceivedPacketHandlerDropPacketsCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockReceivedPacketHandlerDropPacketsCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReceivedPacketHandlerDropPacketsCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockReceivedPacketHandlerGetAckFrameCall added in v0.42.0

type MockReceivedPacketHandlerGetAckFrameCall struct {
	*gomock.Call
}

MockReceivedPacketHandlerGetAckFrameCall wrap *gomock.Call

func (*MockReceivedPacketHandlerGetAckFrameCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockReceivedPacketHandlerGetAckFrameCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReceivedPacketHandlerGetAckFrameCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockReceivedPacketHandlerGetAlarmTimeoutCall added in v0.42.0

type MockReceivedPacketHandlerGetAlarmTimeoutCall struct {
	*gomock.Call
}

MockReceivedPacketHandlerGetAlarmTimeoutCall wrap *gomock.Call

func (*MockReceivedPacketHandlerGetAlarmTimeoutCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockReceivedPacketHandlerGetAlarmTimeoutCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReceivedPacketHandlerGetAlarmTimeoutCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockReceivedPacketHandlerIsPotentiallyDuplicateCall added in v0.42.0

type MockReceivedPacketHandlerIsPotentiallyDuplicateCall struct {
	*gomock.Call
}

MockReceivedPacketHandlerIsPotentiallyDuplicateCall wrap *gomock.Call

func (*MockReceivedPacketHandlerIsPotentiallyDuplicateCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockReceivedPacketHandlerIsPotentiallyDuplicateCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReceivedPacketHandlerIsPotentiallyDuplicateCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

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

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 added in v0.32.0

IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.

func (*MockReceivedPacketHandlerMockRecorder) ReceivedPacket

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

ReceivedPacket indicates an expected call of ReceivedPacket.

type MockReceivedPacketHandlerReceivedPacketCall added in v0.42.0

type MockReceivedPacketHandlerReceivedPacketCall struct {
	*gomock.Call
}

MockReceivedPacketHandlerReceivedPacketCall wrap *gomock.Call

func (*MockReceivedPacketHandlerReceivedPacketCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockReceivedPacketHandlerReceivedPacketCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReceivedPacketHandlerReceivedPacketCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

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

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

PeekPacketNumber mocks base method.

func (*MockSentPacketHandler) PopPacketNumber added in v0.32.0

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

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 MockSentPacketHandlerDropPacketsCall added in v0.42.0

type MockSentPacketHandlerDropPacketsCall struct {
	*gomock.Call
}

MockSentPacketHandlerDropPacketsCall wrap *gomock.Call

func (*MockSentPacketHandlerDropPacketsCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerDropPacketsCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerDropPacketsCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerECNModeCall added in v0.42.0

type MockSentPacketHandlerECNModeCall struct {
	*gomock.Call
}

MockSentPacketHandlerECNModeCall wrap *gomock.Call

func (*MockSentPacketHandlerECNModeCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerECNModeCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerECNModeCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerGetLossDetectionTimeoutCall added in v0.42.0

type MockSentPacketHandlerGetLossDetectionTimeoutCall struct {
	*gomock.Call
}

MockSentPacketHandlerGetLossDetectionTimeoutCall wrap *gomock.Call

func (*MockSentPacketHandlerGetLossDetectionTimeoutCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerGetLossDetectionTimeoutCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerGetLossDetectionTimeoutCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

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

DropPackets indicates an expected call of DropPackets.

func (*MockSentPacketHandlerMockRecorder) ECNMode added in v0.39.0

ECNMode indicates an expected call of ECNMode.

func (*MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout added in v0.32.0

GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout.

func (*MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout added in v0.32.0

OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout.

func (*MockSentPacketHandlerMockRecorder) PeekPacketNumber added in v0.32.0

PeekPacketNumber indicates an expected call of PeekPacketNumber.

func (*MockSentPacketHandlerMockRecorder) PopPacketNumber added in v0.32.0

PopPacketNumber indicates an expected call of PopPacketNumber.

func (*MockSentPacketHandlerMockRecorder) QueueProbePacket added in v0.32.0

QueueProbePacket indicates an expected call of QueueProbePacket.

func (*MockSentPacketHandlerMockRecorder) ReceivedAck

ReceivedAck indicates an expected call of ReceivedAck.

func (*MockSentPacketHandlerMockRecorder) ReceivedBytes added in v0.32.0

ReceivedBytes indicates an expected call of ReceivedBytes.

func (*MockSentPacketHandlerMockRecorder) ResetForRetry added in v0.32.0

ResetForRetry indicates an expected call of ResetForRetry.

func (*MockSentPacketHandlerMockRecorder) SendMode added in v0.8.0

SendMode indicates an expected call of SendMode.

func (*MockSentPacketHandlerMockRecorder) SentPacket

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

SentPacket indicates an expected call of SentPacket.

func (*MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed added in v0.32.0

SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed.

func (*MockSentPacketHandlerMockRecorder) SetMaxDatagramSize added in v0.32.0

SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize.

func (*MockSentPacketHandlerMockRecorder) TimeUntilSend

TimeUntilSend indicates an expected call of TimeUntilSend.

type MockSentPacketHandlerOnLossDetectionTimeoutCall added in v0.42.0

type MockSentPacketHandlerOnLossDetectionTimeoutCall struct {
	*gomock.Call
}

MockSentPacketHandlerOnLossDetectionTimeoutCall wrap *gomock.Call

func (*MockSentPacketHandlerOnLossDetectionTimeoutCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerOnLossDetectionTimeoutCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerOnLossDetectionTimeoutCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerPeekPacketNumberCall added in v0.42.0

type MockSentPacketHandlerPeekPacketNumberCall struct {
	*gomock.Call
}

MockSentPacketHandlerPeekPacketNumberCall wrap *gomock.Call

func (*MockSentPacketHandlerPeekPacketNumberCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerPeekPacketNumberCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerPeekPacketNumberCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerPopPacketNumberCall added in v0.42.0

type MockSentPacketHandlerPopPacketNumberCall struct {
	*gomock.Call
}

MockSentPacketHandlerPopPacketNumberCall wrap *gomock.Call

func (*MockSentPacketHandlerPopPacketNumberCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerPopPacketNumberCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerPopPacketNumberCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerQueueProbePacketCall added in v0.42.0

type MockSentPacketHandlerQueueProbePacketCall struct {
	*gomock.Call
}

MockSentPacketHandlerQueueProbePacketCall wrap *gomock.Call

func (*MockSentPacketHandlerQueueProbePacketCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerQueueProbePacketCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerQueueProbePacketCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerReceivedAckCall added in v0.42.0

type MockSentPacketHandlerReceivedAckCall struct {
	*gomock.Call
}

MockSentPacketHandlerReceivedAckCall wrap *gomock.Call

func (*MockSentPacketHandlerReceivedAckCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerReceivedAckCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerReceivedAckCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerReceivedBytesCall added in v0.42.0

type MockSentPacketHandlerReceivedBytesCall struct {
	*gomock.Call
}

MockSentPacketHandlerReceivedBytesCall wrap *gomock.Call

func (*MockSentPacketHandlerReceivedBytesCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerReceivedBytesCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerReceivedBytesCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerResetForRetryCall added in v0.42.0

type MockSentPacketHandlerResetForRetryCall struct {
	*gomock.Call
}

MockSentPacketHandlerResetForRetryCall wrap *gomock.Call

func (*MockSentPacketHandlerResetForRetryCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerResetForRetryCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerResetForRetryCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerSendModeCall added in v0.42.0

type MockSentPacketHandlerSendModeCall struct {
	*gomock.Call
}

MockSentPacketHandlerSendModeCall wrap *gomock.Call

func (*MockSentPacketHandlerSendModeCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerSendModeCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerSendModeCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerSentPacketCall added in v0.42.0

type MockSentPacketHandlerSentPacketCall struct {
	*gomock.Call
}

MockSentPacketHandlerSentPacketCall wrap *gomock.Call

func (*MockSentPacketHandlerSentPacketCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerSentPacketCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerSentPacketCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerSetHandshakeConfirmedCall added in v0.42.0

type MockSentPacketHandlerSetHandshakeConfirmedCall struct {
	*gomock.Call
}

MockSentPacketHandlerSetHandshakeConfirmedCall wrap *gomock.Call

func (*MockSentPacketHandlerSetHandshakeConfirmedCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerSetHandshakeConfirmedCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerSetHandshakeConfirmedCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerSetMaxDatagramSizeCall added in v0.42.0

type MockSentPacketHandlerSetMaxDatagramSizeCall struct {
	*gomock.Call
}

MockSentPacketHandlerSetMaxDatagramSizeCall wrap *gomock.Call

func (*MockSentPacketHandlerSetMaxDatagramSizeCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerSetMaxDatagramSizeCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerSetMaxDatagramSizeCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockSentPacketHandlerTimeUntilSendCall added in v0.42.0

type MockSentPacketHandlerTimeUntilSendCall struct {
	*gomock.Call
}

MockSentPacketHandlerTimeUntilSendCall wrap *gomock.Call

func (*MockSentPacketHandlerTimeUntilSendCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockSentPacketHandlerTimeUntilSendCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSentPacketHandlerTimeUntilSendCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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