2020-02-01 19:54:50 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-12-01 19:11:29 +07:00
|
|
|
// Source: github.com/authelia/authelia/v4/internal/handlers (interfaces: U2FVerifier)
|
2020-02-01 19:54:50 +07:00
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
2020-02-01 19:54:50 +07:00
|
|
|
|
|
|
|
import (
|
2020-04-05 19:37:21 +07:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-02-01 19:54:50 +07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
u2f "github.com/tstranex/u2f"
|
|
|
|
)
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// MockU2FVerifier is a mock of U2FVerifier interface.
|
2020-02-01 19:54:50 +07:00
|
|
|
type MockU2FVerifier struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockU2FVerifierMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// MockU2FVerifierMockRecorder is the mock recorder for MockU2FVerifier.
|
2020-02-01 19:54:50 +07:00
|
|
|
type MockU2FVerifierMockRecorder struct {
|
|
|
|
mock *MockU2FVerifier
|
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// NewMockU2FVerifier creates a new mock instance.
|
2020-02-01 19:54:50 +07:00
|
|
|
func NewMockU2FVerifier(ctrl *gomock.Controller) *MockU2FVerifier {
|
|
|
|
mock := &MockU2FVerifier{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockU2FVerifierMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-02-01 19:54:50 +07:00
|
|
|
func (m *MockU2FVerifier) EXPECT() *MockU2FVerifierMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// Verify mocks base method.
|
|
|
|
func (m *MockU2FVerifier) Verify(arg0, arg1 []byte, arg2 u2f.SignResponse, arg3 u2f.Challenge) error {
|
2020-02-01 19:54:50 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
ret := m.ctrl.Call(m, "Verify", arg0, arg1, arg2, arg3)
|
2020-02-01 19:54:50 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// Verify indicates an expected call of Verify.
|
|
|
|
func (mr *MockU2FVerifierMockRecorder) Verify(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
2020-02-01 19:54:50 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockU2FVerifier)(nil).Verify), arg0, arg1, arg2, arg3)
|
2020-02-01 19:54:50 +07:00
|
|
|
}
|