regenerate all gomocks after gomock output format was changed

No functional change expected.
This commit is contained in:
Marten Seemann 2017-12-21 17:07:56 +07:00
parent 552be1f403
commit d4f904b55b
9 changed files with 271 additions and 262 deletions

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController) // Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController)
// Package mocks is a generated GoMock package.
package mocks package mocks
import ( import (
@ -29,73 +30,73 @@ func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlo
} }
// 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 { func (m *MockConnectionFlowController) EXPECT() *MockConnectionFlowControllerMockRecorder {
return _m.recorder return m.recorder
} }
// AddBytesRead mocks base method // AddBytesRead mocks base method
func (_m *MockConnectionFlowController) AddBytesRead(_param0 protocol.ByteCount) { func (m *MockConnectionFlowController) AddBytesRead(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "AddBytesRead", _param0) 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 { func (mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0) 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(_param0 protocol.ByteCount) { func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "AddBytesSent", _param0) 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 { func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0) 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 { func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
ret := _m.ctrl.Call(_m, "GetWindowUpdate") ret := m.ctrl.Call(m, "GetWindowUpdate")
ret0, _ := ret[0].(protocol.ByteCount) ret0, _ := ret[0].(protocol.ByteCount)
return ret0 return ret0
} }
// GetWindowUpdate indicates an expected call of GetWindowUpdate // GetWindowUpdate indicates an expected call of GetWindowUpdate
func (_mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call { func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate)) 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) { func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
ret := _m.ctrl.Call(_m, "IsNewlyBlocked") ret := m.ctrl.Call(m, "IsNewlyBlocked")
ret0, _ := ret[0].(bool) ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(protocol.ByteCount) ret1, _ := ret[1].(protocol.ByteCount)
return ret0, ret1 return ret0, ret1
} }
// IsNewlyBlocked indicates an expected call of IsNewlyBlocked // IsNewlyBlocked indicates an expected call of IsNewlyBlocked
func (_mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call { func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked)) 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 { func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
ret := _m.ctrl.Call(_m, "SendWindowSize") ret := m.ctrl.Call(m, "SendWindowSize")
ret0, _ := ret[0].(protocol.ByteCount) ret0, _ := ret[0].(protocol.ByteCount)
return ret0 return ret0
} }
// SendWindowSize indicates an expected call of SendWindowSize // SendWindowSize indicates an expected call of SendWindowSize
func (_mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call { func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize)) 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(_param0 protocol.ByteCount) { func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "UpdateSendWindow", _param0) 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 { func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/internal/crypto (interfaces: AEAD) // Source: github.com/lucas-clemente/quic-go/internal/crypto (interfaces: AEAD)
// Package mockcrypto is a generated GoMock package.
package mockcrypto package mockcrypto
import ( import (
@ -29,43 +30,43 @@ func NewMockAEAD(ctrl *gomock.Controller) *MockAEAD {
} }
// 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 *MockAEAD) EXPECT() *MockAEADMockRecorder { func (m *MockAEAD) EXPECT() *MockAEADMockRecorder {
return _m.recorder return m.recorder
} }
// Open mocks base method // Open mocks base method
func (_m *MockAEAD) Open(_param0 []byte, _param1 []byte, _param2 protocol.PacketNumber, _param3 []byte) ([]byte, error) { func (m *MockAEAD) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) {
ret := _m.ctrl.Call(_m, "Open", _param0, _param1, _param2, _param3) ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]byte) ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error) ret1, _ := ret[1].(error)
return ret0, ret1 return ret0, ret1
} }
// Open indicates an expected call of Open // Open indicates an expected call of Open
func (_mr *MockAEADMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { func (mr *MockAEADMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Open", reflect.TypeOf((*MockAEAD)(nil).Open), arg0, arg1, arg2, arg3) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockAEAD)(nil).Open), arg0, arg1, arg2, arg3)
} }
// Overhead mocks base method // Overhead mocks base method
func (_m *MockAEAD) Overhead() int { func (m *MockAEAD) Overhead() int {
ret := _m.ctrl.Call(_m, "Overhead") ret := m.ctrl.Call(m, "Overhead")
ret0, _ := ret[0].(int) ret0, _ := ret[0].(int)
return ret0 return ret0
} }
// Overhead indicates an expected call of Overhead // Overhead indicates an expected call of Overhead
func (_mr *MockAEADMockRecorder) Overhead() *gomock.Call { func (mr *MockAEADMockRecorder) Overhead() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Overhead", reflect.TypeOf((*MockAEAD)(nil).Overhead)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockAEAD)(nil).Overhead))
} }
// Seal mocks base method // Seal mocks base method
func (_m *MockAEAD) Seal(_param0 []byte, _param1 []byte, _param2 protocol.PacketNumber, _param3 []byte) []byte { func (m *MockAEAD) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte {
ret := _m.ctrl.Call(_m, "Seal", _param0, _param1, _param2, _param3) ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]byte) ret0, _ := ret[0].([]byte)
return ret0 return ret0
} }
// Seal indicates an expected call of Seal // Seal indicates an expected call of Seal
func (_mr *MockAEADMockRecorder) Seal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { func (mr *MockAEADMockRecorder) Seal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Seal", reflect.TypeOf((*MockAEAD)(nil).Seal), arg0, arg1, arg2, arg3) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockAEAD)(nil).Seal), arg0, arg1, arg2, arg3)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: MintTLS) // Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: MintTLS)
// Package mockhandshake is a generated GoMock package.
package mockhandshake package mockhandshake
import ( import (
@ -30,77 +31,77 @@ func NewMockMintTLS(ctrl *gomock.Controller) *MockMintTLS {
} }
// 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 *MockMintTLS) EXPECT() *MockMintTLSMockRecorder { func (m *MockMintTLS) EXPECT() *MockMintTLSMockRecorder {
return _m.recorder return m.recorder
} }
// ComputeExporter mocks base method // ComputeExporter mocks base method
func (_m *MockMintTLS) ComputeExporter(_param0 string, _param1 []byte, _param2 int) ([]byte, error) { func (m *MockMintTLS) ComputeExporter(arg0 string, arg1 []byte, arg2 int) ([]byte, error) {
ret := _m.ctrl.Call(_m, "ComputeExporter", _param0, _param1, _param2) ret := m.ctrl.Call(m, "ComputeExporter", arg0, arg1, arg2)
ret0, _ := ret[0].([]byte) ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error) ret1, _ := ret[1].(error)
return ret0, ret1 return ret0, ret1
} }
// ComputeExporter indicates an expected call of ComputeExporter // ComputeExporter indicates an expected call of ComputeExporter
func (_mr *MockMintTLSMockRecorder) ComputeExporter(arg0, arg1, arg2 interface{}) *gomock.Call { func (mr *MockMintTLSMockRecorder) ComputeExporter(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ComputeExporter", reflect.TypeOf((*MockMintTLS)(nil).ComputeExporter), arg0, arg1, arg2) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComputeExporter", reflect.TypeOf((*MockMintTLS)(nil).ComputeExporter), arg0, arg1, arg2)
} }
// GetCipherSuite mocks base method // GetCipherSuite mocks base method
func (_m *MockMintTLS) GetCipherSuite() mint.CipherSuiteParams { func (m *MockMintTLS) GetCipherSuite() mint.CipherSuiteParams {
ret := _m.ctrl.Call(_m, "GetCipherSuite") ret := m.ctrl.Call(m, "GetCipherSuite")
ret0, _ := ret[0].(mint.CipherSuiteParams) ret0, _ := ret[0].(mint.CipherSuiteParams)
return ret0 return ret0
} }
// GetCipherSuite indicates an expected call of GetCipherSuite // GetCipherSuite indicates an expected call of GetCipherSuite
func (_mr *MockMintTLSMockRecorder) GetCipherSuite() *gomock.Call { func (mr *MockMintTLSMockRecorder) GetCipherSuite() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetCipherSuite", reflect.TypeOf((*MockMintTLS)(nil).GetCipherSuite)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCipherSuite", reflect.TypeOf((*MockMintTLS)(nil).GetCipherSuite))
} }
// Handshake mocks base method // Handshake mocks base method
func (_m *MockMintTLS) Handshake() mint.Alert { func (m *MockMintTLS) Handshake() mint.Alert {
ret := _m.ctrl.Call(_m, "Handshake") ret := m.ctrl.Call(m, "Handshake")
ret0, _ := ret[0].(mint.Alert) ret0, _ := ret[0].(mint.Alert)
return ret0 return ret0
} }
// Handshake indicates an expected call of Handshake // Handshake indicates an expected call of Handshake
func (_mr *MockMintTLSMockRecorder) Handshake() *gomock.Call { func (mr *MockMintTLSMockRecorder) Handshake() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Handshake", reflect.TypeOf((*MockMintTLS)(nil).Handshake)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handshake", reflect.TypeOf((*MockMintTLS)(nil).Handshake))
} }
// SetCryptoStream mocks base method // SetCryptoStream mocks base method
func (_m *MockMintTLS) SetCryptoStream(_param0 io.ReadWriter) { func (m *MockMintTLS) SetCryptoStream(arg0 io.ReadWriter) {
_m.ctrl.Call(_m, "SetCryptoStream", _param0) m.ctrl.Call(m, "SetCryptoStream", arg0)
} }
// SetCryptoStream indicates an expected call of SetCryptoStream // SetCryptoStream indicates an expected call of SetCryptoStream
func (_mr *MockMintTLSMockRecorder) SetCryptoStream(arg0 interface{}) *gomock.Call { func (mr *MockMintTLSMockRecorder) SetCryptoStream(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetCryptoStream", reflect.TypeOf((*MockMintTLS)(nil).SetCryptoStream), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCryptoStream", reflect.TypeOf((*MockMintTLS)(nil).SetCryptoStream), arg0)
} }
// SetExtensionHandler mocks base method // SetExtensionHandler mocks base method
func (_m *MockMintTLS) SetExtensionHandler(_param0 mint.AppExtensionHandler) error { func (m *MockMintTLS) SetExtensionHandler(arg0 mint.AppExtensionHandler) error {
ret := _m.ctrl.Call(_m, "SetExtensionHandler", _param0) ret := m.ctrl.Call(m, "SetExtensionHandler", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// SetExtensionHandler indicates an expected call of SetExtensionHandler // SetExtensionHandler indicates an expected call of SetExtensionHandler
func (_mr *MockMintTLSMockRecorder) SetExtensionHandler(arg0 interface{}) *gomock.Call { func (mr *MockMintTLSMockRecorder) SetExtensionHandler(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetExtensionHandler", reflect.TypeOf((*MockMintTLS)(nil).SetExtensionHandler), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExtensionHandler", reflect.TypeOf((*MockMintTLS)(nil).SetExtensionHandler), arg0)
} }
// State mocks base method // State mocks base method
func (_m *MockMintTLS) State() mint.State { func (m *MockMintTLS) State() mint.State {
ret := _m.ctrl.Call(_m, "State") ret := m.ctrl.Call(m, "State")
ret0, _ := ret[0].(mint.State) ret0, _ := ret[0].(mint.State)
return ret0 return ret0
} }
// State indicates an expected call of State // State indicates an expected call of State
func (_mr *MockMintTLSMockRecorder) State() *gomock.Call { func (mr *MockMintTLSMockRecorder) State() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "State", reflect.TypeOf((*MockMintTLS)(nil).State)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockMintTLS)(nil).State))
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/ackhandler (interfaces: ReceivedPacketHandler) // Source: github.com/lucas-clemente/quic-go/ackhandler (interfaces: ReceivedPacketHandler)
// Package mocks is a generated GoMock package.
package mocks package mocks
import ( import (
@ -31,52 +32,52 @@ func NewMockReceivedPacketHandler(ctrl *gomock.Controller) *MockReceivedPacketHa
} }
// 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 *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder { func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder {
return _m.recorder return m.recorder
} }
// GetAckFrame mocks base method // GetAckFrame mocks base method
func (_m *MockReceivedPacketHandler) GetAckFrame() *wire.AckFrame { func (m *MockReceivedPacketHandler) GetAckFrame() *wire.AckFrame {
ret := _m.ctrl.Call(_m, "GetAckFrame") ret := m.ctrl.Call(m, "GetAckFrame")
ret0, _ := ret[0].(*wire.AckFrame) ret0, _ := ret[0].(*wire.AckFrame)
return ret0 return ret0
} }
// GetAckFrame indicates an expected call of GetAckFrame // GetAckFrame indicates an expected call of GetAckFrame
func (_mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame() *gomock.Call { func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame))
} }
// GetAlarmTimeout mocks base method // GetAlarmTimeout mocks base method
func (_m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time { func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time {
ret := _m.ctrl.Call(_m, "GetAlarmTimeout") ret := m.ctrl.Call(m, "GetAlarmTimeout")
ret0, _ := ret[0].(time.Time) ret0, _ := ret[0].(time.Time)
return ret0 return ret0
} }
// GetAlarmTimeout indicates an expected call of GetAlarmTimeout // GetAlarmTimeout indicates an expected call of GetAlarmTimeout
func (_mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call { func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout))
} }
// IgnoreBelow mocks base method // IgnoreBelow mocks base method
func (_m *MockReceivedPacketHandler) IgnoreBelow(_param0 protocol.PacketNumber) { func (m *MockReceivedPacketHandler) IgnoreBelow(arg0 protocol.PacketNumber) {
_m.ctrl.Call(_m, "IgnoreBelow", _param0) m.ctrl.Call(m, "IgnoreBelow", arg0)
} }
// IgnoreBelow indicates an expected call of IgnoreBelow // IgnoreBelow indicates an expected call of IgnoreBelow
func (_mr *MockReceivedPacketHandlerMockRecorder) IgnoreBelow(arg0 interface{}) *gomock.Call { func (mr *MockReceivedPacketHandlerMockRecorder) IgnoreBelow(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "IgnoreBelow", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IgnoreBelow), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IgnoreBelow", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IgnoreBelow), arg0)
} }
// ReceivedPacket mocks base method // ReceivedPacket mocks base method
func (_m *MockReceivedPacketHandler) ReceivedPacket(_param0 protocol.PacketNumber, _param1 bool) error { func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 bool) error {
ret := _m.ctrl.Call(_m, "ReceivedPacket", _param0, _param1) ret := m.ctrl.Call(m, "ReceivedPacket", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// ReceivedPacket indicates an expected call of ReceivedPacket // ReceivedPacket indicates an expected call of ReceivedPacket
func (_mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1 interface{}) *gomock.Call { func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/ackhandler (interfaces: SentPacketHandler) // Source: github.com/lucas-clemente/quic-go/ackhandler (interfaces: SentPacketHandler)
// Package mocks is a generated GoMock package.
package mocks package mocks
import ( import (
@ -32,134 +33,134 @@ func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler {
} }
// 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 *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder { func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder {
return _m.recorder return m.recorder
} }
// DequeuePacketForRetransmission mocks base method // DequeuePacketForRetransmission mocks base method
func (_m *MockSentPacketHandler) DequeuePacketForRetransmission() *ackhandler.Packet { func (m *MockSentPacketHandler) DequeuePacketForRetransmission() *ackhandler.Packet {
ret := _m.ctrl.Call(_m, "DequeuePacketForRetransmission") ret := m.ctrl.Call(m, "DequeuePacketForRetransmission")
ret0, _ := ret[0].(*ackhandler.Packet) ret0, _ := ret[0].(*ackhandler.Packet)
return ret0 return ret0
} }
// DequeuePacketForRetransmission indicates an expected call of DequeuePacketForRetransmission // DequeuePacketForRetransmission indicates an expected call of DequeuePacketForRetransmission
func (_mr *MockSentPacketHandlerMockRecorder) DequeuePacketForRetransmission() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) DequeuePacketForRetransmission() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DequeuePacketForRetransmission", reflect.TypeOf((*MockSentPacketHandler)(nil).DequeuePacketForRetransmission)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DequeuePacketForRetransmission", reflect.TypeOf((*MockSentPacketHandler)(nil).DequeuePacketForRetransmission))
} }
// GetAlarmTimeout mocks base method // GetAlarmTimeout mocks base method
func (_m *MockSentPacketHandler) GetAlarmTimeout() time.Time { func (m *MockSentPacketHandler) GetAlarmTimeout() time.Time {
ret := _m.ctrl.Call(_m, "GetAlarmTimeout") ret := m.ctrl.Call(m, "GetAlarmTimeout")
ret0, _ := ret[0].(time.Time) ret0, _ := ret[0].(time.Time)
return ret0 return ret0
} }
// GetAlarmTimeout indicates an expected call of GetAlarmTimeout // GetAlarmTimeout indicates an expected call of GetAlarmTimeout
func (_mr *MockSentPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetAlarmTimeout)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetAlarmTimeout))
} }
// GetLeastUnacked mocks base method // GetLeastUnacked mocks base method
func (_m *MockSentPacketHandler) GetLeastUnacked() protocol.PacketNumber { func (m *MockSentPacketHandler) GetLeastUnacked() protocol.PacketNumber {
ret := _m.ctrl.Call(_m, "GetLeastUnacked") ret := m.ctrl.Call(m, "GetLeastUnacked")
ret0, _ := ret[0].(protocol.PacketNumber) ret0, _ := ret[0].(protocol.PacketNumber)
return ret0 return ret0
} }
// GetLeastUnacked indicates an expected call of GetLeastUnacked // GetLeastUnacked indicates an expected call of GetLeastUnacked
func (_mr *MockSentPacketHandlerMockRecorder) GetLeastUnacked() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) GetLeastUnacked() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetLeastUnacked", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLeastUnacked)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeastUnacked", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLeastUnacked))
} }
// GetLowestPacketNotConfirmedAcked mocks base method // GetLowestPacketNotConfirmedAcked mocks base method
func (_m *MockSentPacketHandler) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber { func (m *MockSentPacketHandler) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber {
ret := _m.ctrl.Call(_m, "GetLowestPacketNotConfirmedAcked") ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked")
ret0, _ := ret[0].(protocol.PacketNumber) ret0, _ := ret[0].(protocol.PacketNumber)
return ret0 return ret0
} }
// GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked // GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked
func (_mr *MockSentPacketHandlerMockRecorder) GetLowestPacketNotConfirmedAcked() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) GetLowestPacketNotConfirmedAcked() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLowestPacketNotConfirmedAcked)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLowestPacketNotConfirmedAcked))
} }
// GetStopWaitingFrame mocks base method // GetStopWaitingFrame mocks base method
func (_m *MockSentPacketHandler) GetStopWaitingFrame(_param0 bool) *wire.StopWaitingFrame { func (m *MockSentPacketHandler) GetStopWaitingFrame(arg0 bool) *wire.StopWaitingFrame {
ret := _m.ctrl.Call(_m, "GetStopWaitingFrame", _param0) ret := m.ctrl.Call(m, "GetStopWaitingFrame", arg0)
ret0, _ := ret[0].(*wire.StopWaitingFrame) ret0, _ := ret[0].(*wire.StopWaitingFrame)
return ret0 return ret0
} }
// GetStopWaitingFrame indicates an expected call of GetStopWaitingFrame // GetStopWaitingFrame indicates an expected call of GetStopWaitingFrame
func (_mr *MockSentPacketHandlerMockRecorder) GetStopWaitingFrame(arg0 interface{}) *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) GetStopWaitingFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetStopWaitingFrame", reflect.TypeOf((*MockSentPacketHandler)(nil).GetStopWaitingFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStopWaitingFrame", reflect.TypeOf((*MockSentPacketHandler)(nil).GetStopWaitingFrame), arg0)
} }
// OnAlarm mocks base method // OnAlarm mocks base method
func (_m *MockSentPacketHandler) OnAlarm() { func (m *MockSentPacketHandler) OnAlarm() {
_m.ctrl.Call(_m, "OnAlarm") m.ctrl.Call(m, "OnAlarm")
} }
// OnAlarm indicates an expected call of OnAlarm // OnAlarm indicates an expected call of OnAlarm
func (_mr *MockSentPacketHandlerMockRecorder) OnAlarm() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) OnAlarm() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "OnAlarm", reflect.TypeOf((*MockSentPacketHandler)(nil).OnAlarm)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnAlarm", reflect.TypeOf((*MockSentPacketHandler)(nil).OnAlarm))
} }
// ReceivedAck mocks base method // ReceivedAck mocks base method
func (_m *MockSentPacketHandler) ReceivedAck(_param0 *wire.AckFrame, _param1 protocol.PacketNumber, _param2 protocol.EncryptionLevel, _param3 time.Time) error { func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.PacketNumber, arg2 protocol.EncryptionLevel, arg3 time.Time) error {
ret := _m.ctrl.Call(_m, "ReceivedAck", _param0, _param1, _param2, _param3) ret := m.ctrl.Call(m, "ReceivedAck", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// ReceivedAck indicates an expected call of ReceivedAck // ReceivedAck indicates an expected call of ReceivedAck
func (_mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2, arg3) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2, arg3)
} }
// SendingAllowed mocks base method // SendingAllowed mocks base method
func (_m *MockSentPacketHandler) SendingAllowed() bool { func (m *MockSentPacketHandler) SendingAllowed() bool {
ret := _m.ctrl.Call(_m, "SendingAllowed") ret := m.ctrl.Call(m, "SendingAllowed")
ret0, _ := ret[0].(bool) ret0, _ := ret[0].(bool)
return ret0 return ret0
} }
// SendingAllowed indicates an expected call of SendingAllowed // SendingAllowed indicates an expected call of SendingAllowed
func (_mr *MockSentPacketHandlerMockRecorder) SendingAllowed() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) SendingAllowed() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SendingAllowed", reflect.TypeOf((*MockSentPacketHandler)(nil).SendingAllowed)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendingAllowed", reflect.TypeOf((*MockSentPacketHandler)(nil).SendingAllowed))
} }
// SentPacket mocks base method // SentPacket mocks base method
func (_m *MockSentPacketHandler) SentPacket(_param0 *ackhandler.Packet) error { func (m *MockSentPacketHandler) SentPacket(arg0 *ackhandler.Packet) error {
ret := _m.ctrl.Call(_m, "SentPacket", _param0) ret := m.ctrl.Call(m, "SentPacket", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// SentPacket indicates an expected call of SentPacket // SentPacket indicates an expected call of SentPacket
func (_mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0 interface{}) *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0)
} }
// SetHandshakeComplete mocks base method // SetHandshakeComplete mocks base method
func (_m *MockSentPacketHandler) SetHandshakeComplete() { func (m *MockSentPacketHandler) SetHandshakeComplete() {
_m.ctrl.Call(_m, "SetHandshakeComplete") m.ctrl.Call(m, "SetHandshakeComplete")
} }
// SetHandshakeComplete indicates an expected call of SetHandshakeComplete // SetHandshakeComplete indicates an expected call of SetHandshakeComplete
func (_mr *MockSentPacketHandlerMockRecorder) SetHandshakeComplete() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeComplete() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetHandshakeComplete", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeComplete)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeComplete", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeComplete))
} }
// ShouldSendRetransmittablePacket mocks base method // ShouldSendRetransmittablePacket mocks base method
func (_m *MockSentPacketHandler) ShouldSendRetransmittablePacket() bool { func (m *MockSentPacketHandler) ShouldSendRetransmittablePacket() bool {
ret := _m.ctrl.Call(_m, "ShouldSendRetransmittablePacket") ret := m.ctrl.Call(m, "ShouldSendRetransmittablePacket")
ret0, _ := ret[0].(bool) ret0, _ := ret[0].(bool)
return ret0 return ret0
} }
// ShouldSendRetransmittablePacket indicates an expected call of ShouldSendRetransmittablePacket // ShouldSendRetransmittablePacket indicates an expected call of ShouldSendRetransmittablePacket
func (_mr *MockSentPacketHandlerMockRecorder) ShouldSendRetransmittablePacket() *gomock.Call { func (mr *MockSentPacketHandlerMockRecorder) ShouldSendRetransmittablePacket() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ShouldSendRetransmittablePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).ShouldSendRetransmittablePacket)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldSendRetransmittablePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).ShouldSendRetransmittablePacket))
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: StreamFlowController) // Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: StreamFlowController)
// Package mocks is a generated GoMock package.
package mocks package mocks
import ( import (
@ -29,85 +30,85 @@ func NewMockStreamFlowController(ctrl *gomock.Controller) *MockStreamFlowControl
} }
// 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 *MockStreamFlowController) EXPECT() *MockStreamFlowControllerMockRecorder { func (m *MockStreamFlowController) EXPECT() *MockStreamFlowControllerMockRecorder {
return _m.recorder return m.recorder
} }
// AddBytesRead mocks base method // AddBytesRead mocks base method
func (_m *MockStreamFlowController) AddBytesRead(_param0 protocol.ByteCount) { func (m *MockStreamFlowController) AddBytesRead(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "AddBytesRead", _param0) m.ctrl.Call(m, "AddBytesRead", arg0)
} }
// AddBytesRead indicates an expected call of AddBytesRead // AddBytesRead indicates an expected call of AddBytesRead
func (_mr *MockStreamFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AddBytesRead", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesRead), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesRead), arg0)
} }
// AddBytesSent mocks base method // AddBytesSent mocks base method
func (_m *MockStreamFlowController) AddBytesSent(_param0 protocol.ByteCount) { func (m *MockStreamFlowController) AddBytesSent(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "AddBytesSent", _param0) m.ctrl.Call(m, "AddBytesSent", arg0)
} }
// AddBytesSent indicates an expected call of AddBytesSent // AddBytesSent indicates an expected call of AddBytesSent
func (_mr *MockStreamFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AddBytesSent", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesSent), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesSent), arg0)
} }
// GetWindowUpdate mocks base method // GetWindowUpdate mocks base method
func (_m *MockStreamFlowController) GetWindowUpdate() protocol.ByteCount { func (m *MockStreamFlowController) GetWindowUpdate() protocol.ByteCount {
ret := _m.ctrl.Call(_m, "GetWindowUpdate") ret := m.ctrl.Call(m, "GetWindowUpdate")
ret0, _ := ret[0].(protocol.ByteCount) ret0, _ := ret[0].(protocol.ByteCount)
return ret0 return ret0
} }
// GetWindowUpdate indicates an expected call of GetWindowUpdate // GetWindowUpdate indicates an expected call of GetWindowUpdate
func (_mr *MockStreamFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockStreamFlowController)(nil).GetWindowUpdate)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockStreamFlowController)(nil).GetWindowUpdate))
} }
// IsNewlyBlocked mocks base method // IsNewlyBlocked mocks base method
func (_m *MockStreamFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) { func (m *MockStreamFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
ret := _m.ctrl.Call(_m, "IsNewlyBlocked") ret := m.ctrl.Call(m, "IsNewlyBlocked")
ret0, _ := ret[0].(bool) ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(protocol.ByteCount) ret1, _ := ret[1].(protocol.ByteCount)
return ret0, ret1 return ret0, ret1
} }
// IsNewlyBlocked indicates an expected call of IsNewlyBlocked // IsNewlyBlocked indicates an expected call of IsNewlyBlocked
func (_mr *MockStreamFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockStreamFlowController)(nil).IsNewlyBlocked)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockStreamFlowController)(nil).IsNewlyBlocked))
} }
// SendWindowSize mocks base method // SendWindowSize mocks base method
func (_m *MockStreamFlowController) SendWindowSize() protocol.ByteCount { func (m *MockStreamFlowController) SendWindowSize() protocol.ByteCount {
ret := _m.ctrl.Call(_m, "SendWindowSize") ret := m.ctrl.Call(m, "SendWindowSize")
ret0, _ := ret[0].(protocol.ByteCount) ret0, _ := ret[0].(protocol.ByteCount)
return ret0 return ret0
} }
// SendWindowSize indicates an expected call of SendWindowSize // SendWindowSize indicates an expected call of SendWindowSize
func (_mr *MockStreamFlowControllerMockRecorder) SendWindowSize() *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) SendWindowSize() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SendWindowSize", reflect.TypeOf((*MockStreamFlowController)(nil).SendWindowSize)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockStreamFlowController)(nil).SendWindowSize))
} }
// UpdateHighestReceived mocks base method // UpdateHighestReceived mocks base method
func (_m *MockStreamFlowController) UpdateHighestReceived(_param0 protocol.ByteCount, _param1 bool) error { func (m *MockStreamFlowController) UpdateHighestReceived(arg0 protocol.ByteCount, arg1 bool) error {
ret := _m.ctrl.Call(_m, "UpdateHighestReceived", _param0, _param1) ret := m.ctrl.Call(m, "UpdateHighestReceived", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// UpdateHighestReceived indicates an expected call of UpdateHighestReceived // UpdateHighestReceived indicates an expected call of UpdateHighestReceived
func (_mr *MockStreamFlowControllerMockRecorder) UpdateHighestReceived(arg0, arg1 interface{}) *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) UpdateHighestReceived(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "UpdateHighestReceived", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateHighestReceived), arg0, arg1) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHighestReceived", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateHighestReceived), arg0, arg1)
} }
// UpdateSendWindow mocks base method // UpdateSendWindow mocks base method
func (_m *MockStreamFlowController) UpdateSendWindow(_param0 protocol.ByteCount) { func (m *MockStreamFlowController) UpdateSendWindow(arg0 protocol.ByteCount) {
_m.ctrl.Call(_m, "UpdateSendWindow", _param0) m.ctrl.Call(m, "UpdateSendWindow", arg0)
} }
// UpdateSendWindow indicates an expected call of UpdateSendWindow // UpdateSendWindow indicates an expected call of UpdateSendWindow
func (_mr *MockStreamFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call { func (mr *MockStreamFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateSendWindow), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateSendWindow), arg0)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: TLSExtensionHandler) // Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: TLSExtensionHandler)
// Package mocks is a generated GoMock package.
package mocks package mocks
import ( import (
@ -30,42 +31,42 @@ func NewMockTLSExtensionHandler(ctrl *gomock.Controller) *MockTLSExtensionHandle
} }
// 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 *MockTLSExtensionHandler) EXPECT() *MockTLSExtensionHandlerMockRecorder { func (m *MockTLSExtensionHandler) EXPECT() *MockTLSExtensionHandlerMockRecorder {
return _m.recorder return m.recorder
} }
// GetPeerParams mocks base method // GetPeerParams mocks base method
func (_m *MockTLSExtensionHandler) GetPeerParams() <-chan handshake.TransportParameters { func (m *MockTLSExtensionHandler) GetPeerParams() <-chan handshake.TransportParameters {
ret := _m.ctrl.Call(_m, "GetPeerParams") ret := m.ctrl.Call(m, "GetPeerParams")
ret0, _ := ret[0].(<-chan handshake.TransportParameters) ret0, _ := ret[0].(<-chan handshake.TransportParameters)
return ret0 return ret0
} }
// GetPeerParams indicates an expected call of GetPeerParams // GetPeerParams indicates an expected call of GetPeerParams
func (_mr *MockTLSExtensionHandlerMockRecorder) GetPeerParams() *gomock.Call { func (mr *MockTLSExtensionHandlerMockRecorder) GetPeerParams() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "GetPeerParams", reflect.TypeOf((*MockTLSExtensionHandler)(nil).GetPeerParams)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPeerParams", reflect.TypeOf((*MockTLSExtensionHandler)(nil).GetPeerParams))
} }
// Receive mocks base method // Receive mocks base method
func (_m *MockTLSExtensionHandler) Receive(_param0 mint.HandshakeType, _param1 *mint.ExtensionList) error { func (m *MockTLSExtensionHandler) Receive(arg0 mint.HandshakeType, arg1 *mint.ExtensionList) error {
ret := _m.ctrl.Call(_m, "Receive", _param0, _param1) ret := m.ctrl.Call(m, "Receive", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// Receive indicates an expected call of Receive // Receive indicates an expected call of Receive
func (_mr *MockTLSExtensionHandlerMockRecorder) Receive(arg0, arg1 interface{}) *gomock.Call { func (mr *MockTLSExtensionHandlerMockRecorder) Receive(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Receive", reflect.TypeOf((*MockTLSExtensionHandler)(nil).Receive), arg0, arg1) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Receive", reflect.TypeOf((*MockTLSExtensionHandler)(nil).Receive), arg0, arg1)
} }
// Send mocks base method // Send mocks base method
func (_m *MockTLSExtensionHandler) Send(_param0 mint.HandshakeType, _param1 *mint.ExtensionList) error { func (m *MockTLSExtensionHandler) Send(arg0 mint.HandshakeType, arg1 *mint.ExtensionList) error {
ret := _m.ctrl.Call(_m, "Send", _param0, _param1) ret := m.ctrl.Call(m, "Send", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// Send indicates an expected call of Send // Send indicates an expected call of Send
func (_mr *MockTLSExtensionHandlerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call { func (mr *MockTLSExtensionHandlerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Send", reflect.TypeOf((*MockTLSExtensionHandler)(nil).Send), arg0, arg1) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockTLSExtensionHandler)(nil).Send), arg0, arg1)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go (interfaces: StreamI) // Source: github.com/lucas-clemente/quic-go (interfaces: StreamI)
// Package quic is a generated GoMock package.
package quic package quic
import ( import (
@ -31,218 +32,218 @@ func NewMockStreamI(ctrl *gomock.Controller) *MockStreamI {
} }
// 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 { func (m *MockStreamI) EXPECT() *MockStreamIMockRecorder {
return _m.recorder return m.recorder
} }
// CancelRead mocks base method // CancelRead mocks base method
func (_m *MockStreamI) CancelRead(_param0 protocol.ApplicationErrorCode) error { func (m *MockStreamI) CancelRead(arg0 protocol.ApplicationErrorCode) error {
ret := _m.ctrl.Call(_m, "CancelRead", _param0) ret := m.ctrl.Call(m, "CancelRead", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// CancelRead indicates an expected call of CancelRead // CancelRead indicates an expected call of CancelRead
func (_mr *MockStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "CancelRead", reflect.TypeOf((*MockStreamI)(nil).CancelRead), arg0) 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(_param0 protocol.ApplicationErrorCode) error { func (m *MockStreamI) CancelWrite(arg0 protocol.ApplicationErrorCode) error {
ret := _m.ctrl.Call(_m, "CancelWrite", _param0) ret := m.ctrl.Call(m, "CancelWrite", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// CancelWrite indicates an expected call of CancelWrite // CancelWrite indicates an expected call of CancelWrite
func (_mr *MockStreamIMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "CancelWrite", reflect.TypeOf((*MockStreamI)(nil).CancelWrite), arg0) 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 { func (m *MockStreamI) Close() error {
ret := _m.ctrl.Call(_m, "Close") ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// Close indicates an expected call of Close // Close indicates an expected call of Close
func (_mr *MockStreamIMockRecorder) Close() *gomock.Call { func (mr *MockStreamIMockRecorder) Close() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Close", reflect.TypeOf((*MockStreamI)(nil).Close)) 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 { func (m *MockStreamI) Context() context.Context {
ret := _m.ctrl.Call(_m, "Context") ret := m.ctrl.Call(m, "Context")
ret0, _ := ret[0].(context.Context) ret0, _ := ret[0].(context.Context)
return ret0 return ret0
} }
// Context indicates an expected call of Context // Context indicates an expected call of Context
func (_mr *MockStreamIMockRecorder) Context() *gomock.Call { func (mr *MockStreamIMockRecorder) Context() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Context", reflect.TypeOf((*MockStreamI)(nil).Context)) 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(_param0 []byte) (int, error) { func (m *MockStreamI) Read(arg0 []byte) (int, error) {
ret := _m.ctrl.Call(_m, "Read", _param0) ret := m.ctrl.Call(m, "Read", arg0)
ret0, _ := ret[0].(int) ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error) ret1, _ := ret[1].(error)
return ret0, ret1 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 { func (mr *MockStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Read", reflect.TypeOf((*MockStreamI)(nil).Read), arg0) 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(_param0 time.Time) error { func (m *MockStreamI) SetDeadline(arg0 time.Time) error {
ret := _m.ctrl.Call(_m, "SetDeadline", _param0) ret := m.ctrl.Call(m, "SetDeadline", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// SetDeadline indicates an expected call of SetDeadline // SetDeadline indicates an expected call of SetDeadline
func (_mr *MockStreamIMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetDeadline", reflect.TypeOf((*MockStreamI)(nil).SetDeadline), arg0) 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(_param0 time.Time) error { func (m *MockStreamI) SetReadDeadline(arg0 time.Time) error {
ret := _m.ctrl.Call(_m, "SetReadDeadline", _param0) ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// SetReadDeadline indicates an expected call of SetReadDeadline // SetReadDeadline indicates an expected call of SetReadDeadline
func (_mr *MockStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetReadDeadline", reflect.TypeOf((*MockStreamI)(nil).SetReadDeadline), arg0) 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(_param0 time.Time) error { func (m *MockStreamI) SetWriteDeadline(arg0 time.Time) error {
ret := _m.ctrl.Call(_m, "SetWriteDeadline", _param0) ret := m.ctrl.Call(m, "SetWriteDeadline", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// SetWriteDeadline indicates an expected call of SetWriteDeadline // SetWriteDeadline indicates an expected call of SetWriteDeadline
func (_mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockStreamI)(nil).SetWriteDeadline), arg0) 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 { func (m *MockStreamI) StreamID() protocol.StreamID {
ret := _m.ctrl.Call(_m, "StreamID") ret := m.ctrl.Call(m, "StreamID")
ret0, _ := ret[0].(protocol.StreamID) ret0, _ := ret[0].(protocol.StreamID)
return ret0 return ret0
} }
// StreamID indicates an expected call of StreamID // StreamID indicates an expected call of StreamID
func (_mr *MockStreamIMockRecorder) StreamID() *gomock.Call { func (mr *MockStreamIMockRecorder) StreamID() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "StreamID", reflect.TypeOf((*MockStreamI)(nil).StreamID)) 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(_param0 []byte) (int, error) { func (m *MockStreamI) Write(arg0 []byte) (int, error) {
ret := _m.ctrl.Call(_m, "Write", _param0) ret := m.ctrl.Call(m, "Write", arg0)
ret0, _ := ret[0].(int) ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error) ret1, _ := ret[1].(error)
return ret0, ret1 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 { func (mr *MockStreamIMockRecorder) Write(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Write", reflect.TypeOf((*MockStreamI)(nil).Write), arg0) 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(_param0 error) { func (m *MockStreamI) closeForShutdown(arg0 error) {
_m.ctrl.Call(_m, "closeForShutdown", _param0) 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 { func (mr *MockStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "closeForShutdown", reflect.TypeOf((*MockStreamI)(nil).closeForShutdown), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockStreamI)(nil).closeForShutdown), arg0)
} }
// finished mocks base method // finished mocks base method
func (_m *MockStreamI) finished() bool { func (m *MockStreamI) finished() bool {
ret := _m.ctrl.Call(_m, "finished") ret := m.ctrl.Call(m, "finished")
ret0, _ := ret[0].(bool) ret0, _ := ret[0].(bool)
return ret0 return ret0
} }
// finished indicates an expected call of finished // finished indicates an expected call of finished
func (_mr *MockStreamIMockRecorder) finished() *gomock.Call { func (mr *MockStreamIMockRecorder) finished() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "finished", reflect.TypeOf((*MockStreamI)(nil).finished)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "finished", reflect.TypeOf((*MockStreamI)(nil).finished))
} }
// getWindowUpdate mocks base method // getWindowUpdate mocks base method
func (_m *MockStreamI) getWindowUpdate() protocol.ByteCount { func (m *MockStreamI) getWindowUpdate() protocol.ByteCount {
ret := _m.ctrl.Call(_m, "getWindowUpdate") ret := m.ctrl.Call(m, "getWindowUpdate")
ret0, _ := ret[0].(protocol.ByteCount) ret0, _ := ret[0].(protocol.ByteCount)
return ret0 return ret0
} }
// getWindowUpdate indicates an expected call of getWindowUpdate // getWindowUpdate indicates an expected call of getWindowUpdate
func (_mr *MockStreamIMockRecorder) getWindowUpdate() *gomock.Call { func (mr *MockStreamIMockRecorder) getWindowUpdate() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "getWindowUpdate", reflect.TypeOf((*MockStreamI)(nil).getWindowUpdate)) 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(_param0 *wire.MaxStreamDataFrame) { func (m *MockStreamI) handleMaxStreamDataFrame(arg0 *wire.MaxStreamDataFrame) {
_m.ctrl.Call(_m, "handleMaxStreamDataFrame", _param0) 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 { func (mr *MockStreamIMockRecorder) handleMaxStreamDataFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "handleMaxStreamDataFrame", reflect.TypeOf((*MockStreamI)(nil).handleMaxStreamDataFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleMaxStreamDataFrame", reflect.TypeOf((*MockStreamI)(nil).handleMaxStreamDataFrame), arg0)
} }
// handleRstStreamFrame mocks base method // handleRstStreamFrame mocks base method
func (_m *MockStreamI) handleRstStreamFrame(_param0 *wire.RstStreamFrame) error { func (m *MockStreamI) handleRstStreamFrame(arg0 *wire.RstStreamFrame) error {
ret := _m.ctrl.Call(_m, "handleRstStreamFrame", _param0) ret := m.ctrl.Call(m, "handleRstStreamFrame", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// handleRstStreamFrame indicates an expected call of handleRstStreamFrame // handleRstStreamFrame indicates an expected call of handleRstStreamFrame
func (_mr *MockStreamIMockRecorder) handleRstStreamFrame(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) handleRstStreamFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "handleRstStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleRstStreamFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleRstStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleRstStreamFrame), arg0)
} }
// handleStopSendingFrame mocks base method // handleStopSendingFrame mocks base method
func (_m *MockStreamI) handleStopSendingFrame(_param0 *wire.StopSendingFrame) { func (m *MockStreamI) handleStopSendingFrame(arg0 *wire.StopSendingFrame) {
_m.ctrl.Call(_m, "handleStopSendingFrame", _param0) 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 { func (mr *MockStreamIMockRecorder) handleStopSendingFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "handleStopSendingFrame", reflect.TypeOf((*MockStreamI)(nil).handleStopSendingFrame), arg0) 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(_param0 *wire.StreamFrame) error { func (m *MockStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
ret := _m.ctrl.Call(_m, "handleStreamFrame", _param0) ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
return ret0 return ret0
} }
// handleStreamFrame indicates an expected call of handleStreamFrame // handleStreamFrame indicates an expected call of handleStreamFrame
func (_mr *MockStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "handleStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleStreamFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleStreamFrame), arg0)
} }
// popStreamFrame mocks base method // popStreamFrame mocks base method
func (_m *MockStreamI) popStreamFrame(_param0 protocol.ByteCount) *wire.StreamFrame { func (m *MockStreamI) popStreamFrame(arg0 protocol.ByteCount) *wire.StreamFrame {
ret := _m.ctrl.Call(_m, "popStreamFrame", _param0) ret := m.ctrl.Call(m, "popStreamFrame", arg0)
ret0, _ := ret[0].(*wire.StreamFrame) ret0, _ := ret[0].(*wire.StreamFrame)
return ret0 return ret0
} }
// popStreamFrame indicates an expected call of popStreamFrame // popStreamFrame indicates an expected call of popStreamFrame
func (_mr *MockStreamIMockRecorder) popStreamFrame(arg0 interface{}) *gomock.Call { func (mr *MockStreamIMockRecorder) popStreamFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "popStreamFrame", reflect.TypeOf((*MockStreamI)(nil).popStreamFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "popStreamFrame", reflect.TypeOf((*MockStreamI)(nil).popStreamFrame), arg0)
} }

View file

@ -1,6 +1,7 @@
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go (interfaces: StreamSender) // Source: github.com/lucas-clemente/quic-go (interfaces: StreamSender)
// Package quic is a generated GoMock package.
package quic package quic
import ( import (
@ -29,36 +30,36 @@ func NewMockStreamSender(ctrl *gomock.Controller) *MockStreamSender {
} }
// 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 *MockStreamSender) EXPECT() *MockStreamSenderMockRecorder { func (m *MockStreamSender) EXPECT() *MockStreamSenderMockRecorder {
return _m.recorder return m.recorder
} }
// onHasWindowUpdate mocks base method // onHasWindowUpdate mocks base method
func (_m *MockStreamSender) onHasWindowUpdate(_param0 protocol.StreamID, _param1 protocol.ByteCount) { func (m *MockStreamSender) onHasWindowUpdate(arg0 protocol.StreamID, arg1 protocol.ByteCount) {
_m.ctrl.Call(_m, "onHasWindowUpdate", _param0, _param1) m.ctrl.Call(m, "onHasWindowUpdate", arg0, arg1)
} }
// onHasWindowUpdate indicates an expected call of onHasWindowUpdate // onHasWindowUpdate indicates an expected call of onHasWindowUpdate
func (_mr *MockStreamSenderMockRecorder) onHasWindowUpdate(arg0, arg1 interface{}) *gomock.Call { func (mr *MockStreamSenderMockRecorder) onHasWindowUpdate(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "onHasWindowUpdate", reflect.TypeOf((*MockStreamSender)(nil).onHasWindowUpdate), arg0, arg1) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "onHasWindowUpdate", reflect.TypeOf((*MockStreamSender)(nil).onHasWindowUpdate), arg0, arg1)
} }
// queueControlFrame mocks base method // queueControlFrame mocks base method
func (_m *MockStreamSender) queueControlFrame(_param0 wire.Frame) { func (m *MockStreamSender) queueControlFrame(arg0 wire.Frame) {
_m.ctrl.Call(_m, "queueControlFrame", _param0) m.ctrl.Call(m, "queueControlFrame", arg0)
} }
// queueControlFrame indicates an expected call of queueControlFrame // queueControlFrame indicates an expected call of queueControlFrame
func (_mr *MockStreamSenderMockRecorder) queueControlFrame(arg0 interface{}) *gomock.Call { func (mr *MockStreamSenderMockRecorder) queueControlFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "queueControlFrame", reflect.TypeOf((*MockStreamSender)(nil).queueControlFrame), arg0) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "queueControlFrame", reflect.TypeOf((*MockStreamSender)(nil).queueControlFrame), arg0)
} }
// scheduleSending mocks base method // scheduleSending mocks base method
func (_m *MockStreamSender) scheduleSending() { func (m *MockStreamSender) scheduleSending() {
_m.ctrl.Call(_m, "scheduleSending") m.ctrl.Call(m, "scheduleSending")
} }
// scheduleSending indicates an expected call of scheduleSending // scheduleSending indicates an expected call of scheduleSending
func (_mr *MockStreamSenderMockRecorder) scheduleSending() *gomock.Call { func (mr *MockStreamSenderMockRecorder) scheduleSending() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "scheduleSending", reflect.TypeOf((*MockStreamSender)(nil).scheduleSending)) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "scheduleSending", reflect.TypeOf((*MockStreamSender)(nil).scheduleSending))
} }