proxy.go 3.3 KB

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