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