github.com/MerlinKodo/quic-go@v0.39.2/internal/ackhandler/mock_sent_packet_tracker_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go/internal/ackhandler (interfaces: SentPacketTracker) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/MerlinKodo/quic-go/internal/ackhandler SentPacketTracker 7 // 8 // Package ackhandler is a generated GoMock package. 9 package ackhandler 10 11 import ( 12 reflect "reflect" 13 14 protocol "github.com/MerlinKodo/quic-go/internal/protocol" 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockSentPacketTracker is a mock of SentPacketTracker interface. 19 type MockSentPacketTracker struct { 20 ctrl *gomock.Controller 21 recorder *MockSentPacketTrackerMockRecorder 22 } 23 24 // MockSentPacketTrackerMockRecorder is the mock recorder for MockSentPacketTracker. 25 type MockSentPacketTrackerMockRecorder struct { 26 mock *MockSentPacketTracker 27 } 28 29 // NewMockSentPacketTracker creates a new mock instance. 30 func NewMockSentPacketTracker(ctrl *gomock.Controller) *MockSentPacketTracker { 31 mock := &MockSentPacketTracker{ctrl: ctrl} 32 mock.recorder = &MockSentPacketTrackerMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockSentPacketTracker) EXPECT() *MockSentPacketTrackerMockRecorder { 38 return m.recorder 39 } 40 41 // GetLowestPacketNotConfirmedAcked mocks base method. 42 func (m *MockSentPacketTracker) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked") 45 ret0, _ := ret[0].(protocol.PacketNumber) 46 return ret0 47 } 48 49 // GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked. 50 func (mr *MockSentPacketTrackerMockRecorder) GetLowestPacketNotConfirmedAcked() *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketTracker)(nil).GetLowestPacketNotConfirmedAcked)) 53 } 54 55 // ReceivedPacket mocks base method. 56 func (m *MockSentPacketTracker) ReceivedPacket(arg0 protocol.EncryptionLevel) { 57 m.ctrl.T.Helper() 58 m.ctrl.Call(m, "ReceivedPacket", arg0) 59 } 60 61 // ReceivedPacket indicates an expected call of ReceivedPacket. 62 func (mr *MockSentPacketTrackerMockRecorder) ReceivedPacket(arg0 any) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockSentPacketTracker)(nil).ReceivedPacket), arg0) 65 }