2020-11-25 11:01:53 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2020-12-04 01:36:16 +00:00
|
|
|
// Source: github.com/xtls/xray-core/common/log (interfaces: Handler)
|
2020-11-25 11:01:53 +00:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2021-04-09 15:36:48 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-11-25 11:01:53 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-12-04 01:36:16 +00:00
|
|
|
log "github.com/xtls/xray-core/common/log"
|
2020-11-25 11:01:53 +00:00
|
|
|
)
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// LogHandler is a mock of Handler interface.
|
2020-11-25 11:01:53 +00:00
|
|
|
type LogHandler struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *LogHandlerMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// LogHandlerMockRecorder is the mock recorder for LogHandler.
|
2020-11-25 11:01:53 +00:00
|
|
|
type LogHandlerMockRecorder struct {
|
|
|
|
mock *LogHandler
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// NewLogHandler creates a new mock instance.
|
2020-11-25 11:01:53 +00:00
|
|
|
func NewLogHandler(ctrl *gomock.Controller) *LogHandler {
|
|
|
|
mock := &LogHandler{ctrl: ctrl}
|
|
|
|
mock.recorder = &LogHandlerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-11-25 11:01:53 +00:00
|
|
|
func (m *LogHandler) EXPECT() *LogHandlerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// Handle mocks base method.
|
2020-11-25 11:01:53 +00:00
|
|
|
func (m *LogHandler) Handle(arg0 log.Message) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
m.ctrl.Call(m, "Handle", arg0)
|
|
|
|
}
|
|
|
|
|
2021-04-09 15:36:48 +00:00
|
|
|
// Handle indicates an expected call of Handle.
|
2020-11-25 11:01:53 +00:00
|
|
|
func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*LogHandler)(nil).Handle), arg0)
|
|
|
|
}
|