forked from quic-go/quic-go
simplify the stream by directly popping STREAM frames from it
This commit is contained in:
@@ -94,19 +94,6 @@ func (_mr *MockStreamIMockRecorder) Finished() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Finished", reflect.TypeOf((*MockStreamI)(nil).Finished))
|
||||
}
|
||||
|
||||
// GetDataForWriting mocks base method
|
||||
func (_m *MockStreamI) GetDataForWriting(_param0 protocol.ByteCount) ([]byte, bool) {
|
||||
ret := _m.ctrl.Call(_m, "GetDataForWriting", _param0)
|
||||
ret0, _ := ret[0].([]byte)
|
||||
ret1, _ := ret[1].(bool)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetDataForWriting indicates an expected call of GetDataForWriting
|
||||
func (_mr *MockStreamIMockRecorder) GetDataForWriting(arg0 interface{}) *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetDataForWriting", reflect.TypeOf((*MockStreamI)(nil).GetDataForWriting), arg0)
|
||||
}
|
||||
|
||||
// GetWindowUpdate mocks base method
|
||||
func (_m *MockStreamI) GetWindowUpdate() protocol.ByteCount {
|
||||
ret := _m.ctrl.Call(_m, "GetWindowUpdate")
|
||||
@@ -119,30 +106,6 @@ func (_mr *MockStreamIMockRecorder) GetWindowUpdate() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockStreamI)(nil).GetWindowUpdate))
|
||||
}
|
||||
|
||||
// GetWriteOffset mocks base method
|
||||
func (_m *MockStreamI) GetWriteOffset() protocol.ByteCount {
|
||||
ret := _m.ctrl.Call(_m, "GetWriteOffset")
|
||||
ret0, _ := ret[0].(protocol.ByteCount)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetWriteOffset indicates an expected call of GetWriteOffset
|
||||
func (_mr *MockStreamIMockRecorder) GetWriteOffset() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetWriteOffset", reflect.TypeOf((*MockStreamI)(nil).GetWriteOffset))
|
||||
}
|
||||
|
||||
// HasDataForWriting mocks base method
|
||||
func (_m *MockStreamI) HasDataForWriting() bool {
|
||||
ret := _m.ctrl.Call(_m, "HasDataForWriting")
|
||||
ret0, _ := ret[0].(bool)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// HasDataForWriting indicates an expected call of HasDataForWriting
|
||||
func (_mr *MockStreamIMockRecorder) HasDataForWriting() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "HasDataForWriting", reflect.TypeOf((*MockStreamI)(nil).HasDataForWriting))
|
||||
}
|
||||
|
||||
// IsFlowControlBlocked mocks base method
|
||||
func (_m *MockStreamI) IsFlowControlBlocked() bool {
|
||||
ret := _m.ctrl.Call(_m, "IsFlowControlBlocked")
|
||||
@@ -155,6 +118,18 @@ func (_mr *MockStreamIMockRecorder) IsFlowControlBlocked() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "IsFlowControlBlocked", reflect.TypeOf((*MockStreamI)(nil).IsFlowControlBlocked))
|
||||
}
|
||||
|
||||
// PopStreamFrame mocks base method
|
||||
func (_m *MockStreamI) PopStreamFrame(_param0 protocol.ByteCount) *wire.StreamFrame {
|
||||
ret := _m.ctrl.Call(_m, "PopStreamFrame", _param0)
|
||||
ret0, _ := ret[0].(*wire.StreamFrame)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// PopStreamFrame indicates an expected call of PopStreamFrame
|
||||
func (_mr *MockStreamIMockRecorder) PopStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "PopStreamFrame", reflect.TypeOf((*MockStreamI)(nil).PopStreamFrame), arg0)
|
||||
}
|
||||
|
||||
// Read mocks base method
|
||||
func (_m *MockStreamI) Read(_param0 []byte) (int, error) {
|
||||
ret := _m.ctrl.Call(_m, "Read", _param0)
|
||||
|
||||
Reference in New Issue
Block a user