-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_biod_metrics.h
52 lines (44 loc) · 1.81 KB
/
mock_biod_metrics.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_BIOD_METRICS_H_
#define BIOD_MOCK_BIOD_METRICS_H_
#include <gmock/gmock.h>
#include "biod/biod_metrics.h"
namespace biod {
namespace metrics {
class MockBiodMetrics : public BiodMetricsInterface {
public:
MockBiodMetrics() = default;
~MockBiodMetrics() override = default;
MOCK_METHOD(bool, SendEnrolledFingerCount, (int finger_count), (override));
MOCK_METHOD(bool, SendFpUnlockEnabled, (bool enabled), (override));
MOCK_METHOD(bool,
SendFpLatencyStats,
(bool matched, const CrosFpDeviceInterface::FpStats& stats),
(override));
MOCK_METHOD(bool,
SendFwUpdaterStatus,
(FwUpdaterStatus status,
updater::UpdateReason reason,
int overall_ms),
(override));
MOCK_METHOD(bool,
SendIgnoreMatchEventOnPowerButtonPress,
(bool is_ignored),
(override));
MOCK_METHOD(bool, SendResetContextMode, (const FpMode& mode), (override));
MOCK_METHOD(bool, SendSetContextMode, (const FpMode& mode), (override));
MOCK_METHOD(bool, SendSetContextSuccess, (bool success), (override));
MOCK_METHOD(bool,
SendReadPositiveMatchSecretSuccess,
(bool success),
(override));
MOCK_METHOD(bool, SendPositiveMatchSecretCorrect, (bool correct), (override));
MOCK_METHOD(bool, SendRecordFormatVersion, (int version), (override));
MOCK_METHOD(bool, SendDeadPixelCount, (int num_dead_pixels), (override));
MOCK_METHOD(bool, SendUploadTemplateResult, (int ec_result), (override));
};
} // namespace metrics
} // namespace biod
#endif // BIOD_MOCK_BIOD_METRICS_H_