-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_cros_fp_device.h
52 lines (44 loc) · 1.83 KB
/
mock_cros_fp_device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BIOD_MOCK_CROS_FP_DEVICE_H_
#define BIOD_MOCK_CROS_FP_DEVICE_H_
#include <bitset>
#include <memory>
#include <string>
#include "biod/cros_fp_device_interface.h"
#include "biod/fp_mode.h"
namespace biod {
class MockCrosFpDevice : public CrosFpDeviceInterface {
public:
MockCrosFpDevice() = default;
~MockCrosFpDevice() override = default;
MOCK_METHOD(void, SetMkbpEventCallback, (MkbpCallback), (override));
MOCK_METHOD(bool, SetFpMode, (const FpMode& mode), (override));
MOCK_METHOD(FpMode, GetFpMode, (), (override));
MOCK_METHOD(base::Optional<FpStats>, GetFpStats, (), (override));
MOCK_METHOD(base::Optional<std::bitset<32>>, GetDirtyMap, (), (override));
MOCK_METHOD(std::unique_ptr<VendorTemplate>,
GetTemplate,
(int index),
(override));
MOCK_METHOD(bool, UploadTemplate, (const VendorTemplate& tmpl), (override));
MOCK_METHOD(bool, SetContext, (std::string user_id), (override));
MOCK_METHOD(bool, ResetContext, (), (override));
MOCK_METHOD(bool, InitEntropy, (bool reset), (override));
MOCK_METHOD(bool, UpdateFpInfo, (), (override));
MOCK_METHOD(int, MaxTemplateCount, (), (override));
MOCK_METHOD(int, TemplateVersion, (), (override));
MOCK_METHOD(int, DeadPixelCount, (), (override));
MOCK_METHOD(EcCmdVersionSupportStatus,
EcCmdVersionSupported,
(uint16_t cmd, uint32_t ver),
(override));
MOCK_METHOD(bool, SupportsPositiveMatchSecret, (), (override));
MOCK_METHOD(base::Optional<brillo::SecureVector>,
GetPositiveMatchSecret,
(int index),
(override));
};
} // namespace biod
#endif // BIOD_MOCK_CROS_FP_DEVICE_H_