github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/short_header_opener.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go/noninternal/handshake (interfaces: ShortHeaderOpener) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 time "time" 10 11 gomock "github.com/golang/mock/gomock" 12 protocol "github.com/tumi8/quic-go/noninternal/protocol" 13 ) 14 15 // MockShortHeaderOpener is a mock of ShortHeaderOpener interface. 16 type MockShortHeaderOpener struct { 17 ctrl *gomock.Controller 18 recorder *MockShortHeaderOpenerMockRecorder 19 } 20 21 // MockShortHeaderOpenerMockRecorder is the mock recorder for MockShortHeaderOpener. 22 type MockShortHeaderOpenerMockRecorder struct { 23 mock *MockShortHeaderOpener 24 } 25 26 // NewMockShortHeaderOpener creates a new mock instance. 27 func NewMockShortHeaderOpener(ctrl *gomock.Controller) *MockShortHeaderOpener { 28 mock := &MockShortHeaderOpener{ctrl: ctrl} 29 mock.recorder = &MockShortHeaderOpenerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockShortHeaderOpener) EXPECT() *MockShortHeaderOpenerMockRecorder { 35 return m.recorder 36 } 37 38 // DecodePacketNumber mocks base method. 39 func (m *MockShortHeaderOpener) DecodePacketNumber(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) protocol.PacketNumber { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "DecodePacketNumber", arg0, arg1) 42 ret0, _ := ret[0].(protocol.PacketNumber) 43 return ret0 44 } 45 46 // DecodePacketNumber indicates an expected call of DecodePacketNumber. 47 func (mr *MockShortHeaderOpenerMockRecorder) DecodePacketNumber(arg0, arg1 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodePacketNumber", reflect.TypeOf((*MockShortHeaderOpener)(nil).DecodePacketNumber), arg0, arg1) 50 } 51 52 // DecryptHeader mocks base method. 53 func (m *MockShortHeaderOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) { 54 m.ctrl.T.Helper() 55 m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2) 56 } 57 58 // DecryptHeader indicates an expected call of DecryptHeader. 59 func (mr *MockShortHeaderOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockShortHeaderOpener)(nil).DecryptHeader), arg0, arg1, arg2) 62 } 63 64 // Open mocks base method. 65 func (m *MockShortHeaderOpener) Open(arg0, arg1 []byte, arg2 time.Time, arg3 protocol.PacketNumber, arg4 protocol.KeyPhaseBit, arg5 []byte) ([]byte, error) { 66 m.ctrl.T.Helper() 67 ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3, arg4, arg5) 68 ret0, _ := ret[0].([]byte) 69 ret1, _ := ret[1].(error) 70 return ret0, ret1 71 } 72 73 // Open indicates an expected call of Open. 74 func (mr *MockShortHeaderOpenerMockRecorder) Open(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockShortHeaderOpener)(nil).Open), arg0, arg1, arg2, arg3, arg4, arg5) 77 }