github.com/MerlinKodo/quic-go@v0.39.2/internal/ackhandler/mock_ecn_handler_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go/internal/ackhandler (interfaces: ECNHandler) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package ackhandler -destination mock_ecn_handler_test.go github.com/MerlinKodo/quic-go/internal/ackhandler ECNHandler 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 // MockECNHandler is a mock of ECNHandler interface. 19 type MockECNHandler struct { 20 ctrl *gomock.Controller 21 recorder *MockECNHandlerMockRecorder 22 } 23 24 // MockECNHandlerMockRecorder is the mock recorder for MockECNHandler. 25 type MockECNHandlerMockRecorder struct { 26 mock *MockECNHandler 27 } 28 29 // NewMockECNHandler creates a new mock instance. 30 func NewMockECNHandler(ctrl *gomock.Controller) *MockECNHandler { 31 mock := &MockECNHandler{ctrl: ctrl} 32 mock.recorder = &MockECNHandlerMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockECNHandler) EXPECT() *MockECNHandlerMockRecorder { 38 return m.recorder 39 } 40 41 // HandleNewlyAcked mocks base method. 42 func (m *MockECNHandler) HandleNewlyAcked(arg0 []*packet, arg1, arg2, arg3 int64) bool { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "HandleNewlyAcked", arg0, arg1, arg2, arg3) 45 ret0, _ := ret[0].(bool) 46 return ret0 47 } 48 49 // HandleNewlyAcked indicates an expected call of HandleNewlyAcked. 50 func (mr *MockECNHandlerMockRecorder) HandleNewlyAcked(arg0, arg1, arg2, arg3 any) *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleNewlyAcked", reflect.TypeOf((*MockECNHandler)(nil).HandleNewlyAcked), arg0, arg1, arg2, arg3) 53 } 54 55 // LostPacket mocks base method. 56 func (m *MockECNHandler) LostPacket(arg0 protocol.PacketNumber) { 57 m.ctrl.T.Helper() 58 m.ctrl.Call(m, "LostPacket", arg0) 59 } 60 61 // LostPacket indicates an expected call of LostPacket. 62 func (mr *MockECNHandlerMockRecorder) LostPacket(arg0 any) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LostPacket", reflect.TypeOf((*MockECNHandler)(nil).LostPacket), arg0) 65 } 66 67 // Mode mocks base method. 68 func (m *MockECNHandler) Mode() protocol.ECN { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Mode") 71 ret0, _ := ret[0].(protocol.ECN) 72 return ret0 73 } 74 75 // Mode indicates an expected call of Mode. 76 func (mr *MockECNHandlerMockRecorder) Mode() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Mode", reflect.TypeOf((*MockECNHandler)(nil).Mode)) 79 } 80 81 // SentPacket mocks base method. 82 func (m *MockECNHandler) SentPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN) { 83 m.ctrl.T.Helper() 84 m.ctrl.Call(m, "SentPacket", arg0, arg1) 85 } 86 87 // SentPacket indicates an expected call of SentPacket. 88 func (mr *MockECNHandlerMockRecorder) SentPacket(arg0, arg1 any) *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockECNHandler)(nil).SentPacket), arg0, arg1) 91 }