// Code generated by mockery. DO NOT EDIT.

package mock_filesync

import (
	context "context"

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

	domain "github.com/anyproto/anytype-heart/core/domain"

	filesync "github.com/anyproto/anytype-heart/core/files/filesync"

	http "net/http"

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

// MockFileSync is an autogenerated mock type for the FileSync type
type MockFileSync struct {
	mock.Mock
}

type MockFileSync_Expecter struct {
	mock *mock.Mock
}

func (_m *MockFileSync) EXPECT() *MockFileSync_Expecter {
	return &MockFileSync_Expecter{mock: &_m.Mock}
}

// AddFile provides a mock function with given fields: req
func (_m *MockFileSync) AddFile(req filesync.AddFileRequest) error {
	ret := _m.Called(req)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(filesync.AddFileRequest) error); ok {
		r0 = rf(req)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// AddFile is a helper method to define mock.On call
//   - req filesync.AddFileRequest
func (_e *MockFileSync_Expecter) AddFile(req interface{}) *MockFileSync_AddFile_Call {
	return &MockFileSync_AddFile_Call{Call: _e.mock.On("AddFile", req)}
}

func (_c *MockFileSync_AddFile_Call) Run(run func(req filesync.AddFileRequest)) *MockFileSync_AddFile_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(filesync.AddFileRequest))
	})
	return _c
}

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

func (_c *MockFileSync_AddFile_Call) RunAndReturn(run func(filesync.AddFileRequest) error) *MockFileSync_AddFile_Call {
	_c.Call.Return(run)
	return _c
}

// CancelDeletion provides a mock function with given fields: objectId, fileId
func (_m *MockFileSync) CancelDeletion(objectId string, fileId domain.FullFileId) error {
	ret := _m.Called(objectId, fileId)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(string, domain.FullFileId) error); ok {
		r0 = rf(objectId, fileId)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// CancelDeletion is a helper method to define mock.On call
//   - objectId string
//   - fileId domain.FullFileId
func (_e *MockFileSync_Expecter) CancelDeletion(objectId interface{}, fileId interface{}) *MockFileSync_CancelDeletion_Call {
	return &MockFileSync_CancelDeletion_Call{Call: _e.mock.On("CancelDeletion", objectId, fileId)}
}

func (_c *MockFileSync_CancelDeletion_Call) Run(run func(objectId string, fileId domain.FullFileId)) *MockFileSync_CancelDeletion_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string), args[1].(domain.FullFileId))
	})
	return _c
}

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

func (_c *MockFileSync_CancelDeletion_Call) RunAndReturn(run func(string, domain.FullFileId) error) *MockFileSync_CancelDeletion_Call {
	_c.Call.Return(run)
	return _c
}

// ClearImportEvents provides a mock function with given fields:
func (_m *MockFileSync) ClearImportEvents() {
	_m.Called()
}

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

// ClearImportEvents is a helper method to define mock.On call
func (_e *MockFileSync_Expecter) ClearImportEvents() *MockFileSync_ClearImportEvents_Call {
	return &MockFileSync_ClearImportEvents_Call{Call: _e.mock.On("ClearImportEvents")}
}

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

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

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

// Close provides a mock function with given fields: ctx
func (_m *MockFileSync) Close(ctx context.Context) error {
	ret := _m.Called(ctx)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
		r0 = rf(ctx)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

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

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

// DebugQueue provides a mock function with given fields: _a0
func (_m *MockFileSync) DebugQueue(_a0 *http.Request) (*filesync.QueueInfo, error) {
	ret := _m.Called(_a0)

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

	var r0 *filesync.QueueInfo
	var r1 error
	if rf, ok := ret.Get(0).(func(*http.Request) (*filesync.QueueInfo, error)); ok {
		return rf(_a0)
	}
	if rf, ok := ret.Get(0).(func(*http.Request) *filesync.QueueInfo); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*filesync.QueueInfo)
		}
	}

	if rf, ok := ret.Get(1).(func(*http.Request) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// DebugQueue is a helper method to define mock.On call
//   - _a0 *http.Request
func (_e *MockFileSync_Expecter) DebugQueue(_a0 interface{}) *MockFileSync_DebugQueue_Call {
	return &MockFileSync_DebugQueue_Call{Call: _e.mock.On("DebugQueue", _a0)}
}

func (_c *MockFileSync_DebugQueue_Call) Run(run func(_a0 *http.Request)) *MockFileSync_DebugQueue_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*http.Request))
	})
	return _c
}

func (_c *MockFileSync_DebugQueue_Call) Return(_a0 *filesync.QueueInfo, _a1 error) *MockFileSync_DebugQueue_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockFileSync_DebugQueue_Call) RunAndReturn(run func(*http.Request) (*filesync.QueueInfo, error)) *MockFileSync_DebugQueue_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteFile provides a mock function with given fields: objectId, fileId
func (_m *MockFileSync) DeleteFile(objectId string, fileId domain.FullFileId) error {
	ret := _m.Called(objectId, fileId)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(string, domain.FullFileId) error); ok {
		r0 = rf(objectId, fileId)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// DeleteFile is a helper method to define mock.On call
//   - objectId string
//   - fileId domain.FullFileId
func (_e *MockFileSync_Expecter) DeleteFile(objectId interface{}, fileId interface{}) *MockFileSync_DeleteFile_Call {
	return &MockFileSync_DeleteFile_Call{Call: _e.mock.On("DeleteFile", objectId, fileId)}
}

func (_c *MockFileSync_DeleteFile_Call) Run(run func(objectId string, fileId domain.FullFileId)) *MockFileSync_DeleteFile_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string), args[1].(domain.FullFileId))
	})
	return _c
}

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

func (_c *MockFileSync_DeleteFile_Call) RunAndReturn(run func(string, domain.FullFileId) error) *MockFileSync_DeleteFile_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteFileSynchronously provides a mock function with given fields: fileId
func (_m *MockFileSync) DeleteFileSynchronously(fileId domain.FullFileId) error {
	ret := _m.Called(fileId)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(domain.FullFileId) error); ok {
		r0 = rf(fileId)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// DeleteFileSynchronously is a helper method to define mock.On call
//   - fileId domain.FullFileId
func (_e *MockFileSync_Expecter) DeleteFileSynchronously(fileId interface{}) *MockFileSync_DeleteFileSynchronously_Call {
	return &MockFileSync_DeleteFileSynchronously_Call{Call: _e.mock.On("DeleteFileSynchronously", fileId)}
}

func (_c *MockFileSync_DeleteFileSynchronously_Call) Run(run func(fileId domain.FullFileId)) *MockFileSync_DeleteFileSynchronously_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(domain.FullFileId))
	})
	return _c
}

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

func (_c *MockFileSync_DeleteFileSynchronously_Call) RunAndReturn(run func(domain.FullFileId) error) *MockFileSync_DeleteFileSynchronously_Call {
	_c.Call.Return(run)
	return _c
}

// Init provides a mock function with given fields: a
func (_m *MockFileSync) 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
}

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

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

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

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

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

// Name provides a mock function with given fields:
func (_m *MockFileSync) 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
}

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

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

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

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

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

// NodeUsage provides a mock function with given fields: ctx
func (_m *MockFileSync) NodeUsage(ctx context.Context) (filesync.NodeUsage, error) {
	ret := _m.Called(ctx)

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

	var r0 filesync.NodeUsage
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context) (filesync.NodeUsage, error)); ok {
		return rf(ctx)
	}
	if rf, ok := ret.Get(0).(func(context.Context) filesync.NodeUsage); ok {
		r0 = rf(ctx)
	} else {
		r0 = ret.Get(0).(filesync.NodeUsage)
	}

	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
		r1 = rf(ctx)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

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

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

func (_c *MockFileSync_NodeUsage_Call) Return(usage filesync.NodeUsage, err error) *MockFileSync_NodeUsage_Call {
	_c.Call.Return(usage, err)
	return _c
}

func (_c *MockFileSync_NodeUsage_Call) RunAndReturn(run func(context.Context) (filesync.NodeUsage, error)) *MockFileSync_NodeUsage_Call {
	_c.Call.Return(run)
	return _c
}

// OnDelete provides a mock function with given fields: _a0
func (_m *MockFileSync) OnDelete(_a0 filesync.DeleteCallback) {
	_m.Called(_a0)
}

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

// OnDelete is a helper method to define mock.On call
//   - _a0 filesync.DeleteCallback
func (_e *MockFileSync_Expecter) OnDelete(_a0 interface{}) *MockFileSync_OnDelete_Call {
	return &MockFileSync_OnDelete_Call{Call: _e.mock.On("OnDelete", _a0)}
}

func (_c *MockFileSync_OnDelete_Call) Run(run func(_a0 filesync.DeleteCallback)) *MockFileSync_OnDelete_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(filesync.DeleteCallback))
	})
	return _c
}

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

func (_c *MockFileSync_OnDelete_Call) RunAndReturn(run func(filesync.DeleteCallback)) *MockFileSync_OnDelete_Call {
	_c.Call.Return(run)
	return _c
}

// OnLimited provides a mock function with given fields: _a0
func (_m *MockFileSync) OnLimited(_a0 filesync.LimitCallback) {
	_m.Called(_a0)
}

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

// OnLimited is a helper method to define mock.On call
//   - _a0 filesync.LimitCallback
func (_e *MockFileSync_Expecter) OnLimited(_a0 interface{}) *MockFileSync_OnLimited_Call {
	return &MockFileSync_OnLimited_Call{Call: _e.mock.On("OnLimited", _a0)}
}

func (_c *MockFileSync_OnLimited_Call) Run(run func(_a0 filesync.LimitCallback)) *MockFileSync_OnLimited_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(filesync.LimitCallback))
	})
	return _c
}

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

func (_c *MockFileSync_OnLimited_Call) RunAndReturn(run func(filesync.LimitCallback)) *MockFileSync_OnLimited_Call {
	_c.Call.Return(run)
	return _c
}

// OnUploadStarted provides a mock function with given fields: _a0
func (_m *MockFileSync) OnUploadStarted(_a0 filesync.StatusCallback) {
	_m.Called(_a0)
}

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

// OnUploadStarted is a helper method to define mock.On call
//   - _a0 filesync.StatusCallback
func (_e *MockFileSync_Expecter) OnUploadStarted(_a0 interface{}) *MockFileSync_OnUploadStarted_Call {
	return &MockFileSync_OnUploadStarted_Call{Call: _e.mock.On("OnUploadStarted", _a0)}
}

func (_c *MockFileSync_OnUploadStarted_Call) Run(run func(_a0 filesync.StatusCallback)) *MockFileSync_OnUploadStarted_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(filesync.StatusCallback))
	})
	return _c
}

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

func (_c *MockFileSync_OnUploadStarted_Call) RunAndReturn(run func(filesync.StatusCallback)) *MockFileSync_OnUploadStarted_Call {
	_c.Call.Return(run)
	return _c
}

// OnUploaded provides a mock function with given fields: _a0
func (_m *MockFileSync) OnUploaded(_a0 filesync.StatusCallback) {
	_m.Called(_a0)
}

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

// OnUploaded is a helper method to define mock.On call
//   - _a0 filesync.StatusCallback
func (_e *MockFileSync_Expecter) OnUploaded(_a0 interface{}) *MockFileSync_OnUploaded_Call {
	return &MockFileSync_OnUploaded_Call{Call: _e.mock.On("OnUploaded", _a0)}
}

func (_c *MockFileSync_OnUploaded_Call) Run(run func(_a0 filesync.StatusCallback)) *MockFileSync_OnUploaded_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(filesync.StatusCallback))
	})
	return _c
}

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

func (_c *MockFileSync_OnUploaded_Call) RunAndReturn(run func(filesync.StatusCallback)) *MockFileSync_OnUploaded_Call {
	_c.Call.Return(run)
	return _c
}

// Run provides a mock function with given fields: ctx
func (_m *MockFileSync) Run(ctx context.Context) error {
	ret := _m.Called(ctx)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
		r0 = rf(ctx)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

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

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

// SendImportEvents provides a mock function with given fields:
func (_m *MockFileSync) SendImportEvents() {
	_m.Called()
}

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

// SendImportEvents is a helper method to define mock.On call
func (_e *MockFileSync_Expecter) SendImportEvents() *MockFileSync_SendImportEvents_Call {
	return &MockFileSync_SendImportEvents_Call{Call: _e.mock.On("SendImportEvents")}
}

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

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

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

// SpaceStat provides a mock function with given fields: ctx, spaceId
func (_m *MockFileSync) SpaceStat(ctx context.Context, spaceId string) (filesync.SpaceStat, error) {
	ret := _m.Called(ctx, spaceId)

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

	var r0 filesync.SpaceStat
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string) (filesync.SpaceStat, error)); ok {
		return rf(ctx, spaceId)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string) filesync.SpaceStat); ok {
		r0 = rf(ctx, spaceId)
	} else {
		r0 = ret.Get(0).(filesync.SpaceStat)
	}

	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, spaceId)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// SpaceStat is a helper method to define mock.On call
//   - ctx context.Context
//   - spaceId string
func (_e *MockFileSync_Expecter) SpaceStat(ctx interface{}, spaceId interface{}) *MockFileSync_SpaceStat_Call {
	return &MockFileSync_SpaceStat_Call{Call: _e.mock.On("SpaceStat", ctx, spaceId)}
}

func (_c *MockFileSync_SpaceStat_Call) Run(run func(ctx context.Context, spaceId string)) *MockFileSync_SpaceStat_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(string))
	})
	return _c
}

func (_c *MockFileSync_SpaceStat_Call) Return(ss filesync.SpaceStat, err error) *MockFileSync_SpaceStat_Call {
	_c.Call.Return(ss, err)
	return _c
}

func (_c *MockFileSync_SpaceStat_Call) RunAndReturn(run func(context.Context, string) (filesync.SpaceStat, error)) *MockFileSync_SpaceStat_Call {
	_c.Call.Return(run)
	return _c
}

// UpdateNodeUsage provides a mock function with given fields: ctx
func (_m *MockFileSync) UpdateNodeUsage(ctx context.Context) error {
	ret := _m.Called(ctx)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
		r0 = rf(ctx)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

func (_c *MockFileSync_UpdateNodeUsage_Call) Return(_a0 error) *MockFileSync_UpdateNodeUsage_Call {
	_c.Call.Return(_a0)
	return _c
}

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

// UploadSynchronously provides a mock function with given fields: ctx, spaceId, fileId
func (_m *MockFileSync) UploadSynchronously(ctx context.Context, spaceId string, fileId domain.FileId) error {
	ret := _m.Called(ctx, spaceId, fileId)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, domain.FileId) error); ok {
		r0 = rf(ctx, spaceId, fileId)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// UploadSynchronously is a helper method to define mock.On call
//   - ctx context.Context
//   - spaceId string
//   - fileId domain.FileId
func (_e *MockFileSync_Expecter) UploadSynchronously(ctx interface{}, spaceId interface{}, fileId interface{}) *MockFileSync_UploadSynchronously_Call {
	return &MockFileSync_UploadSynchronously_Call{Call: _e.mock.On("UploadSynchronously", ctx, spaceId, fileId)}
}

func (_c *MockFileSync_UploadSynchronously_Call) Run(run func(ctx context.Context, spaceId string, fileId domain.FileId)) *MockFileSync_UploadSynchronously_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(string), args[2].(domain.FileId))
	})
	return _c
}

func (_c *MockFileSync_UploadSynchronously_Call) Return(_a0 error) *MockFileSync_UploadSynchronously_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockFileSync_UploadSynchronously_Call) RunAndReturn(run func(context.Context, string, domain.FileId) error) *MockFileSync_UploadSynchronously_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockFileSync creates a new instance of MockFileSync. 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 NewMockFileSync(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileSync {
	mock := &MockFileSync{}
	mock.Mock.Test(t)

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

	return mock
}
