forked from quic-go/quic-go
update gomock to v1.5.0
This commit is contained in:
@@ -11,54 +11,54 @@ import (
|
||||
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockConnectionFlowController is a mock of ConnectionFlowController interface
|
||||
// MockConnectionFlowController is a mock of ConnectionFlowController interface.
|
||||
type MockConnectionFlowController struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockConnectionFlowControllerMockRecorder
|
||||
}
|
||||
|
||||
// MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController
|
||||
// MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController.
|
||||
type MockConnectionFlowControllerMockRecorder struct {
|
||||
mock *MockConnectionFlowController
|
||||
}
|
||||
|
||||
// NewMockConnectionFlowController creates a new mock instance
|
||||
// NewMockConnectionFlowController creates a new mock instance.
|
||||
func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlowController {
|
||||
mock := &MockConnectionFlowController{ctrl: ctrl}
|
||||
mock.recorder = &MockConnectionFlowControllerMockRecorder{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 *MockConnectionFlowController) EXPECT() *MockConnectionFlowControllerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// AddBytesRead mocks base method
|
||||
// AddBytesRead mocks base method.
|
||||
func (m *MockConnectionFlowController) AddBytesRead(arg0 protocol.ByteCount) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "AddBytesRead", arg0)
|
||||
}
|
||||
|
||||
// AddBytesRead indicates an expected call of AddBytesRead
|
||||
// AddBytesRead indicates an expected call of AddBytesRead.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0)
|
||||
}
|
||||
|
||||
// AddBytesSent mocks base method
|
||||
// AddBytesSent mocks base method.
|
||||
func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "AddBytesSent", arg0)
|
||||
}
|
||||
|
||||
// AddBytesSent indicates an expected call of AddBytesSent
|
||||
// AddBytesSent indicates an expected call of AddBytesSent.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0)
|
||||
}
|
||||
|
||||
// GetWindowUpdate mocks base method
|
||||
// GetWindowUpdate mocks base method.
|
||||
func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetWindowUpdate")
|
||||
@@ -66,13 +66,13 @@ func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetWindowUpdate indicates an expected call of GetWindowUpdate
|
||||
// GetWindowUpdate indicates an expected call of GetWindowUpdate.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate))
|
||||
}
|
||||
|
||||
// IsNewlyBlocked mocks base method
|
||||
// IsNewlyBlocked mocks base method.
|
||||
func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "IsNewlyBlocked")
|
||||
@@ -81,13 +81,13 @@ func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCoun
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// IsNewlyBlocked indicates an expected call of IsNewlyBlocked
|
||||
// IsNewlyBlocked indicates an expected call of IsNewlyBlocked.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked))
|
||||
}
|
||||
|
||||
// SendWindowSize mocks base method
|
||||
// SendWindowSize mocks base method.
|
||||
func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SendWindowSize")
|
||||
@@ -95,19 +95,19 @@ func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
|
||||
return ret0
|
||||
}
|
||||
|
||||
// SendWindowSize indicates an expected call of SendWindowSize
|
||||
// SendWindowSize indicates an expected call of SendWindowSize.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize))
|
||||
}
|
||||
|
||||
// UpdateSendWindow mocks base method
|
||||
// UpdateSendWindow mocks base method.
|
||||
func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "UpdateSendWindow", arg0)
|
||||
}
|
||||
|
||||
// UpdateSendWindow indicates an expected call of UpdateSendWindow
|
||||
// UpdateSendWindow indicates an expected call of UpdateSendWindow.
|
||||
func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0)
|
||||
|
||||
Reference in New Issue
Block a user