// Code generated by mockery v1.0.0. DO NOT EDIT.

package mocks

import mock "github.com/stretchr/testify/mock"
import policies "github.com/hyperledger/fabric/common/policies"

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

// NewPolicy provides a mock function with given fields: channelConfigPolicyReference
func (_m *ChannelPolicyReferenceProvider) NewPolicy(channelConfigPolicyReference string) (policies.Policy, error) {
	ret := _m.Called(channelConfigPolicyReference)

	var r0 policies.Policy
	if rf, ok := ret.Get(0).(func(string) policies.Policy); ok {
		r0 = rf(channelConfigPolicyReference)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(policies.Policy)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(channelConfigPolicyReference)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
