github.com/tumi8/quic-go@v0.37.4-tum/mock_crypto_data_handler_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: CryptoDataHandler) 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 handshake "github.com/tumi8/quic-go/noninternal/handshake" 12 protocol "github.com/tumi8/quic-go/noninternal/protocol" 13 ) 14 15 // MockCryptoDataHandler is a mock of CryptoDataHandler interface. 16 type MockCryptoDataHandler struct { 17 ctrl *gomock.Controller 18 recorder *MockCryptoDataHandlerMockRecorder 19 } 20 21 // MockCryptoDataHandlerMockRecorder is the mock recorder for MockCryptoDataHandler. 22 type MockCryptoDataHandlerMockRecorder struct { 23 mock *MockCryptoDataHandler 24 } 25 26 // NewMockCryptoDataHandler creates a new mock instance. 27 func NewMockCryptoDataHandler(ctrl *gomock.Controller) *MockCryptoDataHandler { 28 mock := &MockCryptoDataHandler{ctrl: ctrl} 29 mock.recorder = &MockCryptoDataHandlerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockCryptoDataHandler) EXPECT() *MockCryptoDataHandlerMockRecorder { 35 return m.recorder 36 } 37 38 // HandleMessage mocks base method. 39 func (m *MockCryptoDataHandler) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // HandleMessage indicates an expected call of HandleMessage. 47 func (mr *MockCryptoDataHandlerMockRecorder) HandleMessage(arg0, arg1 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoDataHandler)(nil).HandleMessage), arg0, arg1) 50 } 51 52 // NextEvent mocks base method. 53 func (m *MockCryptoDataHandler) NextEvent() handshake.Event { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "NextEvent") 56 ret0, _ := ret[0].(handshake.Event) 57 return ret0 58 } 59 60 // NextEvent indicates an expected call of NextEvent. 61 func (mr *MockCryptoDataHandlerMockRecorder) NextEvent() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextEvent", reflect.TypeOf((*MockCryptoDataHandler)(nil).NextEvent)) 64 }