Xray-core/testing/mocks/proxy.go

105 lines
3.3 KiB
Go
Raw Normal View History

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