// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ChainSafe/gossamer/dot/network (interfaces: Syncer)
//
// Generated by this command:
//
//	mockgen -destination=mock_syncer_test.go -package network . Syncer
//

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

import (
	reflect "reflect"

	messages "github.com/ChainSafe/gossamer/dot/network/messages"
	peer "github.com/libp2p/go-libp2p/core/peer"
	gomock "go.uber.org/mock/gomock"
)

// MockSyncer is a mock of Syncer interface.
type MockSyncer struct {
	ctrl     *gomock.Controller
	recorder *MockSyncerMockRecorder
	isgomock struct{}
}

// MockSyncerMockRecorder is the mock recorder for MockSyncer.
type MockSyncerMockRecorder struct {
	mock *MockSyncer
}

// NewMockSyncer creates a new mock instance.
func NewMockSyncer(ctrl *gomock.Controller) *MockSyncer {
	mock := &MockSyncer{ctrl: ctrl}
	mock.recorder = &MockSyncerMockRecorder{mock}
	return mock
}

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

// CreateBlockResponse mocks base method.
func (m *MockSyncer) CreateBlockResponse(arg0 peer.ID, arg1 *messages.BlockRequestMessage) (*messages.BlockResponseMessage, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateBlockResponse", arg0, arg1)
	ret0, _ := ret[0].(*messages.BlockResponseMessage)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// CreateBlockResponse indicates an expected call of CreateBlockResponse.
func (mr *MockSyncerMockRecorder) CreateBlockResponse(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBlockResponse", reflect.TypeOf((*MockSyncer)(nil).CreateBlockResponse), arg0, arg1)
}

// HandleBlockAnnounce mocks base method.
func (m *MockSyncer) HandleBlockAnnounce(from peer.ID, msg *BlockAnnounceMessage) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "HandleBlockAnnounce", from, msg)
	ret0, _ := ret[0].(error)
	return ret0
}

// HandleBlockAnnounce indicates an expected call of HandleBlockAnnounce.
func (mr *MockSyncerMockRecorder) HandleBlockAnnounce(from, msg any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleBlockAnnounce", reflect.TypeOf((*MockSyncer)(nil).HandleBlockAnnounce), from, msg)
}

// HandleBlockAnnounceHandshake mocks base method.
func (m *MockSyncer) HandleBlockAnnounceHandshake(from peer.ID, msg *BlockAnnounceHandshake) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "HandleBlockAnnounceHandshake", from, msg)
	ret0, _ := ret[0].(error)
	return ret0
}

// HandleBlockAnnounceHandshake indicates an expected call of HandleBlockAnnounceHandshake.
func (mr *MockSyncerMockRecorder) HandleBlockAnnounceHandshake(from, msg any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleBlockAnnounceHandshake", reflect.TypeOf((*MockSyncer)(nil).HandleBlockAnnounceHandshake), from, msg)
}

// IsSynced mocks base method.
func (m *MockSyncer) IsSynced() bool {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IsSynced")
	ret0, _ := ret[0].(bool)
	return ret0
}

// IsSynced indicates an expected call of IsSynced.
func (mr *MockSyncerMockRecorder) IsSynced() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSynced", reflect.TypeOf((*MockSyncer)(nil).IsSynced))
}

// OnConnectionClosed mocks base method.
func (m *MockSyncer) OnConnectionClosed(arg0 peer.ID) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "OnConnectionClosed", arg0)
}

// OnConnectionClosed indicates an expected call of OnConnectionClosed.
func (mr *MockSyncerMockRecorder) OnConnectionClosed(arg0 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnConnectionClosed", reflect.TypeOf((*MockSyncer)(nil).OnConnectionClosed), arg0)
}
