2018-10-25 03:32:03 -04:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-02-16 15:31:50 -05:00
|
|
|
// Source: github.com/v2fly/v2ray-core/v4/common/mux (interfaces: ClientWorkerFactory)
|
2018-10-25 03:32:03 -04:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2021-02-20 07:43:19 -05:00
|
|
|
reflect "reflect"
|
|
|
|
|
2018-10-25 03:32:03 -04:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2021-03-13 18:09:51 -05:00
|
|
|
|
2021-02-16 15:31:50 -05:00
|
|
|
mux "github.com/v2fly/v2ray-core/v4/common/mux"
|
2018-10-25 03:32:03 -04:00
|
|
|
)
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// MuxClientWorkerFactory is a mock of ClientWorkerFactory interface.
|
2018-10-25 03:32:03 -04:00
|
|
|
type MuxClientWorkerFactory struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MuxClientWorkerFactoryMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// MuxClientWorkerFactoryMockRecorder is the mock recorder for MuxClientWorkerFactory.
|
2018-10-25 03:32:03 -04:00
|
|
|
type MuxClientWorkerFactoryMockRecorder struct {
|
|
|
|
mock *MuxClientWorkerFactory
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// NewMuxClientWorkerFactory creates a new mock instance.
|
2018-10-25 03:32:03 -04:00
|
|
|
func NewMuxClientWorkerFactory(ctrl *gomock.Controller) *MuxClientWorkerFactory {
|
|
|
|
mock := &MuxClientWorkerFactory{ctrl: ctrl}
|
|
|
|
mock.recorder = &MuxClientWorkerFactoryMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2018-10-25 03:32:03 -04:00
|
|
|
func (m *MuxClientWorkerFactory) EXPECT() *MuxClientWorkerFactoryMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Create mocks base method.
|
2018-10-25 03:32:03 -04:00
|
|
|
func (m *MuxClientWorkerFactory) Create() (*mux.ClientWorker, error) {
|
2018-12-27 10:37:13 -05:00
|
|
|
m.ctrl.T.Helper()
|
2018-10-25 03:32:03 -04:00
|
|
|
ret := m.ctrl.Call(m, "Create")
|
|
|
|
ret0, _ := ret[0].(*mux.ClientWorker)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-02-20 07:43:19 -05:00
|
|
|
// Create indicates an expected call of Create.
|
2018-10-25 03:32:03 -04:00
|
|
|
func (mr *MuxClientWorkerFactoryMockRecorder) Create() *gomock.Call {
|
2018-12-27 10:37:13 -05:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-10-25 03:32:03 -04:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MuxClientWorkerFactory)(nil).Create))
|
|
|
|
}
|