xref: /aosp_15_r20/hardware/libhardware/tests/fingerprint/fingerprint_tests.cpp (revision e01b6f769022e40d0923dee176e8dc7cd1d52984)
1*e01b6f76SAndroid Build Coastguard Worker /*
2*e01b6f76SAndroid Build Coastguard Worker  * Copyright (C) 2014 The Android Open Source Project
3*e01b6f76SAndroid Build Coastguard Worker  *
4*e01b6f76SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*e01b6f76SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*e01b6f76SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*e01b6f76SAndroid Build Coastguard Worker  *
8*e01b6f76SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*e01b6f76SAndroid Build Coastguard Worker  *
10*e01b6f76SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*e01b6f76SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*e01b6f76SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e01b6f76SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*e01b6f76SAndroid Build Coastguard Worker  * limitations under the License.
15*e01b6f76SAndroid Build Coastguard Worker  */
16*e01b6f76SAndroid Build Coastguard Worker 
17*e01b6f76SAndroid Build Coastguard Worker #include <gtest/gtest.h>
18*e01b6f76SAndroid Build Coastguard Worker #include "fingerprint_test_fixtures.h"
19*e01b6f76SAndroid Build Coastguard Worker 
20*e01b6f76SAndroid Build Coastguard Worker namespace tests {
21*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereEnroll)22*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereEnroll) {
23*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->enroll)
24*e01b6f76SAndroid Build Coastguard Worker         << "enroll() function is not implemented";
25*e01b6f76SAndroid Build Coastguard Worker }
26*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isTherePreEnroll)27*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isTherePreEnroll) {
28*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->pre_enroll)
29*e01b6f76SAndroid Build Coastguard Worker         << "pre_enroll() function is not implemented";
30*e01b6f76SAndroid Build Coastguard Worker }
31*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereGetAuthenticatorId)32*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereGetAuthenticatorId) {
33*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->get_authenticator_id)
34*e01b6f76SAndroid Build Coastguard Worker         << "get_authenticator_id() function is not implemented";
35*e01b6f76SAndroid Build Coastguard Worker }
36*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereCancel)37*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereCancel) {
38*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->cancel)
39*e01b6f76SAndroid Build Coastguard Worker         << "cancel() function is not implemented";
40*e01b6f76SAndroid Build Coastguard Worker }
41*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereRemove)42*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereRemove) {
43*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->remove)
44*e01b6f76SAndroid Build Coastguard Worker         << "remove() function is not implemented";
45*e01b6f76SAndroid Build Coastguard Worker }
46*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereAuthenticate)47*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereAuthenticate) {
48*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->authenticate)
49*e01b6f76SAndroid Build Coastguard Worker         << "authenticate() function is not implemented";
50*e01b6f76SAndroid Build Coastguard Worker }
51*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereSetActiveGroup)52*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereSetActiveGroup) {
53*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->set_active_group)
54*e01b6f76SAndroid Build Coastguard Worker         << "set_active_group() function is not implemented";
55*e01b6f76SAndroid Build Coastguard Worker }
56*e01b6f76SAndroid Build Coastguard Worker 
TEST_F(FingerprintDevice,isThereSetNotify)57*e01b6f76SAndroid Build Coastguard Worker TEST_F(FingerprintDevice, isThereSetNotify) {
58*e01b6f76SAndroid Build Coastguard Worker     ASSERT_TRUE(NULL != fp_device()->set_notify)
59*e01b6f76SAndroid Build Coastguard Worker         << "set_notify() function is not implemented";
60*e01b6f76SAndroid Build Coastguard Worker }
61*e01b6f76SAndroid Build Coastguard Worker 
62*e01b6f76SAndroid Build Coastguard Worker }  // namespace tests
63