2023-05-29 16:00:18 +02:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/netbirdio/netbird/client/internal/acl (interfaces: IFaceMapper)
|
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
iface "github.com/netbirdio/netbird/iface"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockIFaceMapper is a mock of IFaceMapper interface.
|
|
|
|
type MockIFaceMapper struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockIFaceMapperMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockIFaceMapperMockRecorder is the mock recorder for MockIFaceMapper.
|
|
|
|
type MockIFaceMapperMockRecorder struct {
|
|
|
|
mock *MockIFaceMapper
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockIFaceMapper creates a new mock instance.
|
|
|
|
func NewMockIFaceMapper(ctrl *gomock.Controller) *MockIFaceMapper {
|
|
|
|
mock := &MockIFaceMapper{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockIFaceMapperMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockIFaceMapper) EXPECT() *MockIFaceMapperMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-06-07 15:24:27 +02:00
|
|
|
// Address mocks base method.
|
|
|
|
func (m *MockIFaceMapper) Address() iface.WGAddress {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Address")
|
|
|
|
ret0, _ := ret[0].(iface.WGAddress)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Address indicates an expected call of Address.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) Address() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockIFaceMapper)(nil).Address))
|
|
|
|
}
|
|
|
|
|
2023-05-29 16:00:18 +02:00
|
|
|
// IsUserspaceBind mocks base method.
|
|
|
|
func (m *MockIFaceMapper) IsUserspaceBind() bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "IsUserspaceBind")
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsUserspaceBind indicates an expected call of IsUserspaceBind.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) IsUserspaceBind() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserspaceBind", reflect.TypeOf((*MockIFaceMapper)(nil).IsUserspaceBind))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name mocks base method.
|
|
|
|
func (m *MockIFaceMapper) Name() string {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Name")
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name indicates an expected call of Name.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) Name() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockIFaceMapper)(nil).Name))
|
|
|
|
}
|
|
|
|
|
2023-06-08 11:46:57 +02:00
|
|
|
// SetFilter mocks base method.
|
|
|
|
func (m *MockIFaceMapper) SetFilter(arg0 iface.PacketFilter) error {
|
2023-05-29 16:00:18 +02:00
|
|
|
m.ctrl.T.Helper()
|
2023-06-08 11:46:57 +02:00
|
|
|
ret := m.ctrl.Call(m, "SetFilter", arg0)
|
2023-05-29 16:00:18 +02:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-06-08 11:46:57 +02:00
|
|
|
// SetFilter indicates an expected call of SetFilter.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) SetFilter(arg0 interface{}) *gomock.Call {
|
2023-05-29 16:00:18 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-06-08 11:46:57 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilter", reflect.TypeOf((*MockIFaceMapper)(nil).SetFilter), arg0)
|
2023-05-29 16:00:18 +02:00
|
|
|
}
|