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