// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/anyproto/any-sync/commonspace/objectmanager (interfaces: ObjectManager)
//
// Generated by this command:
//
//	mockgen -destination mock_objectmanager/mock_objectmanager.go github.com/anyproto/any-sync/commonspace/objectmanager ObjectManager
//

// Package mock_objectmanager is a generated GoMock package.
package mock_objectmanager

import (
	context "context"
	reflect "reflect"

	app "github.com/anyproto/any-sync/app"
	syncobjectgetter "github.com/anyproto/any-sync/commonspace/object/syncobjectgetter"
	objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
	treestorage "github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
	gomock "go.uber.org/mock/gomock"
)

// MockObjectManager is a mock of ObjectManager interface.
type MockObjectManager struct {
	ctrl     *gomock.Controller
	recorder *MockObjectManagerMockRecorder
	isgomock struct{}
}

// MockObjectManagerMockRecorder is the mock recorder for MockObjectManager.
type MockObjectManagerMockRecorder struct {
	mock *MockObjectManager
}

// NewMockObjectManager creates a new mock instance.
func NewMockObjectManager(ctrl *gomock.Controller) *MockObjectManager {
	mock := &MockObjectManager{ctrl: ctrl}
	mock.recorder = &MockObjectManagerMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockObjectManager) EXPECT() *MockObjectManagerMockRecorder {
	return m.recorder
}

// AddObject mocks base method.
func (m *MockObjectManager) AddObject(object syncobjectgetter.SyncObject) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "AddObject", object)
}

// AddObject indicates an expected call of AddObject.
func (mr *MockObjectManagerMockRecorder) AddObject(object any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddObject", reflect.TypeOf((*MockObjectManager)(nil).AddObject), object)
}

// Close mocks base method.
func (m *MockObjectManager) Close(ctx context.Context) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Close", ctx)
	ret0, _ := ret[0].(error)
	return ret0
}

// Close indicates an expected call of Close.
func (mr *MockObjectManagerMockRecorder) Close(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockObjectManager)(nil).Close), ctx)
}

// DeleteTree mocks base method.
func (m *MockObjectManager) DeleteTree(ctx context.Context, spaceId, treeId string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteTree", ctx, spaceId, treeId)
	ret0, _ := ret[0].(error)
	return ret0
}

// DeleteTree indicates an expected call of DeleteTree.
func (mr *MockObjectManagerMockRecorder) DeleteTree(ctx, spaceId, treeId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTree", reflect.TypeOf((*MockObjectManager)(nil).DeleteTree), ctx, spaceId, treeId)
}

// GetObject mocks base method.
func (m *MockObjectManager) GetObject(ctx context.Context, objectId string) (syncobjectgetter.SyncObject, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetObject", ctx, objectId)
	ret0, _ := ret[0].(syncobjectgetter.SyncObject)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetObject indicates an expected call of GetObject.
func (mr *MockObjectManagerMockRecorder) GetObject(ctx, objectId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObject", reflect.TypeOf((*MockObjectManager)(nil).GetObject), ctx, objectId)
}

// GetTree mocks base method.
func (m *MockObjectManager) GetTree(ctx context.Context, spaceId, treeId string) (objecttree.ObjectTree, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetTree", ctx, spaceId, treeId)
	ret0, _ := ret[0].(objecttree.ObjectTree)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetTree indicates an expected call of GetTree.
func (mr *MockObjectManagerMockRecorder) GetTree(ctx, spaceId, treeId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTree", reflect.TypeOf((*MockObjectManager)(nil).GetTree), ctx, spaceId, treeId)
}

// Init mocks base method.
func (m *MockObjectManager) Init(a *app.App) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Init", a)
	ret0, _ := ret[0].(error)
	return ret0
}

// Init indicates an expected call of Init.
func (mr *MockObjectManagerMockRecorder) Init(a any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockObjectManager)(nil).Init), a)
}

// MarkTreeDeleted mocks base method.
func (m *MockObjectManager) MarkTreeDeleted(ctx context.Context, spaceId, treeId string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "MarkTreeDeleted", ctx, spaceId, treeId)
	ret0, _ := ret[0].(error)
	return ret0
}

// MarkTreeDeleted indicates an expected call of MarkTreeDeleted.
func (mr *MockObjectManagerMockRecorder) MarkTreeDeleted(ctx, spaceId, treeId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkTreeDeleted", reflect.TypeOf((*MockObjectManager)(nil).MarkTreeDeleted), ctx, spaceId, treeId)
}

// Name mocks base method.
func (m *MockObjectManager) 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 *MockObjectManagerMockRecorder) Name() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockObjectManager)(nil).Name))
}

// Run mocks base method.
func (m *MockObjectManager) Run(ctx context.Context) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Run", ctx)
	ret0, _ := ret[0].(error)
	return ret0
}

// Run indicates an expected call of Run.
func (mr *MockObjectManagerMockRecorder) Run(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockObjectManager)(nil).Run), ctx)
}

// ValidateAndPutTree mocks base method.
func (m *MockObjectManager) ValidateAndPutTree(ctx context.Context, spaceId string, payload treestorage.TreeStorageCreatePayload) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ValidateAndPutTree", ctx, spaceId, payload)
	ret0, _ := ret[0].(error)
	return ret0
}

// ValidateAndPutTree indicates an expected call of ValidateAndPutTree.
func (mr *MockObjectManagerMockRecorder) ValidateAndPutTree(ctx, spaceId, payload any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAndPutTree", reflect.TypeOf((*MockObjectManager)(nil).ValidateAndPutTree), ctx, spaceId, payload)
}
