// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/erigontech/erigon/cl/p2p (interfaces: P2PManager)
//
// Generated by this command:
//
//	mockgen -destination=./mock_services/p2p_manager_mock.go -package=mock_services . P2PManager
//

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

import (
	reflect "reflect"

	discover "github.com/erigontech/erigon/p2p/discover"
	pubsub "github.com/libp2p/go-libp2p-pubsub"
	host "github.com/libp2p/go-libp2p/core/host"
	metrics "github.com/libp2p/go-libp2p/core/metrics"
	gomock "go.uber.org/mock/gomock"
)

// MockP2PManager is a mock of P2PManager interface.
type MockP2PManager struct {
	ctrl     *gomock.Controller
	recorder *MockP2PManagerMockRecorder
	isgomock struct{}
}

// MockP2PManagerMockRecorder is the mock recorder for MockP2PManager.
type MockP2PManagerMockRecorder struct {
	mock *MockP2PManager
}

// NewMockP2PManager creates a new mock instance.
func NewMockP2PManager(ctrl *gomock.Controller) *MockP2PManager {
	mock := &MockP2PManager{ctrl: ctrl}
	mock.recorder = &MockP2PManagerMockRecorder{mock}
	return mock
}

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

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

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

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

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

// Pubsub mocks base method.
func (m *MockP2PManager) Pubsub() *pubsub.PubSub {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Pubsub")
	ret0, _ := ret[0].(*pubsub.PubSub)
	return ret0
}

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

// UDPv5Listener mocks base method.
func (m *MockP2PManager) UDPv5Listener() *discover.UDPv5 {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UDPv5Listener")
	ret0, _ := ret[0].(*discover.UDPv5)
	return ret0
}

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

// UpdateENRAttSubnets mocks base method.
func (m *MockP2PManager) UpdateENRAttSubnets(subnetIndex int, on bool) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "UpdateENRAttSubnets", subnetIndex, on)
}

// UpdateENRAttSubnets indicates an expected call of UpdateENRAttSubnets.
func (mr *MockP2PManagerMockRecorder) UpdateENRAttSubnets(subnetIndex, on any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateENRAttSubnets", reflect.TypeOf((*MockP2PManager)(nil).UpdateENRAttSubnets), subnetIndex, on)
}

// UpdateENRSyncNets mocks base method.
func (m *MockP2PManager) UpdateENRSyncNets(subnetIndex int, on bool) {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "UpdateENRSyncNets", subnetIndex, on)
}

// UpdateENRSyncNets indicates an expected call of UpdateENRSyncNets.
func (mr *MockP2PManagerMockRecorder) UpdateENRSyncNets(subnetIndex, on any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateENRSyncNets", reflect.TypeOf((*MockP2PManager)(nil).UpdateENRSyncNets), subnetIndex, on)
}

