github.com/tumi8/quic-go@v0.37.4-tum/mock_send_stream_internal_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: SendStreamI) 3 4 // Package quic is a generated GoMock package. 5 package quic 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 gomock "github.com/golang/mock/gomock" 13 ackhandler "github.com/tumi8/quic-go/noninternal/ackhandler" 14 protocol "github.com/tumi8/quic-go/noninternal/protocol" 15 qerr "github.com/tumi8/quic-go/noninternal/qerr" 16 wire "github.com/tumi8/quic-go/noninternal/wire" 17 ) 18 19 // MockSendStreamI is a mock of SendStreamI interface. 20 type MockSendStreamI struct { 21 ctrl *gomock.Controller 22 recorder *MockSendStreamIMockRecorder 23 } 24 25 // MockSendStreamIMockRecorder is the mock recorder for MockSendStreamI. 26 type MockSendStreamIMockRecorder struct { 27 mock *MockSendStreamI 28 } 29 30 // NewMockSendStreamI creates a new mock instance. 31 func NewMockSendStreamI(ctrl *gomock.Controller) *MockSendStreamI { 32 mock := &MockSendStreamI{ctrl: ctrl} 33 mock.recorder = &MockSendStreamIMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockSendStreamI) EXPECT() *MockSendStreamIMockRecorder { 39 return m.recorder 40 } 41 42 // CancelWrite mocks base method. 43 func (m *MockSendStreamI) CancelWrite(arg0 qerr.StreamErrorCode) { 44 m.ctrl.T.Helper() 45 m.ctrl.Call(m, "CancelWrite", arg0) 46 } 47 48 // CancelWrite indicates an expected call of CancelWrite. 49 func (mr *MockSendStreamIMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelWrite", reflect.TypeOf((*MockSendStreamI)(nil).CancelWrite), arg0) 52 } 53 54 // Close mocks base method. 55 func (m *MockSendStreamI) Close() error { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Close") 58 ret0, _ := ret[0].(error) 59 return ret0 60 } 61 62 // Close indicates an expected call of Close. 63 func (mr *MockSendStreamIMockRecorder) Close() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendStreamI)(nil).Close)) 66 } 67 68 // Context mocks base method. 69 func (m *MockSendStreamI) Context() context.Context { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "Context") 72 ret0, _ := ret[0].(context.Context) 73 return ret0 74 } 75 76 // Context indicates an expected call of Context. 77 func (mr *MockSendStreamIMockRecorder) Context() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockSendStreamI)(nil).Context)) 80 } 81 82 // SetWriteDeadline mocks base method. 83 func (m *MockSendStreamI) SetWriteDeadline(arg0 time.Time) error { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "SetWriteDeadline", arg0) 86 ret0, _ := ret[0].(error) 87 return ret0 88 } 89 90 // SetWriteDeadline indicates an expected call of SetWriteDeadline. 91 func (mr *MockSendStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockSendStreamI)(nil).SetWriteDeadline), arg0) 94 } 95 96 // StreamID mocks base method. 97 func (m *MockSendStreamI) StreamID() protocol.StreamID { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "StreamID") 100 ret0, _ := ret[0].(protocol.StreamID) 101 return ret0 102 } 103 104 // StreamID indicates an expected call of StreamID. 105 func (mr *MockSendStreamIMockRecorder) StreamID() *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockSendStreamI)(nil).StreamID)) 108 } 109 110 // Write mocks base method. 111 func (m *MockSendStreamI) Write(arg0 []byte) (int, error) { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "Write", arg0) 114 ret0, _ := ret[0].(int) 115 ret1, _ := ret[1].(error) 116 return ret0, ret1 117 } 118 119 // Write indicates an expected call of Write. 120 func (mr *MockSendStreamIMockRecorder) Write(arg0 interface{}) *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendStreamI)(nil).Write), arg0) 123 } 124 125 // closeForShutdown mocks base method. 126 func (m *MockSendStreamI) closeForShutdown(arg0 error) { 127 m.ctrl.T.Helper() 128 m.ctrl.Call(m, "closeForShutdown", arg0) 129 } 130 131 // closeForShutdown indicates an expected call of closeForShutdown. 132 func (mr *MockSendStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockSendStreamI)(nil).closeForShutdown), arg0) 135 } 136 137 // handleStopSendingFrame mocks base method. 138 func (m *MockSendStreamI) handleStopSendingFrame(arg0 *wire.StopSendingFrame) { 139 m.ctrl.T.Helper() 140 m.ctrl.Call(m, "handleStopSendingFrame", arg0) 141 } 142 143 // handleStopSendingFrame indicates an expected call of handleStopSendingFrame. 144 func (mr *MockSendStreamIMockRecorder) handleStopSendingFrame(arg0 interface{}) *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStopSendingFrame", reflect.TypeOf((*MockSendStreamI)(nil).handleStopSendingFrame), arg0) 147 } 148 149 // hasData mocks base method. 150 func (m *MockSendStreamI) hasData() bool { 151 m.ctrl.T.Helper() 152 ret := m.ctrl.Call(m, "hasData") 153 ret0, _ := ret[0].(bool) 154 return ret0 155 } 156 157 // hasData indicates an expected call of hasData. 158 func (mr *MockSendStreamIMockRecorder) hasData() *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "hasData", reflect.TypeOf((*MockSendStreamI)(nil).hasData)) 161 } 162 163 // popStreamFrame mocks base method. 164 func (m *MockSendStreamI) popStreamFrame(arg0 protocol.ByteCount, arg1 protocol.VersionNumber) (ackhandler.StreamFrame, bool, bool) { 165 m.ctrl.T.Helper() 166 ret := m.ctrl.Call(m, "popStreamFrame", arg0, arg1) 167 ret0, _ := ret[0].(ackhandler.StreamFrame) 168 ret1, _ := ret[1].(bool) 169 ret2, _ := ret[2].(bool) 170 return ret0, ret1, ret2 171 } 172 173 // popStreamFrame indicates an expected call of popStreamFrame. 174 func (mr *MockSendStreamIMockRecorder) popStreamFrame(arg0, arg1 interface{}) *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "popStreamFrame", reflect.TypeOf((*MockSendStreamI)(nil).popStreamFrame), arg0, arg1) 177 } 178 179 // updateSendWindow mocks base method. 180 func (m *MockSendStreamI) updateSendWindow(arg0 protocol.ByteCount) { 181 m.ctrl.T.Helper() 182 m.ctrl.Call(m, "updateSendWindow", arg0) 183 } 184 185 // updateSendWindow indicates an expected call of updateSendWindow. 186 func (mr *MockSendStreamIMockRecorder) updateSendWindow(arg0 interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "updateSendWindow", reflect.TypeOf((*MockSendStreamI)(nil).updateSendWindow), arg0) 189 }