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
|
@ -11,30 +11,30 @@ import (
|
|||
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockLongHeaderOpener is a mock of LongHeaderOpener interface
|
||||
// MockLongHeaderOpener is a mock of LongHeaderOpener interface.
|
||||
type MockLongHeaderOpener struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockLongHeaderOpenerMockRecorder
|
||||
}
|
||||
|
||||
// MockLongHeaderOpenerMockRecorder is the mock recorder for MockLongHeaderOpener
|
||||
// MockLongHeaderOpenerMockRecorder is the mock recorder for MockLongHeaderOpener.
|
||||
type MockLongHeaderOpenerMockRecorder struct {
|
||||
mock *MockLongHeaderOpener
|
||||
}
|
||||
|
||||
// NewMockLongHeaderOpener creates a new mock instance
|
||||
// NewMockLongHeaderOpener creates a new mock instance.
|
||||
func NewMockLongHeaderOpener(ctrl *gomock.Controller) *MockLongHeaderOpener {
|
||||
mock := &MockLongHeaderOpener{ctrl: ctrl}
|
||||
mock.recorder = &MockLongHeaderOpenerMockRecorder{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 *MockLongHeaderOpener) EXPECT() *MockLongHeaderOpenerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// DecodePacketNumber mocks base method
|
||||
// DecodePacketNumber mocks base method.
|
||||
func (m *MockLongHeaderOpener) DecodePacketNumber(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) protocol.PacketNumber {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DecodePacketNumber", arg0, arg1)
|
||||
|
@ -42,25 +42,25 @@ func (m *MockLongHeaderOpener) DecodePacketNumber(arg0 protocol.PacketNumber, ar
|
|||
return ret0
|
||||
}
|
||||
|
||||
// DecodePacketNumber indicates an expected call of DecodePacketNumber
|
||||
// DecodePacketNumber indicates an expected call of DecodePacketNumber.
|
||||
func (mr *MockLongHeaderOpenerMockRecorder) DecodePacketNumber(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodePacketNumber", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecodePacketNumber), arg0, arg1)
|
||||
}
|
||||
|
||||
// DecryptHeader mocks base method
|
||||
// DecryptHeader mocks base method.
|
||||
func (m *MockLongHeaderOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2)
|
||||
}
|
||||
|
||||
// DecryptHeader indicates an expected call of DecryptHeader
|
||||
// DecryptHeader indicates an expected call of DecryptHeader.
|
||||
func (mr *MockLongHeaderOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecryptHeader), arg0, arg1, arg2)
|
||||
}
|
||||
|
||||
// Open mocks base method
|
||||
// Open mocks base method.
|
||||
func (m *MockLongHeaderOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3)
|
||||
|
@ -69,7 +69,7 @@ func (m *MockLongHeaderOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumbe
|
|||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Open indicates an expected call of Open
|
||||
// Open indicates an expected call of Open.
|
||||
func (mr *MockLongHeaderOpenerMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockLongHeaderOpener)(nil).Open), arg0, arg1, arg2, arg3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue