github.com/xraypb/Xray-core@v1.8.1/testing/mocks/outbound.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/xraypb/Xray-core/features/outbound (interfaces: Manager,HandlerSelector)
     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  	outbound "github.com/xraypb/Xray-core/features/outbound"
    13  )
    14  
    15  // OutboundManager is a mock of Manager interface
    16  type OutboundManager struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *OutboundManagerMockRecorder
    19  }
    20  
    21  // OutboundManagerMockRecorder is the mock recorder for OutboundManager
    22  type OutboundManagerMockRecorder struct {
    23  	mock *OutboundManager
    24  }
    25  
    26  // NewOutboundManager creates a new mock instance
    27  func NewOutboundManager(ctrl *gomock.Controller) *OutboundManager {
    28  	mock := &OutboundManager{ctrl: ctrl}
    29  	mock.recorder = &OutboundManagerMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *OutboundManager) EXPECT() *OutboundManagerMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // AddHandler mocks base method
    39  func (m *OutboundManager) AddHandler(arg0 context.Context, arg1 outbound.Handler) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "AddHandler", arg0, arg1)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // AddHandler indicates an expected call of AddHandler
    47  func (mr *OutboundManagerMockRecorder) AddHandler(arg0, arg1 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHandler", reflect.TypeOf((*OutboundManager)(nil).AddHandler), arg0, arg1)
    50  }
    51  
    52  // Close mocks base method
    53  func (m *OutboundManager) Close() error {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "Close")
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  // Close indicates an expected call of Close
    61  func (mr *OutboundManagerMockRecorder) Close() *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*OutboundManager)(nil).Close))
    64  }
    65  
    66  // GetDefaultHandler mocks base method
    67  func (m *OutboundManager) GetDefaultHandler() outbound.Handler {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "GetDefaultHandler")
    70  	ret0, _ := ret[0].(outbound.Handler)
    71  	return ret0
    72  }
    73  
    74  // GetDefaultHandler indicates an expected call of GetDefaultHandler
    75  func (mr *OutboundManagerMockRecorder) GetDefaultHandler() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultHandler", reflect.TypeOf((*OutboundManager)(nil).GetDefaultHandler))
    78  }
    79  
    80  // GetHandler mocks base method
    81  func (m *OutboundManager) GetHandler(arg0 string) outbound.Handler {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "GetHandler", arg0)
    84  	ret0, _ := ret[0].(outbound.Handler)
    85  	return ret0
    86  }
    87  
    88  // GetHandler indicates an expected call of GetHandler
    89  func (mr *OutboundManagerMockRecorder) GetHandler(arg0 interface{}) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandler", reflect.TypeOf((*OutboundManager)(nil).GetHandler), arg0)
    92  }
    93  
    94  // RemoveHandler mocks base method
    95  func (m *OutboundManager) RemoveHandler(arg0 context.Context, arg1 string) error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "RemoveHandler", arg0, arg1)
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // RemoveHandler indicates an expected call of RemoveHandler
   103  func (mr *OutboundManagerMockRecorder) RemoveHandler(arg0, arg1 interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveHandler", reflect.TypeOf((*OutboundManager)(nil).RemoveHandler), arg0, arg1)
   106  }
   107  
   108  // Start mocks base method
   109  func (m *OutboundManager) Start() error {
   110  	m.ctrl.T.Helper()
   111  	ret := m.ctrl.Call(m, "Start")
   112  	ret0, _ := ret[0].(error)
   113  	return ret0
   114  }
   115  
   116  // Start indicates an expected call of Start
   117  func (mr *OutboundManagerMockRecorder) Start() *gomock.Call {
   118  	mr.mock.ctrl.T.Helper()
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*OutboundManager)(nil).Start))
   120  }
   121  
   122  // Type mocks base method
   123  func (m *OutboundManager) Type() interface{} {
   124  	m.ctrl.T.Helper()
   125  	ret := m.ctrl.Call(m, "Type")
   126  	ret0, _ := ret[0].(interface{})
   127  	return ret0
   128  }
   129  
   130  // Type indicates an expected call of Type
   131  func (mr *OutboundManagerMockRecorder) Type() *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*OutboundManager)(nil).Type))
   134  }
   135  
   136  // OutboundHandlerSelector is a mock of HandlerSelector interface
   137  type OutboundHandlerSelector struct {
   138  	ctrl     *gomock.Controller
   139  	recorder *OutboundHandlerSelectorMockRecorder
   140  }
   141  
   142  // OutboundHandlerSelectorMockRecorder is the mock recorder for OutboundHandlerSelector
   143  type OutboundHandlerSelectorMockRecorder struct {
   144  	mock *OutboundHandlerSelector
   145  }
   146  
   147  // NewOutboundHandlerSelector creates a new mock instance
   148  func NewOutboundHandlerSelector(ctrl *gomock.Controller) *OutboundHandlerSelector {
   149  	mock := &OutboundHandlerSelector{ctrl: ctrl}
   150  	mock.recorder = &OutboundHandlerSelectorMockRecorder{mock}
   151  	return mock
   152  }
   153  
   154  // EXPECT returns an object that allows the caller to indicate expected use
   155  func (m *OutboundHandlerSelector) EXPECT() *OutboundHandlerSelectorMockRecorder {
   156  	return m.recorder
   157  }
   158  
   159  // Select mocks base method
   160  func (m *OutboundHandlerSelector) Select(arg0 []string) []string {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "Select", arg0)
   163  	ret0, _ := ret[0].([]string)
   164  	return ret0
   165  }
   166  
   167  // Select indicates an expected call of Select
   168  func (mr *OutboundHandlerSelectorMockRecorder) Select(arg0 interface{}) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Select", reflect.TypeOf((*OutboundHandlerSelector)(nil).Select), arg0)
   171  }