proxy.go 3.2 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. vio "v2ray.com/core/common/vio"
  11. routing "v2ray.com/core/features/routing"
  12. internet "v2ray.com/core/transport/internet"
  13. )
  14. // MockProxyInbound is a mock of Inbound interface
  15. type MockProxyInbound struct {
  16. ctrl *gomock.Controller
  17. recorder *MockProxyInboundMockRecorder
  18. }
  19. // MockProxyInboundMockRecorder is the mock recorder for MockProxyInbound
  20. type MockProxyInboundMockRecorder struct {
  21. mock *MockProxyInbound
  22. }
  23. // NewMockProxyInbound creates a new mock instance
  24. func NewMockProxyInbound(ctrl *gomock.Controller) *MockProxyInbound {
  25. mock := &MockProxyInbound{ctrl: ctrl}
  26. mock.recorder = &MockProxyInboundMockRecorder{mock}
  27. return mock
  28. }
  29. // EXPECT returns an object that allows the caller to indicate expected use
  30. func (m *MockProxyInbound) EXPECT() *MockProxyInboundMockRecorder {
  31. return m.recorder
  32. }
  33. // Network mocks base method
  34. func (m *MockProxyInbound) Network() net.NetworkList {
  35. ret := m.ctrl.Call(m, "Network")
  36. ret0, _ := ret[0].(net.NetworkList)
  37. return ret0
  38. }
  39. // Network indicates an expected call of Network
  40. func (mr *MockProxyInboundMockRecorder) Network() *gomock.Call {
  41. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*MockProxyInbound)(nil).Network))
  42. }
  43. // Process mocks base method
  44. func (m *MockProxyInbound) 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 *MockProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  51. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*MockProxyInbound)(nil).Process), arg0, arg1, arg2, arg3)
  52. }
  53. // MockProxyOutbound is a mock of Outbound interface
  54. type MockProxyOutbound struct {
  55. ctrl *gomock.Controller
  56. recorder *MockProxyOutboundMockRecorder
  57. }
  58. // MockProxyOutboundMockRecorder is the mock recorder for MockProxyOutbound
  59. type MockProxyOutboundMockRecorder struct {
  60. mock *MockProxyOutbound
  61. }
  62. // NewMockProxyOutbound creates a new mock instance
  63. func NewMockProxyOutbound(ctrl *gomock.Controller) *MockProxyOutbound {
  64. mock := &MockProxyOutbound{ctrl: ctrl}
  65. mock.recorder = &MockProxyOutboundMockRecorder{mock}
  66. return mock
  67. }
  68. // EXPECT returns an object that allows the caller to indicate expected use
  69. func (m *MockProxyOutbound) EXPECT() *MockProxyOutboundMockRecorder {
  70. return m.recorder
  71. }
  72. // Process mocks base method
  73. func (m *MockProxyOutbound) Process(arg0 context.Context, arg1 *vio.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 *MockProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call {
  80. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*MockProxyOutbound)(nil).Process), arg0, arg1, arg2)
  81. }