proxy.go 3.1 KB

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