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