forked from quic-go/quic-go
remove the ShouldSendFin method from the stream
GetDataForWriting now has two return parameters: the data and if a FIN should be sent.
This commit is contained in:
@@ -95,10 +95,11 @@ func (_mr *MockStreamIMockRecorder) Finished() *gomock.Call {
|
||||
}
|
||||
|
||||
// GetDataForWriting mocks base method
|
||||
func (_m *MockStreamI) GetDataForWriting(_param0 protocol.ByteCount) []byte {
|
||||
func (_m *MockStreamI) GetDataForWriting(_param0 protocol.ByteCount) ([]byte, bool) {
|
||||
ret := _m.ctrl.Call(_m, "GetDataForWriting", _param0)
|
||||
ret0, _ := ret[0].([]byte)
|
||||
return ret0
|
||||
ret1, _ := ret[1].(bool)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetDataForWriting indicates an expected call of GetDataForWriting
|
||||
@@ -235,18 +236,6 @@ func (_mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.C
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockStreamI)(nil).SetWriteDeadline), arg0)
|
||||
}
|
||||
|
||||
// ShouldSendFin mocks base method
|
||||
func (_m *MockStreamI) ShouldSendFin() bool {
|
||||
ret := _m.ctrl.Call(_m, "ShouldSendFin")
|
||||
ret0, _ := ret[0].(bool)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// ShouldSendFin indicates an expected call of ShouldSendFin
|
||||
func (_mr *MockStreamIMockRecorder) ShouldSendFin() *gomock.Call {
|
||||
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ShouldSendFin", reflect.TypeOf((*MockStreamI)(nil).ShouldSendFin))
|
||||
}
|
||||
|
||||
// StreamID mocks base method
|
||||
func (_m *MockStreamI) StreamID() protocol.StreamID {
|
||||
ret := _m.ctrl.Call(_m, "StreamID")
|
||||
|
||||
Reference in New Issue
Block a user