mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
create internal interfaces for send and receive streams
And use those for handling frames.
This commit is contained in:
parent
7a3209b3a4
commit
e802491a8f
13 changed files with 391 additions and 58 deletions
|
@ -34,15 +34,28 @@ func (m *MockStreamGetter) EXPECT() *MockStreamGetterMockRecorder {
|
|||
return m.recorder
|
||||
}
|
||||
|
||||
// GetOrOpenStream mocks base method
|
||||
func (m *MockStreamGetter) GetOrOpenStream(arg0 protocol.StreamID) (streamI, error) {
|
||||
ret := m.ctrl.Call(m, "GetOrOpenStream", arg0)
|
||||
ret0, _ := ret[0].(streamI)
|
||||
// GetOrOpenReceiveStream mocks base method
|
||||
func (m *MockStreamGetter) GetOrOpenReceiveStream(arg0 protocol.StreamID) (receiveStreamI, error) {
|
||||
ret := m.ctrl.Call(m, "GetOrOpenReceiveStream", arg0)
|
||||
ret0, _ := ret[0].(receiveStreamI)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrOpenStream indicates an expected call of GetOrOpenStream
|
||||
func (mr *MockStreamGetterMockRecorder) GetOrOpenStream(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenStream), arg0)
|
||||
// GetOrOpenReceiveStream indicates an expected call of GetOrOpenReceiveStream
|
||||
func (mr *MockStreamGetterMockRecorder) GetOrOpenReceiveStream(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenReceiveStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenReceiveStream), arg0)
|
||||
}
|
||||
|
||||
// GetOrOpenSendStream mocks base method
|
||||
func (m *MockStreamGetter) GetOrOpenSendStream(arg0 protocol.StreamID) (sendStreamI, error) {
|
||||
ret := m.ctrl.Call(m, "GetOrOpenSendStream", arg0)
|
||||
ret0, _ := ret[0].(sendStreamI)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrOpenSendStream indicates an expected call of GetOrOpenSendStream
|
||||
func (mr *MockStreamGetterMockRecorder) GetOrOpenSendStream(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenSendStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenSendStream), arg0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue