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,42 +13,42 @@ import (
|
|||
wire "github.com/lucas-clemente/quic-go/internal/wire"
|
||||
)
|
||||
|
||||
// MockReceiveStreamI is a mock of ReceiveStreamI interface
|
||||
// MockReceiveStreamI is a mock of ReceiveStreamI interface.
|
||||
type MockReceiveStreamI struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockReceiveStreamIMockRecorder
|
||||
}
|
||||
|
||||
// MockReceiveStreamIMockRecorder is the mock recorder for MockReceiveStreamI
|
||||
// MockReceiveStreamIMockRecorder is the mock recorder for MockReceiveStreamI.
|
||||
type MockReceiveStreamIMockRecorder struct {
|
||||
mock *MockReceiveStreamI
|
||||
}
|
||||
|
||||
// NewMockReceiveStreamI creates a new mock instance
|
||||
// NewMockReceiveStreamI creates a new mock instance.
|
||||
func NewMockReceiveStreamI(ctrl *gomock.Controller) *MockReceiveStreamI {
|
||||
mock := &MockReceiveStreamI{ctrl: ctrl}
|
||||
mock.recorder = &MockReceiveStreamIMockRecorder{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 *MockReceiveStreamI) EXPECT() *MockReceiveStreamIMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// CancelRead mocks base method
|
||||
// CancelRead mocks base method.
|
||||
func (m *MockReceiveStreamI) CancelRead(arg0 protocol.ApplicationErrorCode) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "CancelRead", arg0)
|
||||
}
|
||||
|
||||
// CancelRead indicates an expected call of CancelRead
|
||||
// CancelRead indicates an expected call of CancelRead.
|
||||
func (mr *MockReceiveStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRead", reflect.TypeOf((*MockReceiveStreamI)(nil).CancelRead), arg0)
|
||||
}
|
||||
|
||||
// Read mocks base method
|
||||
// Read mocks base method.
|
||||
func (m *MockReceiveStreamI) Read(arg0 []byte) (int, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Read", arg0)
|
||||
|
@ -57,13 +57,13 @@ func (m *MockReceiveStreamI) Read(arg0 []byte) (int, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Read indicates an expected call of Read
|
||||
// Read indicates an expected call of Read.
|
||||
func (mr *MockReceiveStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReceiveStreamI)(nil).Read), arg0)
|
||||
}
|
||||
|
||||
// SetReadDeadline mocks base method
|
||||
// SetReadDeadline mocks base method.
|
||||
func (m *MockReceiveStreamI) SetReadDeadline(arg0 time.Time) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
|
||||
|
@ -71,13 +71,13 @@ func (m *MockReceiveStreamI) SetReadDeadline(arg0 time.Time) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// SetReadDeadline indicates an expected call of SetReadDeadline
|
||||
// SetReadDeadline indicates an expected call of SetReadDeadline.
|
||||
func (mr *MockReceiveStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockReceiveStreamI)(nil).SetReadDeadline), arg0)
|
||||
}
|
||||
|
||||
// StreamID mocks base method
|
||||
// StreamID mocks base method.
|
||||
func (m *MockReceiveStreamI) StreamID() protocol.StreamID {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "StreamID")
|
||||
|
@ -85,25 +85,25 @@ func (m *MockReceiveStreamI) StreamID() protocol.StreamID {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// StreamID indicates an expected call of StreamID
|
||||
// StreamID indicates an expected call of StreamID.
|
||||
func (mr *MockReceiveStreamIMockRecorder) StreamID() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockReceiveStreamI)(nil).StreamID))
|
||||
}
|
||||
|
||||
// closeForShutdown mocks base method
|
||||
// closeForShutdown mocks base method.
|
||||
func (m *MockReceiveStreamI) closeForShutdown(arg0 error) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "closeForShutdown", arg0)
|
||||
}
|
||||
|
||||
// closeForShutdown indicates an expected call of closeForShutdown
|
||||
// closeForShutdown indicates an expected call of closeForShutdown.
|
||||
func (mr *MockReceiveStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockReceiveStreamI)(nil).closeForShutdown), arg0)
|
||||
}
|
||||
|
||||
// getWindowUpdate mocks base method
|
||||
// getWindowUpdate mocks base method.
|
||||
func (m *MockReceiveStreamI) getWindowUpdate() protocol.ByteCount {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "getWindowUpdate")
|
||||
|
@ -111,13 +111,13 @@ func (m *MockReceiveStreamI) getWindowUpdate() protocol.ByteCount {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// getWindowUpdate indicates an expected call of getWindowUpdate
|
||||
// getWindowUpdate indicates an expected call of getWindowUpdate.
|
||||
func (mr *MockReceiveStreamIMockRecorder) getWindowUpdate() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getWindowUpdate", reflect.TypeOf((*MockReceiveStreamI)(nil).getWindowUpdate))
|
||||
}
|
||||
|
||||
// handleResetStreamFrame mocks base method
|
||||
// handleResetStreamFrame mocks base method.
|
||||
func (m *MockReceiveStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "handleResetStreamFrame", arg0)
|
||||
|
@ -125,13 +125,13 @@ func (m *MockReceiveStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame)
|
|||
return ret0
|
||||
}
|
||||
|
||||
// handleResetStreamFrame indicates an expected call of handleResetStreamFrame
|
||||
// handleResetStreamFrame indicates an expected call of handleResetStreamFrame.
|
||||
func (mr *MockReceiveStreamIMockRecorder) handleResetStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleResetStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleResetStreamFrame), arg0)
|
||||
}
|
||||
|
||||
// handleStreamFrame mocks base method
|
||||
// handleStreamFrame mocks base method.
|
||||
func (m *MockReceiveStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
|
||||
|
@ -139,7 +139,7 @@ func (m *MockReceiveStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// handleStreamFrame indicates an expected call of handleStreamFrame
|
||||
// handleStreamFrame indicates an expected call of handleStreamFrame.
|
||||
func (mr *MockReceiveStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleStreamFrame), arg0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue