github.com/tumi8/quic-go@v0.37.4-tum/mock_frame_source_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: FrameSource) 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 ackhandler "github.com/tumi8/quic-go/noninternal/ackhandler" 12 protocol "github.com/tumi8/quic-go/noninternal/protocol" 13 ) 14 15 // MockFrameSource is a mock of FrameSource interface. 16 type MockFrameSource struct { 17 ctrl *gomock.Controller 18 recorder *MockFrameSourceMockRecorder 19 } 20 21 // MockFrameSourceMockRecorder is the mock recorder for MockFrameSource. 22 type MockFrameSourceMockRecorder struct { 23 mock *MockFrameSource 24 } 25 26 // NewMockFrameSource creates a new mock instance. 27 func NewMockFrameSource(ctrl *gomock.Controller) *MockFrameSource { 28 mock := &MockFrameSource{ctrl: ctrl} 29 mock.recorder = &MockFrameSourceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockFrameSource) EXPECT() *MockFrameSourceMockRecorder { 35 return m.recorder 36 } 37 38 // AppendControlFrames mocks base method. 39 func (m *MockFrameSource) AppendControlFrames(arg0 []ackhandler.Frame, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) ([]ackhandler.Frame, protocol.ByteCount) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "AppendControlFrames", arg0, arg1, arg2) 42 ret0, _ := ret[0].([]ackhandler.Frame) 43 ret1, _ := ret[1].(protocol.ByteCount) 44 return ret0, ret1 45 } 46 47 // AppendControlFrames indicates an expected call of AppendControlFrames. 48 func (mr *MockFrameSourceMockRecorder) AppendControlFrames(arg0, arg1, arg2 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendControlFrames", reflect.TypeOf((*MockFrameSource)(nil).AppendControlFrames), arg0, arg1, arg2) 51 } 52 53 // AppendStreamFrames mocks base method. 54 func (m *MockFrameSource) AppendStreamFrames(arg0 []ackhandler.StreamFrame, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) ([]ackhandler.StreamFrame, protocol.ByteCount) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "AppendStreamFrames", arg0, arg1, arg2) 57 ret0, _ := ret[0].([]ackhandler.StreamFrame) 58 ret1, _ := ret[1].(protocol.ByteCount) 59 return ret0, ret1 60 } 61 62 // AppendStreamFrames indicates an expected call of AppendStreamFrames. 63 func (mr *MockFrameSourceMockRecorder) AppendStreamFrames(arg0, arg1, arg2 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendStreamFrames", reflect.TypeOf((*MockFrameSource)(nil).AppendStreamFrames), arg0, arg1, arg2) 66 } 67 68 // HasData mocks base method. 69 func (m *MockFrameSource) HasData() bool { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "HasData") 72 ret0, _ := ret[0].(bool) 73 return ret0 74 } 75 76 // HasData indicates an expected call of HasData. 77 func (mr *MockFrameSourceMockRecorder) HasData() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasData", reflect.TypeOf((*MockFrameSource)(nil).HasData)) 80 }