github.com/MerlinKodo/quic-go@v0.39.2/mock_crypto_data_handler_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go (interfaces: CryptoDataHandler) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_crypto_data_handler_test.go github.com/MerlinKodo/quic-go CryptoDataHandler 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 handshake "github.com/MerlinKodo/quic-go/internal/handshake" 15 protocol "github.com/MerlinKodo/quic-go/internal/protocol" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockCryptoDataHandler is a mock of CryptoDataHandler interface. 20 type MockCryptoDataHandler struct { 21 ctrl *gomock.Controller 22 recorder *MockCryptoDataHandlerMockRecorder 23 } 24 25 // MockCryptoDataHandlerMockRecorder is the mock recorder for MockCryptoDataHandler. 26 type MockCryptoDataHandlerMockRecorder struct { 27 mock *MockCryptoDataHandler 28 } 29 30 // NewMockCryptoDataHandler creates a new mock instance. 31 func NewMockCryptoDataHandler(ctrl *gomock.Controller) *MockCryptoDataHandler { 32 mock := &MockCryptoDataHandler{ctrl: ctrl} 33 mock.recorder = &MockCryptoDataHandlerMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockCryptoDataHandler) EXPECT() *MockCryptoDataHandlerMockRecorder { 39 return m.recorder 40 } 41 42 // HandleMessage mocks base method. 43 func (m *MockCryptoDataHandler) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) error { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1) 46 ret0, _ := ret[0].(error) 47 return ret0 48 } 49 50 // HandleMessage indicates an expected call of HandleMessage. 51 func (mr *MockCryptoDataHandlerMockRecorder) HandleMessage(arg0, arg1 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoDataHandler)(nil).HandleMessage), arg0, arg1) 54 } 55 56 // NextEvent mocks base method. 57 func (m *MockCryptoDataHandler) NextEvent() handshake.Event { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "NextEvent") 60 ret0, _ := ret[0].(handshake.Event) 61 return ret0 62 } 63 64 // NextEvent indicates an expected call of NextEvent. 65 func (mr *MockCryptoDataHandlerMockRecorder) NextEvent() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextEvent", reflect.TypeOf((*MockCryptoDataHandler)(nil).NextEvent)) 68 }