// Code generated by MockGen. DO NOT EDIT.
// Source: resolver.go
//
// Generated by this command:
//
//	mockgen -destination=mocks/mock_resolver.go -package=mocks -source=resolver.go Resolver
//

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

import (
	context "context"
	reflect "reflect"

	v1beta1 "github.com/stacklok/toolhive/cmd/thv-operator/api/v1beta1"
	oidc "github.com/stacklok/toolhive/cmd/thv-operator/pkg/oidc"
	gomock "go.uber.org/mock/gomock"
)

// MockResolver is a mock of Resolver interface.
type MockResolver struct {
	ctrl     *gomock.Controller
	recorder *MockResolverMockRecorder
	isgomock struct{}
}

// MockResolverMockRecorder is the mock recorder for MockResolver.
type MockResolverMockRecorder struct {
	mock *MockResolver
}

// NewMockResolver creates a new mock instance.
func NewMockResolver(ctrl *gomock.Controller) *MockResolver {
	mock := &MockResolver{ctrl: ctrl}
	mock.recorder = &MockResolverMockRecorder{mock}
	return mock
}

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

// ResolveFromConfigRef mocks base method.
func (m *MockResolver) ResolveFromConfigRef(ctx context.Context, oidcConfigRef *v1beta1.MCPOIDCConfigReference, oidcConfig *v1beta1.MCPOIDCConfig, serverName, namespace string, proxyPort int32) (*oidc.OIDCConfig, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ResolveFromConfigRef", ctx, oidcConfigRef, oidcConfig, serverName, namespace, proxyPort)
	ret0, _ := ret[0].(*oidc.OIDCConfig)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ResolveFromConfigRef indicates an expected call of ResolveFromConfigRef.
func (mr *MockResolverMockRecorder) ResolveFromConfigRef(ctx, oidcConfigRef, oidcConfig, serverName, namespace, proxyPort any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveFromConfigRef", reflect.TypeOf((*MockResolver)(nil).ResolveFromConfigRef), ctx, oidcConfigRef, oidcConfig, serverName, namespace, proxyPort)
}
