blob: 5822c1834687340f80c0221ba0926eafcac287b1 [file] [log] [blame]
// Code generated by mockery v2.4.0. DO NOT EDIT.
package mocks
import (
http "net/http"
alogin "go.skia.org/infra/go/alogin"
mock "github.com/stretchr/testify/mock"
mux "github.com/gorilla/mux"
)
// Login is an autogenerated mock type for the Login type
type Login struct {
mock.Mock
}
// LoggedInAs provides a mock function with given fields: r
func (_m *Login) LoggedInAs(r *http.Request) alogin.EMail {
ret := _m.Called(r)
var r0 alogin.EMail
if rf, ok := ret.Get(0).(func(*http.Request) alogin.EMail); ok {
r0 = rf(r)
} else {
r0 = ret.Get(0).(alogin.EMail)
}
return r0
}
// NeedsAuthentication provides a mock function with given fields: w, r
func (_m *Login) NeedsAuthentication(w http.ResponseWriter, r *http.Request) {
_m.Called(w, r)
}
// RegisterHandlers provides a mock function with given fields: router
func (_m *Login) RegisterHandlers(router *mux.Router) {
_m.Called(router)
}
// Status provides a mock function with given fields: r
func (_m *Login) Status(r *http.Request) alogin.Status {
ret := _m.Called(r)
var r0 alogin.Status
if rf, ok := ret.Get(0).(func(*http.Request) alogin.Status); ok {
r0 = rf(r)
} else {
r0 = ret.Get(0).(alogin.Status)
}
return r0
}