1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-08 11:16:31 -05:00
v2fly/testing/mocks/proxy.go

104 lines
3.2 KiB
Go
Raw Normal View History

2018-10-23 16:27:45 -04:00
// 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"
2018-11-03 07:36:29 -04:00
transport "v2ray.com/core/transport"
2018-10-23 16:27:45 -04:00
internet "v2ray.com/core/transport/internet"
)
2018-10-23 16:41:27 -04:00
// ProxyInbound is a mock of Inbound interface
type ProxyInbound struct {
2018-10-23 16:27:45 -04:00
ctrl *gomock.Controller
2018-10-23 16:41:27 -04:00
recorder *ProxyInboundMockRecorder
2018-10-23 16:27:45 -04:00
}
2018-10-23 16:41:27 -04:00
// ProxyInboundMockRecorder is the mock recorder for ProxyInbound
type ProxyInboundMockRecorder struct {
mock *ProxyInbound
2018-10-23 16:27:45 -04:00
}
2018-10-23 16:41:27 -04:00
// NewProxyInbound creates a new mock instance
func NewProxyInbound(ctrl *gomock.Controller) *ProxyInbound {
mock := &ProxyInbound{ctrl: ctrl}
mock.recorder = &ProxyInboundMockRecorder{mock}
2018-10-23 16:27:45 -04:00
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
2018-10-23 16:41:27 -04:00
func (m *ProxyInbound) EXPECT() *ProxyInboundMockRecorder {
2018-10-23 16:27:45 -04:00
return m.recorder
}
// Network mocks base method
2018-11-20 10:58:26 -05:00
func (m *ProxyInbound) Network() []net.Network {
2018-12-27 10:37:13 -05:00
m.ctrl.T.Helper()
2018-10-23 16:27:45 -04:00
ret := m.ctrl.Call(m, "Network")
2018-11-20 10:58:26 -05:00
ret0, _ := ret[0].([]net.Network)
2018-10-23 16:27:45 -04:00
return ret0
}
// Network indicates an expected call of Network
2018-10-23 16:41:27 -04:00
func (mr *ProxyInboundMockRecorder) Network() *gomock.Call {
2018-12-27 10:37:13 -05:00
mr.mock.ctrl.T.Helper()
2018-10-23 16:41:27 -04:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*ProxyInbound)(nil).Network))
2018-10-23 16:27:45 -04:00
}
// Process mocks base method
2018-10-23 16:41:27 -04:00
func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network, arg2 internet.Connection, arg3 routing.Dispatcher) error {
2018-12-27 10:37:13 -05:00
m.ctrl.T.Helper()
2018-10-23 16:27:45 -04:00
ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// Process indicates an expected call of Process
2018-10-23 16:41:27 -04:00
func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
2018-12-27 10:37:13 -05:00
mr.mock.ctrl.T.Helper()
2018-10-23 16:41:27 -04:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyInbound)(nil).Process), arg0, arg1, arg2, arg3)
2018-10-23 16:27:45 -04:00
}
2018-10-23 16:41:27 -04:00
// ProxyOutbound is a mock of Outbound interface
type ProxyOutbound struct {
2018-10-23 16:27:45 -04:00
ctrl *gomock.Controller
2018-10-23 16:41:27 -04:00
recorder *ProxyOutboundMockRecorder
2018-10-23 16:27:45 -04:00
}
2018-10-23 16:41:27 -04:00
// ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound
type ProxyOutboundMockRecorder struct {
mock *ProxyOutbound
2018-10-23 16:27:45 -04:00
}
2018-10-23 16:41:27 -04:00
// NewProxyOutbound creates a new mock instance
func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound {
mock := &ProxyOutbound{ctrl: ctrl}
mock.recorder = &ProxyOutboundMockRecorder{mock}
2018-10-23 16:27:45 -04:00
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
2018-10-23 16:41:27 -04:00
func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder {
2018-10-23 16:27:45 -04:00
return m.recorder
}
// Process mocks base method
2018-11-03 07:36:29 -04:00
func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.Link, arg2 internet.Dialer) error {
2018-12-27 10:37:13 -05:00
m.ctrl.T.Helper()
2018-10-23 16:27:45 -04:00
ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Process indicates an expected call of Process
2018-10-23 16:41:27 -04:00
func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call {
2018-12-27 10:37:13 -05:00
mr.mock.ctrl.T.Helper()
2018-10-23 16:41:27 -04:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyOutbound)(nil).Process), arg0, arg1, arg2)
2018-10-23 16:27:45 -04:00
}