github.com/tumi8/quic-go@v0.37.4-tum/mock_unknown_packet_handler_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: UnknownPacketHandler)
     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  )
    12  
    13  // MockUnknownPacketHandler is a mock of UnknownPacketHandler interface.
    14  type MockUnknownPacketHandler struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockUnknownPacketHandlerMockRecorder
    17  }
    18  
    19  // MockUnknownPacketHandlerMockRecorder is the mock recorder for MockUnknownPacketHandler.
    20  type MockUnknownPacketHandlerMockRecorder struct {
    21  	mock *MockUnknownPacketHandler
    22  }
    23  
    24  // NewMockUnknownPacketHandler creates a new mock instance.
    25  func NewMockUnknownPacketHandler(ctrl *gomock.Controller) *MockUnknownPacketHandler {
    26  	mock := &MockUnknownPacketHandler{ctrl: ctrl}
    27  	mock.recorder = &MockUnknownPacketHandlerMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockUnknownPacketHandler) EXPECT() *MockUnknownPacketHandlerMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // handlePacket mocks base method.
    37  func (m *MockUnknownPacketHandler) handlePacket(arg0 receivedPacket) {
    38  	m.ctrl.T.Helper()
    39  	m.ctrl.Call(m, "handlePacket", arg0)
    40  }
    41  
    42  // handlePacket indicates an expected call of handlePacket.
    43  func (mr *MockUnknownPacketHandlerMockRecorder) handlePacket(arg0 interface{}) *gomock.Call {
    44  	mr.mock.ctrl.T.Helper()
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handlePacket", reflect.TypeOf((*MockUnknownPacketHandler)(nil).handlePacket), arg0)
    46  }
    47  
    48  // setCloseError mocks base method.
    49  func (m *MockUnknownPacketHandler) setCloseError(arg0 error) {
    50  	m.ctrl.T.Helper()
    51  	m.ctrl.Call(m, "setCloseError", arg0)
    52  }
    53  
    54  // setCloseError indicates an expected call of setCloseError.
    55  func (mr *MockUnknownPacketHandlerMockRecorder) setCloseError(arg0 interface{}) *gomock.Call {
    56  	mr.mock.ctrl.T.Helper()
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setCloseError", reflect.TypeOf((*MockUnknownPacketHandler)(nil).setCloseError), arg0)
    58  }