You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/testing/mocks/proxy.go

104 lines
3.2 KiB

6 years ago
// Code generated by MockGen. DO NOT EDIT.
// Source: v2ray.com/core/proxy (interfaces: Inbound,Outbound)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
net "v2ray.com/core/common/net"
routing "v2ray.com/core/features/routing"
transport "v2ray.com/core/transport"
6 years ago
internet "v2ray.com/core/transport/internet"
)
6 years ago
// ProxyInbound is a mock of Inbound interface
type ProxyInbound struct {
6 years ago
ctrl *gomock.Controller
6 years ago
recorder *ProxyInboundMockRecorder
6 years ago
}
6 years ago
// ProxyInboundMockRecorder is the mock recorder for ProxyInbound
type ProxyInboundMockRecorder struct {
mock *ProxyInbound
6 years ago
}
6 years ago
// NewProxyInbound creates a new mock instance
func NewProxyInbound(ctrl *gomock.Controller) *ProxyInbound {
mock := &ProxyInbound{ctrl: ctrl}
mock.recorder = &ProxyInboundMockRecorder{mock}
6 years ago
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
6 years ago
func (m *ProxyInbound) EXPECT() *ProxyInboundMockRecorder {
6 years ago
return m.recorder
}
// Network mocks base method
func (m *ProxyInbound) Network() []net.Network {
6 years ago
m.ctrl.T.Helper()
6 years ago
ret := m.ctrl.Call(m, "Network")
ret0, _ := ret[0].([]net.Network)
6 years ago
return ret0
}
// Network indicates an expected call of Network
6 years ago
func (mr *ProxyInboundMockRecorder) Network() *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*ProxyInbound)(nil).Network))
6 years ago
}
// Process mocks base method
6 years ago
func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network, arg2 internet.Connection, arg3 routing.Dispatcher) error {
6 years ago
m.ctrl.T.Helper()
6 years ago
ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// Process indicates an expected call of Process
6 years ago
func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyInbound)(nil).Process), arg0, arg1, arg2, arg3)
6 years ago
}
6 years ago
// ProxyOutbound is a mock of Outbound interface
type ProxyOutbound struct {
6 years ago
ctrl *gomock.Controller
6 years ago
recorder *ProxyOutboundMockRecorder
6 years ago
}
6 years ago
// ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound
type ProxyOutboundMockRecorder struct {
mock *ProxyOutbound
6 years ago
}
6 years ago
// NewProxyOutbound creates a new mock instance
func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound {
mock := &ProxyOutbound{ctrl: ctrl}
mock.recorder = &ProxyOutboundMockRecorder{mock}
6 years ago
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
6 years ago
func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder {
6 years ago
return m.recorder
}
// Process mocks base method
func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.Link, arg2 internet.Dialer) error {
6 years ago
m.ctrl.T.Helper()
6 years ago
ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Process indicates an expected call of Process
6 years ago
func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call {
6 years ago
mr.mock.ctrl.T.Helper()
6 years ago
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyOutbound)(nil).Process), arg0, arg1, arg2)
6 years ago
}