// Code generated by MockGen. DO NOT EDIT. // Source: edge-infra.dev/pkg/sds/lib/dbus/systemd (interfaces: Restarter) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" systemd "edge-infra.dev/pkg/sds/lib/dbus/systemd" gomock "github.com/golang/mock/gomock" ) // MockRestarter is a mock of Restarter interface. type MockRestarter struct { ctrl *gomock.Controller recorder *MockRestarterMockRecorder } // MockRestarterMockRecorder is the mock recorder for MockRestarter. type MockRestarterMockRecorder struct { mock *MockRestarter } // NewMockRestarter creates a new mock instance. func NewMockRestarter(ctrl *gomock.Controller) *MockRestarter { mock := &MockRestarter{ctrl: ctrl} mock.recorder = &MockRestarterMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockRestarter) EXPECT() *MockRestarterMockRecorder { return m.recorder } // Restart mocks base method. func (m *MockRestarter) Restart(arg0 context.Context, arg1 string, arg2 systemd.Mode, arg3 bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Restart", arg0, arg1, arg2, arg3) ret0, _ := ret[0].(error) return ret0 } // Restart indicates an expected call of Restart. func (mr *MockRestarterMockRecorder) Restart(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Restart", reflect.TypeOf((*MockRestarter)(nil).Restart), arg0, arg1, arg2, arg3) }