// Code generated by mockery. DO NOT EDIT.

package mock_device

import (
	context "context"

	app "github.com/anyproto/any-sync/app"

	mock "github.com/stretchr/testify/mock"
)

// MockopenedObjectRefresher is an autogenerated mock type for the openedObjectRefresher type
type MockopenedObjectRefresher struct {
	mock.Mock
}

type MockopenedObjectRefresher_Expecter struct {
	mock *mock.Mock
}

func (_m *MockopenedObjectRefresher) EXPECT() *MockopenedObjectRefresher_Expecter {
	return &MockopenedObjectRefresher_Expecter{mock: &_m.Mock}
}

// Init provides a mock function with given fields: a
func (_m *MockopenedObjectRefresher) Init(a *app.App) error {
	ret := _m.Called(a)

	if len(ret) == 0 {
		panic("no return value specified for Init")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(*app.App) error); ok {
		r0 = rf(a)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockopenedObjectRefresher_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type MockopenedObjectRefresher_Init_Call struct {
	*mock.Call
}

// Init is a helper method to define mock.On call
//   - a *app.App
func (_e *MockopenedObjectRefresher_Expecter) Init(a interface{}) *MockopenedObjectRefresher_Init_Call {
	return &MockopenedObjectRefresher_Init_Call{Call: _e.mock.On("Init", a)}
}

func (_c *MockopenedObjectRefresher_Init_Call) Run(run func(a *app.App)) *MockopenedObjectRefresher_Init_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*app.App))
	})
	return _c
}

func (_c *MockopenedObjectRefresher_Init_Call) Return(err error) *MockopenedObjectRefresher_Init_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockopenedObjectRefresher_Init_Call) RunAndReturn(run func(*app.App) error) *MockopenedObjectRefresher_Init_Call {
	_c.Call.Return(run)
	return _c
}

// Name provides a mock function with given fields:
func (_m *MockopenedObjectRefresher) Name() string {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for Name")
	}

	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}

	return r0
}

// MockopenedObjectRefresher_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
type MockopenedObjectRefresher_Name_Call struct {
	*mock.Call
}

// Name is a helper method to define mock.On call
func (_e *MockopenedObjectRefresher_Expecter) Name() *MockopenedObjectRefresher_Name_Call {
	return &MockopenedObjectRefresher_Name_Call{Call: _e.mock.On("Name")}
}

func (_c *MockopenedObjectRefresher_Name_Call) Run(run func()) *MockopenedObjectRefresher_Name_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockopenedObjectRefresher_Name_Call) Return(name string) *MockopenedObjectRefresher_Name_Call {
	_c.Call.Return(name)
	return _c
}

func (_c *MockopenedObjectRefresher_Name_Call) RunAndReturn(run func() string) *MockopenedObjectRefresher_Name_Call {
	_c.Call.Return(run)
	return _c
}

// RefreshOpenedObjects provides a mock function with given fields: ctx
func (_m *MockopenedObjectRefresher) RefreshOpenedObjects(ctx context.Context) {
	_m.Called(ctx)
}

// MockopenedObjectRefresher_RefreshOpenedObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshOpenedObjects'
type MockopenedObjectRefresher_RefreshOpenedObjects_Call struct {
	*mock.Call
}

// RefreshOpenedObjects is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockopenedObjectRefresher_Expecter) RefreshOpenedObjects(ctx interface{}) *MockopenedObjectRefresher_RefreshOpenedObjects_Call {
	return &MockopenedObjectRefresher_RefreshOpenedObjects_Call{Call: _e.mock.On("RefreshOpenedObjects", ctx)}
}

func (_c *MockopenedObjectRefresher_RefreshOpenedObjects_Call) Run(run func(ctx context.Context)) *MockopenedObjectRefresher_RefreshOpenedObjects_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *MockopenedObjectRefresher_RefreshOpenedObjects_Call) Return() *MockopenedObjectRefresher_RefreshOpenedObjects_Call {
	_c.Call.Return()
	return _c
}

func (_c *MockopenedObjectRefresher_RefreshOpenedObjects_Call) RunAndReturn(run func(context.Context)) *MockopenedObjectRefresher_RefreshOpenedObjects_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockopenedObjectRefresher creates a new instance of MockopenedObjectRefresher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockopenedObjectRefresher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockopenedObjectRefresher {
	mock := &MockopenedObjectRefresher{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
