github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/testing/mocks/proxy.go (about)

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