github.com/EagleQL/Xray-core@v1.4.3/testing/mocks/proxy.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/xtls/xray-core/proxy (interfaces: Inbound,Outbound) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 gomock "github.com/golang/mock/gomock" 10 net "github.com/xtls/xray-core/common/net" 11 routing "github.com/xtls/xray-core/features/routing" 12 transport "github.com/xtls/xray-core/transport" 13 internet "github.com/xtls/xray-core/transport/internet" 14 reflect "reflect" 15 ) 16 17 // ProxyInbound is a mock of Inbound interface 18 type ProxyInbound struct { 19 ctrl *gomock.Controller 20 recorder *ProxyInboundMockRecorder 21 } 22 23 // ProxyInboundMockRecorder is the mock recorder for ProxyInbound 24 type ProxyInboundMockRecorder struct { 25 mock *ProxyInbound 26 } 27 28 // NewProxyInbound creates a new mock instance 29 func NewProxyInbound(ctrl *gomock.Controller) *ProxyInbound { 30 mock := &ProxyInbound{ctrl: ctrl} 31 mock.recorder = &ProxyInboundMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use 36 func (m *ProxyInbound) EXPECT() *ProxyInboundMockRecorder { 37 return m.recorder 38 } 39 40 // Network mocks base method 41 func (m *ProxyInbound) Network() []net.Network { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "Network") 44 ret0, _ := ret[0].([]net.Network) 45 return ret0 46 } 47 48 // Network indicates an expected call of Network 49 func (mr *ProxyInboundMockRecorder) Network() *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*ProxyInbound)(nil).Network)) 52 } 53 54 // Process mocks base method 55 func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network, arg2 internet.Connection, arg3 routing.Dispatcher) error { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2, arg3) 58 ret0, _ := ret[0].(error) 59 return ret0 60 } 61 62 // Process indicates an expected call of Process 63 func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyInbound)(nil).Process), arg0, arg1, arg2, arg3) 66 } 67 68 // ProxyOutbound is a mock of Outbound interface 69 type ProxyOutbound struct { 70 ctrl *gomock.Controller 71 recorder *ProxyOutboundMockRecorder 72 } 73 74 // ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound 75 type ProxyOutboundMockRecorder struct { 76 mock *ProxyOutbound 77 } 78 79 // NewProxyOutbound creates a new mock instance 80 func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound { 81 mock := &ProxyOutbound{ctrl: ctrl} 82 mock.recorder = &ProxyOutboundMockRecorder{mock} 83 return mock 84 } 85 86 // EXPECT returns an object that allows the caller to indicate expected use 87 func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder { 88 return m.recorder 89 } 90 91 // Process mocks base method 92 func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.Link, arg2 internet.Dialer) error { 93 m.ctrl.T.Helper() 94 ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2) 95 ret0, _ := ret[0].(error) 96 return ret0 97 } 98 99 // Process indicates an expected call of Process 100 func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyOutbound)(nil).Process), arg0, arg1, arg2) 103 }