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

105 lines
3.3 KiB
Go
Raw Normal View History

2018-10-23 16:27:45 -04:00
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/v2fly/v2ray-core/v5/proxy (interfaces: Inbound,Outbound)
2018-10-23 16:27:45 -04:00
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
2018-10-23 16:27:45 -04:00
gomock "github.com/golang/mock/gomock"
net "github.com/v2fly/v2ray-core/v5/common/net"
routing "github.com/v2fly/v2ray-core/v5/features/routing"
transport "github.com/v2fly/v2ray-core/v5/transport"
internet "github.com/v2fly/v2ray-core/v5/transport/internet"
2018-10-23 16:27:45 -04:00
)
// ProxyInbound is a mock of Inbound interface.
2018-10-23 16:41:27 -04:00
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
}
// ProxyInboundMockRecorder is the mock recorder for ProxyInbound.
2018-10-23 16:41:27 -04:00
type ProxyInboundMockRecorder struct {
mock *ProxyInbound
2018-10-23 16:27:45 -04:00
}
// NewProxyInbound creates a new mock instance.
2018-10-23 16:41:27 -04:00
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
}
// ProxyOutbound is a mock of Outbound interface.
2018-10-23 16:41:27 -04:00
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
}
// ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound.
2018-10-23 16:41:27 -04:00
type ProxyOutboundMockRecorder struct {
mock *ProxyOutbound
2018-10-23 16:27:45 -04:00
}
// NewProxyOutbound creates a new mock instance.
2018-10-23 16:41:27 -04:00
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
}