github.com/apernet/quic-go@v0.43.1-0.20240515053213-5e9e635fd9f0/internal/ackhandler/mock_sent_packet_tracker_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: SentPacketTracker) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -build_flags=-tags=gomock -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/apernet/quic-go/internal/ackhandler SentPacketTracker 7 // 8 9 // Package ackhandler is a generated GoMock package. 10 package ackhandler 11 12 import ( 13 reflect "reflect" 14 15 protocol "github.com/apernet/quic-go/internal/protocol" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockSentPacketTracker is a mock of SentPacketTracker interface. 20 type MockSentPacketTracker struct { 21 ctrl *gomock.Controller 22 recorder *MockSentPacketTrackerMockRecorder 23 } 24 25 // MockSentPacketTrackerMockRecorder is the mock recorder for MockSentPacketTracker. 26 type MockSentPacketTrackerMockRecorder struct { 27 mock *MockSentPacketTracker 28 } 29 30 // NewMockSentPacketTracker creates a new mock instance. 31 func NewMockSentPacketTracker(ctrl *gomock.Controller) *MockSentPacketTracker { 32 mock := &MockSentPacketTracker{ctrl: ctrl} 33 mock.recorder = &MockSentPacketTrackerMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockSentPacketTracker) EXPECT() *MockSentPacketTrackerMockRecorder { 39 return m.recorder 40 } 41 42 // GetLowestPacketNotConfirmedAcked mocks base method. 43 func (m *MockSentPacketTracker) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked") 46 ret0, _ := ret[0].(protocol.PacketNumber) 47 return ret0 48 } 49 50 // GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked. 51 func (mr *MockSentPacketTrackerMockRecorder) GetLowestPacketNotConfirmedAcked() *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall { 52 mr.mock.ctrl.T.Helper() 53 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketTracker)(nil).GetLowestPacketNotConfirmedAcked)) 54 return &MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall{Call: call} 55 } 56 57 // MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall wrap *gomock.Call 58 type MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall struct { 59 *gomock.Call 60 } 61 62 // Return rewrite *gomock.Call.Return 63 func (c *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall) Return(arg0 protocol.PacketNumber) *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall { 64 c.Call = c.Call.Return(arg0) 65 return c 66 } 67 68 // Do rewrite *gomock.Call.Do 69 func (c *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall) Do(f func() protocol.PacketNumber) *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall { 70 c.Call = c.Call.Do(f) 71 return c 72 } 73 74 // DoAndReturn rewrite *gomock.Call.DoAndReturn 75 func (c *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall) DoAndReturn(f func() protocol.PacketNumber) *MockSentPacketTrackerGetLowestPacketNotConfirmedAckedCall { 76 c.Call = c.Call.DoAndReturn(f) 77 return c 78 } 79 80 // ReceivedPacket mocks base method. 81 func (m *MockSentPacketTracker) ReceivedPacket(arg0 protocol.EncryptionLevel) { 82 m.ctrl.T.Helper() 83 m.ctrl.Call(m, "ReceivedPacket", arg0) 84 } 85 86 // ReceivedPacket indicates an expected call of ReceivedPacket. 87 func (mr *MockSentPacketTrackerMockRecorder) ReceivedPacket(arg0 any) *MockSentPacketTrackerReceivedPacketCall { 88 mr.mock.ctrl.T.Helper() 89 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockSentPacketTracker)(nil).ReceivedPacket), arg0) 90 return &MockSentPacketTrackerReceivedPacketCall{Call: call} 91 } 92 93 // MockSentPacketTrackerReceivedPacketCall wrap *gomock.Call 94 type MockSentPacketTrackerReceivedPacketCall struct { 95 *gomock.Call 96 } 97 98 // Return rewrite *gomock.Call.Return 99 func (c *MockSentPacketTrackerReceivedPacketCall) Return() *MockSentPacketTrackerReceivedPacketCall { 100 c.Call = c.Call.Return() 101 return c 102 } 103 104 // Do rewrite *gomock.Call.Do 105 func (c *MockSentPacketTrackerReceivedPacketCall) Do(f func(protocol.EncryptionLevel)) *MockSentPacketTrackerReceivedPacketCall { 106 c.Call = c.Call.Do(f) 107 return c 108 } 109 110 // DoAndReturn rewrite *gomock.Call.DoAndReturn 111 func (c *MockSentPacketTrackerReceivedPacketCall) DoAndReturn(f func(protocol.EncryptionLevel)) *MockSentPacketTrackerReceivedPacketCall { 112 c.Call = c.Call.DoAndReturn(f) 113 return c 114 }