49 lines
1.5 KiB
Go
49 lines
1.5 KiB
Go
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: internal/handlers/u2f.go
|
||
|
|
||
|
// Package handlers is a generated GoMock package.
|
||
|
package handlers
|
||
|
|
||
|
import (
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
u2f "github.com/tstranex/u2f"
|
||
|
reflect "reflect"
|
||
|
)
|
||
|
|
||
|
// MockU2FVerifier is a mock of U2FVerifier interface
|
||
|
type MockU2FVerifier struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockU2FVerifierMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockU2FVerifierMockRecorder is the mock recorder for MockU2FVerifier
|
||
|
type MockU2FVerifierMockRecorder struct {
|
||
|
mock *MockU2FVerifier
|
||
|
}
|
||
|
|
||
|
// NewMockU2FVerifier creates a new mock instance
|
||
|
func NewMockU2FVerifier(ctrl *gomock.Controller) *MockU2FVerifier {
|
||
|
mock := &MockU2FVerifier{ctrl: ctrl}
|
||
|
mock.recorder = &MockU2FVerifierMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MockU2FVerifier) EXPECT() *MockU2FVerifierMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Verify mocks base method
|
||
|
func (m *MockU2FVerifier) Verify(keyHandle, publicKey []byte, signResponse u2f.SignResponse, challenge u2f.Challenge) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Verify", keyHandle, publicKey, signResponse, challenge)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Verify indicates an expected call of Verify
|
||
|
func (mr *MockU2FVerifierMockRecorder) Verify(keyHandle, publicKey, signResponse, challenge interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockU2FVerifier)(nil).Verify), keyHandle, publicKey, signResponse, challenge)
|
||
|
}
|