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

// Code generated - this lets golint know to skip this file - DO NOT EDIT.

package legacypermmocks

import beefcake "code.justin.tv/beefcake/server/rpc/beefcake"
import context "context"
import legacyperm "code.justin.tv/beefcake/server/internal/legacyperm"

import mock "github.com/stretchr/testify/mock"

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

// AddRole provides a mock function with given fields: ctx, id, roleID, roleName
func (_m *LegacyPermissionsAPI) AddRole(ctx context.Context, id string, roleID string, roleName string) error {
	ret := _m.Called(ctx, id, roleID, roleName)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok {
		r0 = rf(ctx, id, roleID, roleName)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// All provides a mock function with given fields: ctx
func (_m *LegacyPermissionsAPI) All(ctx context.Context) ([]*beefcake.GetLegacyPermissionsResponse_LegacyPermission, error) {
	ret := _m.Called(ctx)

	var r0 []*beefcake.GetLegacyPermissionsResponse_LegacyPermission
	if rf, ok := ret.Get(0).(func(context.Context) []*beefcake.GetLegacyPermissionsResponse_LegacyPermission); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*beefcake.GetLegacyPermissionsResponse_LegacyPermission)
		}
	}

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

	return r0, r1
}

// Create provides a mock function with given fields: ctx, id, name, description
func (_m *LegacyPermissionsAPI) Create(ctx context.Context, id string, name string, description string) error {
	ret := _m.Called(ctx, id, name, description)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok {
		r0 = rf(ctx, id, name, description)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Delete provides a mock function with given fields: ctx, id
func (_m *LegacyPermissionsAPI) Delete(ctx context.Context, id string) error {
	ret := _m.Called(ctx, id)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, id)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: ctx, id
func (_m *LegacyPermissionsAPI) Get(ctx context.Context, id string) (*legacyperm.LegacyPermission, error) {
	ret := _m.Called(ctx, id)

	var r0 *legacyperm.LegacyPermission
	if rf, ok := ret.Get(0).(func(context.Context, string) *legacyperm.LegacyPermission); ok {
		r0 = rf(ctx, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*legacyperm.LegacyPermission)
		}
	}

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

	return r0, r1
}

// RemoveRole provides a mock function with given fields: ctx, id, roleID
func (_m *LegacyPermissionsAPI) RemoveRole(ctx context.Context, id string, roleID string) error {
	ret := _m.Called(ctx, id, roleID)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
		r0 = rf(ctx, id, roleID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Update provides a mock function with given fields: ctx, id, options
func (_m *LegacyPermissionsAPI) Update(ctx context.Context, id string, options legacyperm.UpdateOptions) error {
	ret := _m.Called(ctx, id, options)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, legacyperm.UpdateOptions) error); ok {
		r0 = rf(ctx, id, options)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
