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

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

package usermocks

import beefcake "code.justin.tv/beefcake/server/rpc/beefcake"
import context "context"
import mock "github.com/stretchr/testify/mock"
import time "time"
import user "code.justin.tv/beefcake/server/internal/user"

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

// AddRoleMembership provides a mock function with given fields: ctx, userID, role, perms
func (_m *UsersAPI) AddRoleMembership(ctx context.Context, userID string, role *beefcake.User_RoleMembership, perms user.Permissions) error {
	ret := _m.Called(ctx, userID, role, perms)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *beefcake.User_RoleMembership, user.Permissions) error); ok {
		r0 = rf(ctx, userID, role, perms)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: ctx, userID
func (_m *UsersAPI) Get(ctx context.Context, userID string) (*user.User, error) {
	ret := _m.Called(ctx, userID)

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

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

	return r0, r1
}

// RemovePermissions provides a mock function with given fields: ctx, userID, perms
func (_m *UsersAPI) RemovePermissions(ctx context.Context, userID string, perms user.Permissions) error {
	ret := _m.Called(ctx, userID, perms)

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

	return r0
}

// RemoveRoleMembership provides a mock function with given fields: ctx, userID, roleID, perms
func (_m *UsersAPI) RemoveRoleMembership(ctx context.Context, userID string, roleID string, perms user.Permissions) error {
	ret := _m.Called(ctx, userID, roleID, perms)

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

	return r0
}

// UpdateAccessTime provides a mock function with given fields: ctx, userID, lastAccessTime
func (_m *UsersAPI) UpdateAccessTime(ctx context.Context, userID string, lastAccessTime time.Time) error {
	ret := _m.Called(ctx, userID, lastAccessTime)

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

	return r0
}
