mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +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"
|
||||
)
|
||||
|
||||
// MockCryptoDataHandler is a mock of CryptoDataHandler interface
|
||||
// MockCryptoDataHandler is a mock of CryptoDataHandler interface.
|
||||
type MockCryptoDataHandler struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCryptoDataHandlerMockRecorder
|
||||
}
|
||||
|
||||
// MockCryptoDataHandlerMockRecorder is the mock recorder for MockCryptoDataHandler
|
||||
// MockCryptoDataHandlerMockRecorder is the mock recorder for MockCryptoDataHandler.
|
||||
type MockCryptoDataHandlerMockRecorder struct {
|
||||
mock *MockCryptoDataHandler
|
||||
}
|
||||
|
||||
// NewMockCryptoDataHandler creates a new mock instance
|
||||
// NewMockCryptoDataHandler creates a new mock instance.
|
||||
func NewMockCryptoDataHandler(ctrl *gomock.Controller) *MockCryptoDataHandler {
|
||||
mock := &MockCryptoDataHandler{ctrl: ctrl}
|
||||
mock.recorder = &MockCryptoDataHandlerMockRecorder{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 *MockCryptoDataHandler) EXPECT() *MockCryptoDataHandlerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// HandleMessage mocks base method
|
||||
// HandleMessage mocks base method.
|
||||
func (m *MockCryptoDataHandler) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) bool {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1)
|
||||
|
@ -42,7 +42,7 @@ func (m *MockCryptoDataHandler) HandleMessage(arg0 []byte, arg1 protocol.Encrypt
|
|||
return ret0
|
||||
}
|
||||
|
||||
// HandleMessage indicates an expected call of HandleMessage
|
||||
// HandleMessage indicates an expected call of HandleMessage.
|
||||
func (mr *MockCryptoDataHandlerMockRecorder) HandleMessage(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoDataHandler)(nil).HandleMessage), arg0, arg1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue