// Code generated by "./generator ./com.deepin.daemon.fprintd"; DO NOT EDIT.

// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package EventLog

import (
	"fmt"

	"github.com/godbus/dbus"
	"github.com/linuxdeepin/go-lib/dbusutil/proxy"
	"github.com/stretchr/testify/mock"
)

type MockEventLog struct {
	MockInterfaceEventLog // interface com.deepin.daemon.EventLog
	proxy.MockObject
}

type MockInterfaceEventLog struct {
	mock.Mock
}

// method Enable

func (v *MockInterfaceEventLog) GoEnable(flags dbus.Flags, ch chan *dbus.Call, enable bool) *dbus.Call {
	mockArgs := v.Called(flags, ch, enable)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceEventLog) Enable(flags dbus.Flags, enable bool) error {
	mockArgs := v.Called(flags, enable)

	return mockArgs.Error(0)
}

// method ReportLog

func (v *MockInterfaceEventLog) GoReportLog(flags dbus.Flags, ch chan *dbus.Call, log string) *dbus.Call {
	mockArgs := v.Called(flags, ch, log)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceEventLog) ReportLog(flags dbus.Flags, log string) error {
	mockArgs := v.Called(flags, log)

	return mockArgs.Error(0)
}

// property Enabled b

func (v *MockInterfaceEventLog) Enabled() proxy.PropBool {
	mockArgs := v.Called()

	ret0, ok := mockArgs.Get(0).(*proxy.MockPropBool)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0)))
	}

	return ret0
}
