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