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