mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
don't queue the complete window update, but only the stream ID
This commit is contained in:
parent
15ab0ae443
commit
d195085f65
13 changed files with 324 additions and 77 deletions
48
mock_stream_getter_test.go
Normal file
48
mock_stream_getter_test.go
Normal file
|
@ -0,0 +1,48 @@
|
|||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/lucas-clemente/quic-go (interfaces: StreamGetter)
|
||||
|
||||
// Package quic is a generated GoMock package.
|
||||
package quic
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockStreamGetter is a mock of StreamGetter interface
|
||||
type MockStreamGetter struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockStreamGetterMockRecorder
|
||||
}
|
||||
|
||||
// MockStreamGetterMockRecorder is the mock recorder for MockStreamGetter
|
||||
type MockStreamGetterMockRecorder struct {
|
||||
mock *MockStreamGetter
|
||||
}
|
||||
|
||||
// NewMockStreamGetter creates a new mock instance
|
||||
func NewMockStreamGetter(ctrl *gomock.Controller) *MockStreamGetter {
|
||||
mock := &MockStreamGetter{ctrl: ctrl}
|
||||
mock.recorder = &MockStreamGetterMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
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)
|
||||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue