forked from quic-go/quic-go
implement the new Retry mechanism
This commit is contained in:
@@ -1,107 +0,0 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: MintTLS)
|
||||
|
||||
// Package mockhandshake is a generated GoMock package.
|
||||
package mockhandshake
|
||||
|
||||
import (
|
||||
io "io"
|
||||
reflect "reflect"
|
||||
|
||||
mint "github.com/bifurcation/mint"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
// MockMintTLS is a mock of MintTLS interface
|
||||
type MockMintTLS struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockMintTLSMockRecorder
|
||||
}
|
||||
|
||||
// MockMintTLSMockRecorder is the mock recorder for MockMintTLS
|
||||
type MockMintTLSMockRecorder struct {
|
||||
mock *MockMintTLS
|
||||
}
|
||||
|
||||
// NewMockMintTLS creates a new mock instance
|
||||
func NewMockMintTLS(ctrl *gomock.Controller) *MockMintTLS {
|
||||
mock := &MockMintTLS{ctrl: ctrl}
|
||||
mock.recorder = &MockMintTLSMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
func (m *MockMintTLS) EXPECT() *MockMintTLSMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// ComputeExporter mocks base method
|
||||
func (m *MockMintTLS) ComputeExporter(arg0 string, arg1 []byte, arg2 int) ([]byte, error) {
|
||||
ret := m.ctrl.Call(m, "ComputeExporter", arg0, arg1, arg2)
|
||||
ret0, _ := ret[0].([]byte)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ComputeExporter indicates an expected call of ComputeExporter
|
||||
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)
|
||||
}
|
||||
|
||||
// ConnectionState mocks base method
|
||||
func (m *MockMintTLS) ConnectionState() mint.ConnectionState {
|
||||
ret := m.ctrl.Call(m, "ConnectionState")
|
||||
ret0, _ := ret[0].(mint.ConnectionState)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// ConnectionState indicates an expected call of ConnectionState
|
||||
func (mr *MockMintTLSMockRecorder) ConnectionState() *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockMintTLS)(nil).ConnectionState))
|
||||
}
|
||||
|
||||
// GetCipherSuite mocks base method
|
||||
func (m *MockMintTLS) GetCipherSuite() mint.CipherSuiteParams {
|
||||
ret := m.ctrl.Call(m, "GetCipherSuite")
|
||||
ret0, _ := ret[0].(mint.CipherSuiteParams)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetCipherSuite indicates an expected call of GetCipherSuite
|
||||
func (mr *MockMintTLSMockRecorder) GetCipherSuite() *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCipherSuite", reflect.TypeOf((*MockMintTLS)(nil).GetCipherSuite))
|
||||
}
|
||||
|
||||
// Handshake mocks base method
|
||||
func (m *MockMintTLS) Handshake() mint.Alert {
|
||||
ret := m.ctrl.Call(m, "Handshake")
|
||||
ret0, _ := ret[0].(mint.Alert)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Handshake indicates an expected call of Handshake
|
||||
func (mr *MockMintTLSMockRecorder) Handshake() *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handshake", reflect.TypeOf((*MockMintTLS)(nil).Handshake))
|
||||
}
|
||||
|
||||
// SetCryptoStream mocks base method
|
||||
func (m *MockMintTLS) SetCryptoStream(arg0 io.ReadWriter) {
|
||||
m.ctrl.Call(m, "SetCryptoStream", arg0)
|
||||
}
|
||||
|
||||
// SetCryptoStream indicates an expected call of SetCryptoStream
|
||||
func (mr *MockMintTLSMockRecorder) SetCryptoStream(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCryptoStream", reflect.TypeOf((*MockMintTLS)(nil).SetCryptoStream), arg0)
|
||||
}
|
||||
|
||||
// State mocks base method
|
||||
func (m *MockMintTLS) State() mint.State {
|
||||
ret := m.ctrl.Call(m, "State")
|
||||
ret0, _ := ret[0].(mint.State)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// State indicates an expected call of State
|
||||
func (mr *MockMintTLSMockRecorder) State() *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockMintTLS)(nil).State))
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package mocks
|
||||
|
||||
//go:generate sh -c "../mockgen_internal.sh mockhandshake handshake/mint_tls.go github.com/lucas-clemente/quic-go/internal/handshake MintTLS"
|
||||
//go:generate sh -c "../mockgen_internal.sh mocks tls_extension_handler.go github.com/lucas-clemente/quic-go/internal/handshake TLSExtensionHandler"
|
||||
//go:generate sh -c "../mockgen_internal.sh mocks stream_flow_controller.go github.com/lucas-clemente/quic-go/internal/flowcontrol StreamFlowController"
|
||||
//go:generate sh -c "../mockgen_internal.sh mockackhandler ackhandler/sent_packet_handler.go github.com/lucas-clemente/quic-go/internal/ackhandler SentPacketHandler"
|
||||
|
||||
Reference in New Issue
Block a user