proxy.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/xtls/xray-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. net "github.com/xtls/xray-core/common/net"
  9. routing "github.com/xtls/xray-core/features/routing"
  10. transport "github.com/xtls/xray-core/transport"
  11. internet "github.com/xtls/xray-core/transport/internet"
  12. reflect "reflect"
  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. m.ctrl.T.Helper()
  36. ret := m.ctrl.Call(m, "Network")
  37. ret0, _ := ret[0].([]net.Network)
  38. return ret0
  39. }
  40. // Network indicates an expected call of Network
  41. func (mr *ProxyInboundMockRecorder) Network() *gomock.Call {
  42. mr.mock.ctrl.T.Helper()
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*ProxyInbound)(nil).Network))
  44. }
  45. // Process mocks base method
  46. func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network, arg2 internet.Connection, arg3 routing.Dispatcher) error {
  47. m.ctrl.T.Helper()
  48. ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2, arg3)
  49. ret0, _ := ret[0].(error)
  50. return ret0
  51. }
  52. // Process indicates an expected call of Process
  53. func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyInbound)(nil).Process), arg0, arg1, arg2, arg3)
  56. }
  57. // ProxyOutbound is a mock of Outbound interface
  58. type ProxyOutbound struct {
  59. ctrl *gomock.Controller
  60. recorder *ProxyOutboundMockRecorder
  61. }
  62. // ProxyOutboundMockRecorder is the mock recorder for ProxyOutbound
  63. type ProxyOutboundMockRecorder struct {
  64. mock *ProxyOutbound
  65. }
  66. // NewProxyOutbound creates a new mock instance
  67. func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound {
  68. mock := &ProxyOutbound{ctrl: ctrl}
  69. mock.recorder = &ProxyOutboundMockRecorder{mock}
  70. return mock
  71. }
  72. // EXPECT returns an object that allows the caller to indicate expected use
  73. func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder {
  74. return m.recorder
  75. }
  76. // Process mocks base method
  77. func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.Link, arg2 internet.Dialer) error {
  78. m.ctrl.T.Helper()
  79. ret := m.ctrl.Call(m, "Process", arg0, arg1, arg2)
  80. ret0, _ := ret[0].(error)
  81. return ret0
  82. }
  83. // Process indicates an expected call of Process
  84. func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interface{}) *gomock.Call {
  85. mr.mock.ctrl.T.Helper()
  86. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*ProxyOutbound)(nil).Process), arg0, arg1, arg2)
  87. }