mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
update gomock to v1.5.0
This commit is contained in:
parent
972a08c40d
commit
383f1a6e89
44 changed files with 781 additions and 771 deletions
|
@ -13,30 +13,30 @@ import (
|
|||
wire "github.com/lucas-clemente/quic-go/internal/wire"
|
||||
)
|
||||
|
||||
// MockStreamManager is a mock of StreamManager interface
|
||||
// MockStreamManager is a mock of StreamManager interface.
|
||||
type MockStreamManager struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockStreamManagerMockRecorder
|
||||
}
|
||||
|
||||
// MockStreamManagerMockRecorder is the mock recorder for MockStreamManager
|
||||
// MockStreamManagerMockRecorder is the mock recorder for MockStreamManager.
|
||||
type MockStreamManagerMockRecorder struct {
|
||||
mock *MockStreamManager
|
||||
}
|
||||
|
||||
// NewMockStreamManager creates a new mock instance
|
||||
// NewMockStreamManager creates a new mock instance.
|
||||
func NewMockStreamManager(ctrl *gomock.Controller) *MockStreamManager {
|
||||
mock := &MockStreamManager{ctrl: ctrl}
|
||||
mock.recorder = &MockStreamManagerMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockStreamManager) EXPECT() *MockStreamManagerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// AcceptStream mocks base method
|
||||
// AcceptStream mocks base method.
|
||||
func (m *MockStreamManager) AcceptStream(arg0 context.Context) (Stream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "AcceptStream", arg0)
|
||||
|
@ -45,13 +45,13 @@ func (m *MockStreamManager) AcceptStream(arg0 context.Context) (Stream, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// AcceptStream indicates an expected call of AcceptStream
|
||||
// AcceptStream indicates an expected call of AcceptStream.
|
||||
func (mr *MockStreamManagerMockRecorder) AcceptStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptStream", reflect.TypeOf((*MockStreamManager)(nil).AcceptStream), arg0)
|
||||
}
|
||||
|
||||
// AcceptUniStream mocks base method
|
||||
// AcceptUniStream mocks base method.
|
||||
func (m *MockStreamManager) AcceptUniStream(arg0 context.Context) (ReceiveStream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "AcceptUniStream", arg0)
|
||||
|
@ -60,25 +60,25 @@ func (m *MockStreamManager) AcceptUniStream(arg0 context.Context) (ReceiveStream
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// AcceptUniStream indicates an expected call of AcceptUniStream
|
||||
// AcceptUniStream indicates an expected call of AcceptUniStream.
|
||||
func (mr *MockStreamManagerMockRecorder) AcceptUniStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptUniStream", reflect.TypeOf((*MockStreamManager)(nil).AcceptUniStream), arg0)
|
||||
}
|
||||
|
||||
// CloseWithError mocks base method
|
||||
// CloseWithError mocks base method.
|
||||
func (m *MockStreamManager) CloseWithError(arg0 error) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "CloseWithError", arg0)
|
||||
}
|
||||
|
||||
// CloseWithError indicates an expected call of CloseWithError
|
||||
// CloseWithError indicates an expected call of CloseWithError.
|
||||
func (mr *MockStreamManagerMockRecorder) CloseWithError(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseWithError", reflect.TypeOf((*MockStreamManager)(nil).CloseWithError), arg0)
|
||||
}
|
||||
|
||||
// DeleteStream mocks base method
|
||||
// DeleteStream mocks base method.
|
||||
func (m *MockStreamManager) DeleteStream(arg0 protocol.StreamID) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DeleteStream", arg0)
|
||||
|
@ -86,13 +86,13 @@ func (m *MockStreamManager) DeleteStream(arg0 protocol.StreamID) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// DeleteStream indicates an expected call of DeleteStream
|
||||
// DeleteStream indicates an expected call of DeleteStream.
|
||||
func (mr *MockStreamManagerMockRecorder) DeleteStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStream", reflect.TypeOf((*MockStreamManager)(nil).DeleteStream), arg0)
|
||||
}
|
||||
|
||||
// GetOrOpenReceiveStream mocks base method
|
||||
// GetOrOpenReceiveStream mocks base method.
|
||||
func (m *MockStreamManager) GetOrOpenReceiveStream(arg0 protocol.StreamID) (receiveStreamI, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrOpenReceiveStream", arg0)
|
||||
|
@ -101,13 +101,13 @@ func (m *MockStreamManager) GetOrOpenReceiveStream(arg0 protocol.StreamID) (rece
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrOpenReceiveStream indicates an expected call of GetOrOpenReceiveStream
|
||||
// GetOrOpenReceiveStream indicates an expected call of GetOrOpenReceiveStream.
|
||||
func (mr *MockStreamManagerMockRecorder) GetOrOpenReceiveStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenReceiveStream", reflect.TypeOf((*MockStreamManager)(nil).GetOrOpenReceiveStream), arg0)
|
||||
}
|
||||
|
||||
// GetOrOpenSendStream mocks base method
|
||||
// GetOrOpenSendStream mocks base method.
|
||||
func (m *MockStreamManager) GetOrOpenSendStream(arg0 protocol.StreamID) (sendStreamI, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrOpenSendStream", arg0)
|
||||
|
@ -116,13 +116,13 @@ func (m *MockStreamManager) GetOrOpenSendStream(arg0 protocol.StreamID) (sendStr
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrOpenSendStream indicates an expected call of GetOrOpenSendStream
|
||||
// GetOrOpenSendStream indicates an expected call of GetOrOpenSendStream.
|
||||
func (mr *MockStreamManagerMockRecorder) GetOrOpenSendStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenSendStream", reflect.TypeOf((*MockStreamManager)(nil).GetOrOpenSendStream), arg0)
|
||||
}
|
||||
|
||||
// HandleMaxStreamsFrame mocks base method
|
||||
// HandleMaxStreamsFrame mocks base method.
|
||||
func (m *MockStreamManager) HandleMaxStreamsFrame(arg0 *wire.MaxStreamsFrame) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "HandleMaxStreamsFrame", arg0)
|
||||
|
@ -130,13 +130,13 @@ func (m *MockStreamManager) HandleMaxStreamsFrame(arg0 *wire.MaxStreamsFrame) er
|
|||
return ret0
|
||||
}
|
||||
|
||||
// HandleMaxStreamsFrame indicates an expected call of HandleMaxStreamsFrame
|
||||
// HandleMaxStreamsFrame indicates an expected call of HandleMaxStreamsFrame.
|
||||
func (mr *MockStreamManagerMockRecorder) HandleMaxStreamsFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMaxStreamsFrame", reflect.TypeOf((*MockStreamManager)(nil).HandleMaxStreamsFrame), arg0)
|
||||
}
|
||||
|
||||
// OpenStream mocks base method
|
||||
// OpenStream mocks base method.
|
||||
func (m *MockStreamManager) OpenStream() (Stream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "OpenStream")
|
||||
|
@ -145,13 +145,13 @@ func (m *MockStreamManager) OpenStream() (Stream, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// OpenStream indicates an expected call of OpenStream
|
||||
// OpenStream indicates an expected call of OpenStream.
|
||||
func (mr *MockStreamManagerMockRecorder) OpenStream() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStream", reflect.TypeOf((*MockStreamManager)(nil).OpenStream))
|
||||
}
|
||||
|
||||
// OpenStreamSync mocks base method
|
||||
// OpenStreamSync mocks base method.
|
||||
func (m *MockStreamManager) OpenStreamSync(arg0 context.Context) (Stream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "OpenStreamSync", arg0)
|
||||
|
@ -160,13 +160,13 @@ func (m *MockStreamManager) OpenStreamSync(arg0 context.Context) (Stream, error)
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// OpenStreamSync indicates an expected call of OpenStreamSync
|
||||
// OpenStreamSync indicates an expected call of OpenStreamSync.
|
||||
func (mr *MockStreamManagerMockRecorder) OpenStreamSync(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamSync", reflect.TypeOf((*MockStreamManager)(nil).OpenStreamSync), arg0)
|
||||
}
|
||||
|
||||
// OpenUniStream mocks base method
|
||||
// OpenUniStream mocks base method.
|
||||
func (m *MockStreamManager) OpenUniStream() (SendStream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "OpenUniStream")
|
||||
|
@ -175,13 +175,13 @@ func (m *MockStreamManager) OpenUniStream() (SendStream, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// OpenUniStream indicates an expected call of OpenUniStream
|
||||
// OpenUniStream indicates an expected call of OpenUniStream.
|
||||
func (mr *MockStreamManagerMockRecorder) OpenUniStream() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStream", reflect.TypeOf((*MockStreamManager)(nil).OpenUniStream))
|
||||
}
|
||||
|
||||
// OpenUniStreamSync mocks base method
|
||||
// OpenUniStreamSync mocks base method.
|
||||
func (m *MockStreamManager) OpenUniStreamSync(arg0 context.Context) (SendStream, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "OpenUniStreamSync", arg0)
|
||||
|
@ -190,19 +190,19 @@ func (m *MockStreamManager) OpenUniStreamSync(arg0 context.Context) (SendStream,
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// OpenUniStreamSync indicates an expected call of OpenUniStreamSync
|
||||
// OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
|
||||
func (mr *MockStreamManagerMockRecorder) OpenUniStreamSync(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStreamSync", reflect.TypeOf((*MockStreamManager)(nil).OpenUniStreamSync), arg0)
|
||||
}
|
||||
|
||||
// UpdateLimits mocks base method
|
||||
// UpdateLimits mocks base method.
|
||||
func (m *MockStreamManager) UpdateLimits(arg0 *wire.TransportParameters) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "UpdateLimits", arg0)
|
||||
}
|
||||
|
||||
// UpdateLimits indicates an expected call of UpdateLimits
|
||||
// UpdateLimits indicates an expected call of UpdateLimits.
|
||||
func (mr *MockStreamManagerMockRecorder) UpdateLimits(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLimits", reflect.TypeOf((*MockStreamManager)(nil).UpdateLimits), arg0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue