// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/erigontech/erigon/cl/phase1/network/gossip (interfaces: Gossip)
//
// Generated by this command:
//
//	mockgen -destination=./mock_services/gossip_mock.go -package=mock_services . Gossip
//

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

import (
	context "context"
	reflect "reflect"
	time "time"

	gomock "go.uber.org/mock/gomock"
)

// MockGossip is a mock of Gossip interface.
type MockGossip struct {
	ctrl     *gomock.Controller
	recorder *MockGossipMockRecorder
	isgomock struct{}
}

// MockGossipMockRecorder is the mock recorder for MockGossip.
type MockGossipMockRecorder struct {
	mock *MockGossip
}

// NewMockGossip creates a new mock instance.
func NewMockGossip(ctrl *gomock.Controller) *MockGossip {
	mock := &MockGossip{ctrl: ctrl}
	mock.recorder = &MockGossipMockRecorder{mock}
	return mock
}

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

// Publish mocks base method.
func (m *MockGossip) Publish(ctx context.Context, name string, data []byte) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Publish", ctx, name, data)
	ret0, _ := ret[0].(error)
	return ret0
}

// Publish indicates an expected call of Publish.
func (mr *MockGossipMockRecorder) Publish(ctx, name, data any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockGossip)(nil).Publish), ctx, name, data)
}

// SubscribeWithExpiry mocks base method.
func (m *MockGossip) SubscribeWithExpiry(name string, expiry time.Time) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SubscribeWithExpiry", name, expiry)
	ret0, _ := ret[0].(error)
	return ret0
}

// SubscribeWithExpiry indicates an expected call of SubscribeWithExpiry.
func (mr *MockGossipMockRecorder) SubscribeWithExpiry(name, expiry any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeWithExpiry", reflect.TypeOf((*MockGossip)(nil).SubscribeWithExpiry), name, expiry)
}
