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