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