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