2018-11-07 15:25:43 -05:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-02-16 15:31:50 -05:00
|
|
|
// Source: github.com/v2fly/v2ray-core/v4/features/outbound (interfaces: Manager,HandlerSelector)
|
2018-11-07 15:25:43 -05:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-02-20 07:43:19 -05:00
|
|
|
reflect "reflect"
|
|
|
|
|
2018-11-07 15:25:43 -05:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2021-02-16 15:31:50 -05:00
|
|
|
outbound "github.com/v2fly/v2ray-core/v4/features/outbound"
|
2018-11-07 15:25:43 -05:00
|
|
|
)
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// OutboundManager is a mock of Manager interface.
|
2018-11-07 15:25:43 -05:00
|
|
|
type OutboundManager struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *OutboundManagerMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// OutboundManagerMockRecorder is the mock recorder for OutboundManager.
|
2018-11-07 15:25:43 -05:00
|
|
|
type OutboundManagerMockRecorder struct {
|
|
|
|
mock *OutboundManager
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// NewOutboundManager creates a new mock instance.
|
2018-11-07 15:25:43 -05:00
|
|
|
func NewOutboundManager(ctrl *gomock.Controller) *OutboundManager {
|
|
|
|
mock := &OutboundManager{ctrl: ctrl}
|
|
|
|
mock.recorder = &OutboundManagerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) EXPECT() *OutboundManagerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// AddHandler mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) AddHandler(arg0 context.Context, arg1 outbound.Handler) error {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "AddHandler", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// AddHandler indicates an expected call of AddHandler.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) AddHandler(arg0, arg1 interface{}) *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHandler", reflect.TypeOf((*OutboundManager)(nil).AddHandler), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Close mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) Close() error {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Close indicates an expected call of Close.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) Close() *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*OutboundManager)(nil).Close))
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// GetDefaultHandler mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) GetDefaultHandler() outbound.Handler {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "GetDefaultHandler")
|
|
|
|
ret0, _ := ret[0].(outbound.Handler)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// GetDefaultHandler indicates an expected call of GetDefaultHandler.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) GetDefaultHandler() *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultHandler", reflect.TypeOf((*OutboundManager)(nil).GetDefaultHandler))
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// GetHandler mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) GetHandler(arg0 string) outbound.Handler {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "GetHandler", arg0)
|
|
|
|
ret0, _ := ret[0].(outbound.Handler)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// GetHandler indicates an expected call of GetHandler.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) GetHandler(arg0 interface{}) *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandler", reflect.TypeOf((*OutboundManager)(nil).GetHandler), arg0)
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// RemoveHandler mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) RemoveHandler(arg0 context.Context, arg1 string) error {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "RemoveHandler", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// RemoveHandler indicates an expected call of RemoveHandler.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) RemoveHandler(arg0, arg1 interface{}) *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveHandler", reflect.TypeOf((*OutboundManager)(nil).RemoveHandler), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Start mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) Start() error {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "Start")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Start indicates an expected call of Start.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) Start() *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*OutboundManager)(nil).Start))
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Type mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundManager) Type() interface{} {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "Type")
|
|
|
|
ret0, _ := ret[0].(interface{})
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Type indicates an expected call of Type.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundManagerMockRecorder) Type() *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*OutboundManager)(nil).Type))
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// OutboundHandlerSelector is a mock of HandlerSelector interface.
|
2018-11-07 15:25:43 -05:00
|
|
|
type OutboundHandlerSelector struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *OutboundHandlerSelectorMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// OutboundHandlerSelectorMockRecorder is the mock recorder for OutboundHandlerSelector.
|
2018-11-07 15:25:43 -05:00
|
|
|
type OutboundHandlerSelectorMockRecorder struct {
|
|
|
|
mock *OutboundHandlerSelector
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// NewOutboundHandlerSelector creates a new mock instance.
|
2018-11-07 15:25:43 -05:00
|
|
|
func NewOutboundHandlerSelector(ctrl *gomock.Controller) *OutboundHandlerSelector {
|
|
|
|
mock := &OutboundHandlerSelector{ctrl: ctrl}
|
|
|
|
mock.recorder = &OutboundHandlerSelectorMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundHandlerSelector) EXPECT() *OutboundHandlerSelectorMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Select mocks base method.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (m *OutboundHandlerSelector) Select(arg0 []string) []string {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
ret := m.ctrl.Call(m, "Select", arg0)
|
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Select indicates an expected call of Select.
|
2018-11-07 15:25:43 -05:00
|
|
|
func (mr *OutboundHandlerSelectorMockRecorder) Select(arg0 interface{}) *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-11-07 15:25:43 -05:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Select", reflect.TypeOf((*OutboundHandlerSelector)(nil).Select), arg0)
|
|
|
|
}
|