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
|
@ -15,54 +15,54 @@ import (
|
|||
wire "github.com/lucas-clemente/quic-go/internal/wire"
|
||||
)
|
||||
|
||||
// MockStreamI is a mock of StreamI interface
|
||||
// MockStreamI is a mock of StreamI interface.
|
||||
type MockStreamI struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockStreamIMockRecorder
|
||||
}
|
||||
|
||||
// MockStreamIMockRecorder is the mock recorder for MockStreamI
|
||||
// MockStreamIMockRecorder is the mock recorder for MockStreamI.
|
||||
type MockStreamIMockRecorder struct {
|
||||
mock *MockStreamI
|
||||
}
|
||||
|
||||
// NewMockStreamI creates a new mock instance
|
||||
// NewMockStreamI creates a new mock instance.
|
||||
func NewMockStreamI(ctrl *gomock.Controller) *MockStreamI {
|
||||
mock := &MockStreamI{ctrl: ctrl}
|
||||
mock.recorder = &MockStreamIMockRecorder{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 *MockStreamI) EXPECT() *MockStreamIMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// CancelRead mocks base method
|
||||
// CancelRead mocks base method.
|
||||
func (m *MockStreamI) 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 *MockStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRead", reflect.TypeOf((*MockStreamI)(nil).CancelRead), arg0)
|
||||
}
|
||||
|
||||
// CancelWrite mocks base method
|
||||
// CancelWrite mocks base method.
|
||||
func (m *MockStreamI) CancelWrite(arg0 protocol.ApplicationErrorCode) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "CancelWrite", arg0)
|
||||
}
|
||||
|
||||
// CancelWrite indicates an expected call of CancelWrite
|
||||
// CancelWrite indicates an expected call of CancelWrite.
|
||||
func (mr *MockStreamIMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelWrite", reflect.TypeOf((*MockStreamI)(nil).CancelWrite), arg0)
|
||||
}
|
||||
|
||||
// Close mocks base method
|
||||
// Close mocks base method.
|
||||
func (m *MockStreamI) Close() error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Close")
|
||||
|
@ -70,13 +70,13 @@ func (m *MockStreamI) Close() error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// Close indicates an expected call of Close
|
||||
// Close indicates an expected call of Close.
|
||||
func (mr *MockStreamIMockRecorder) Close() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStreamI)(nil).Close))
|
||||
}
|
||||
|
||||
// Context mocks base method
|
||||
// Context mocks base method.
|
||||
func (m *MockStreamI) Context() context.Context {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Context")
|
||||
|
@ -84,13 +84,13 @@ func (m *MockStreamI) Context() context.Context {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// Context indicates an expected call of Context
|
||||
// Context indicates an expected call of Context.
|
||||
func (mr *MockStreamIMockRecorder) Context() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockStreamI)(nil).Context))
|
||||
}
|
||||
|
||||
// Read mocks base method
|
||||
// Read mocks base method.
|
||||
func (m *MockStreamI) Read(arg0 []byte) (int, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Read", arg0)
|
||||
|
@ -99,13 +99,13 @@ func (m *MockStreamI) Read(arg0 []byte) (int, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Read indicates an expected call of Read
|
||||
// Read indicates an expected call of Read.
|
||||
func (mr *MockStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStreamI)(nil).Read), arg0)
|
||||
}
|
||||
|
||||
// SetDeadline mocks base method
|
||||
// SetDeadline mocks base method.
|
||||
func (m *MockStreamI) SetDeadline(arg0 time.Time) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SetDeadline", arg0)
|
||||
|
@ -113,13 +113,13 @@ func (m *MockStreamI) SetDeadline(arg0 time.Time) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// SetDeadline indicates an expected call of SetDeadline
|
||||
// SetDeadline indicates an expected call of SetDeadline.
|
||||
func (mr *MockStreamIMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDeadline", reflect.TypeOf((*MockStreamI)(nil).SetDeadline), arg0)
|
||||
}
|
||||
|
||||
// SetReadDeadline mocks base method
|
||||
// SetReadDeadline mocks base method.
|
||||
func (m *MockStreamI) SetReadDeadline(arg0 time.Time) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
|
||||
|
@ -127,13 +127,13 @@ func (m *MockStreamI) SetReadDeadline(arg0 time.Time) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// SetReadDeadline indicates an expected call of SetReadDeadline
|
||||
// SetReadDeadline indicates an expected call of SetReadDeadline.
|
||||
func (mr *MockStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockStreamI)(nil).SetReadDeadline), arg0)
|
||||
}
|
||||
|
||||
// SetWriteDeadline mocks base method
|
||||
// SetWriteDeadline mocks base method.
|
||||
func (m *MockStreamI) SetWriteDeadline(arg0 time.Time) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SetWriteDeadline", arg0)
|
||||
|
@ -141,13 +141,13 @@ func (m *MockStreamI) SetWriteDeadline(arg0 time.Time) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// SetWriteDeadline indicates an expected call of SetWriteDeadline
|
||||
// SetWriteDeadline indicates an expected call of SetWriteDeadline.
|
||||
func (mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockStreamI)(nil).SetWriteDeadline), arg0)
|
||||
}
|
||||
|
||||
// StreamID mocks base method
|
||||
// StreamID mocks base method.
|
||||
func (m *MockStreamI) StreamID() protocol.StreamID {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "StreamID")
|
||||
|
@ -155,13 +155,13 @@ func (m *MockStreamI) StreamID() protocol.StreamID {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// StreamID indicates an expected call of StreamID
|
||||
// StreamID indicates an expected call of StreamID.
|
||||
func (mr *MockStreamIMockRecorder) StreamID() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockStreamI)(nil).StreamID))
|
||||
}
|
||||
|
||||
// Write mocks base method
|
||||
// Write mocks base method.
|
||||
func (m *MockStreamI) Write(arg0 []byte) (int, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Write", arg0)
|
||||
|
@ -170,25 +170,25 @@ func (m *MockStreamI) Write(arg0 []byte) (int, error) {
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Write indicates an expected call of Write
|
||||
// Write indicates an expected call of Write.
|
||||
func (mr *MockStreamIMockRecorder) Write(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockStreamI)(nil).Write), arg0)
|
||||
}
|
||||
|
||||
// closeForShutdown mocks base method
|
||||
// closeForShutdown mocks base method.
|
||||
func (m *MockStreamI) 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 *MockStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockStreamI)(nil).closeForShutdown), arg0)
|
||||
}
|
||||
|
||||
// getWindowUpdate mocks base method
|
||||
// getWindowUpdate mocks base method.
|
||||
func (m *MockStreamI) getWindowUpdate() protocol.ByteCount {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "getWindowUpdate")
|
||||
|
@ -196,25 +196,25 @@ func (m *MockStreamI) getWindowUpdate() protocol.ByteCount {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// getWindowUpdate indicates an expected call of getWindowUpdate
|
||||
// getWindowUpdate indicates an expected call of getWindowUpdate.
|
||||
func (mr *MockStreamIMockRecorder) getWindowUpdate() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getWindowUpdate", reflect.TypeOf((*MockStreamI)(nil).getWindowUpdate))
|
||||
}
|
||||
|
||||
// handleMaxStreamDataFrame mocks base method
|
||||
// handleMaxStreamDataFrame mocks base method.
|
||||
func (m *MockStreamI) handleMaxStreamDataFrame(arg0 *wire.MaxStreamDataFrame) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "handleMaxStreamDataFrame", arg0)
|
||||
}
|
||||
|
||||
// handleMaxStreamDataFrame indicates an expected call of handleMaxStreamDataFrame
|
||||
// handleMaxStreamDataFrame indicates an expected call of handleMaxStreamDataFrame.
|
||||
func (mr *MockStreamIMockRecorder) handleMaxStreamDataFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleMaxStreamDataFrame", reflect.TypeOf((*MockStreamI)(nil).handleMaxStreamDataFrame), arg0)
|
||||
}
|
||||
|
||||
// handleResetStreamFrame mocks base method
|
||||
// handleResetStreamFrame mocks base method.
|
||||
func (m *MockStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "handleResetStreamFrame", arg0)
|
||||
|
@ -222,25 +222,25 @@ func (m *MockStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error
|
|||
return ret0
|
||||
}
|
||||
|
||||
// handleResetStreamFrame indicates an expected call of handleResetStreamFrame
|
||||
// handleResetStreamFrame indicates an expected call of handleResetStreamFrame.
|
||||
func (mr *MockStreamIMockRecorder) handleResetStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleResetStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleResetStreamFrame), arg0)
|
||||
}
|
||||
|
||||
// handleStopSendingFrame mocks base method
|
||||
// handleStopSendingFrame mocks base method.
|
||||
func (m *MockStreamI) handleStopSendingFrame(arg0 *wire.StopSendingFrame) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "handleStopSendingFrame", arg0)
|
||||
}
|
||||
|
||||
// handleStopSendingFrame indicates an expected call of handleStopSendingFrame
|
||||
// handleStopSendingFrame indicates an expected call of handleStopSendingFrame.
|
||||
func (mr *MockStreamIMockRecorder) handleStopSendingFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStopSendingFrame", reflect.TypeOf((*MockStreamI)(nil).handleStopSendingFrame), arg0)
|
||||
}
|
||||
|
||||
// handleStreamFrame mocks base method
|
||||
// handleStreamFrame mocks base method.
|
||||
func (m *MockStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
|
||||
|
@ -248,13 +248,13 @@ func (m *MockStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// handleStreamFrame indicates an expected call of handleStreamFrame
|
||||
// handleStreamFrame indicates an expected call of handleStreamFrame.
|
||||
func (mr *MockStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleStreamFrame), arg0)
|
||||
}
|
||||
|
||||
// hasData mocks base method
|
||||
// hasData mocks base method.
|
||||
func (m *MockStreamI) hasData() bool {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "hasData")
|
||||
|
@ -262,13 +262,13 @@ func (m *MockStreamI) hasData() bool {
|
|||
return ret0
|
||||
}
|
||||
|
||||
// hasData indicates an expected call of hasData
|
||||
// hasData indicates an expected call of hasData.
|
||||
func (mr *MockStreamIMockRecorder) hasData() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "hasData", reflect.TypeOf((*MockStreamI)(nil).hasData))
|
||||
}
|
||||
|
||||
// popStreamFrame mocks base method
|
||||
// popStreamFrame mocks base method.
|
||||
func (m *MockStreamI) popStreamFrame(arg0 protocol.ByteCount) (*ackhandler.Frame, bool) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "popStreamFrame", arg0)
|
||||
|
@ -277,7 +277,7 @@ func (m *MockStreamI) popStreamFrame(arg0 protocol.ByteCount) (*ackhandler.Frame
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// popStreamFrame indicates an expected call of popStreamFrame
|
||||
// popStreamFrame indicates an expected call of popStreamFrame.
|
||||
func (mr *MockStreamIMockRecorder) popStreamFrame(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "popStreamFrame", reflect.TypeOf((*MockStreamI)(nil).popStreamFrame), arg0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue