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