1a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy/*
2a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * Copyright (C) 2014 The Android Open Source Project
3a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy *
4a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * Licensed under the Apache License, Version 2.0 (the "License");
5a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * you may not use this file except in compliance with the License.
6a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * You may obtain a copy of the License at
7a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy *
8a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy *      http://www.apache.org/licenses/LICENSE-2.0
9a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy *
10a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * Unless required by applicable law or agreed to in writing, software
11a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * distributed under the License is distributed on an "AS IS" BASIS,
12a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * See the License for the specific language governing permissions and
14a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy * limitations under the License.
15a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy */
16a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
17a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy#include <gtest/gtest.h>
18a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy#include "fingerprint_test_fixtures.h"
19a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
20a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiynamespace tests {
21a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
22a747c069c6b3f5a6420662020822992cc70384bcSasha LevitskiyTEST_F(FingerprintDevice, isThereEnroll) {
23a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy    ASSERT_TRUE(NULL != fp_device()->enroll)
247308284e4e8ad35ae531273afeee124a82f480a8Sasha Levitskiy        << "enroll() function is not implemented";
25a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy}
26a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
271e1f7ba5c99a0f715735c347597e3637e3870626Jim MillerTEST_F(FingerprintDevice, isTherePreEnroll) {
281e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller    ASSERT_TRUE(NULL != fp_device()->pre_enroll)
291e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller        << "pre_enroll() function is not implemented";
301e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller}
311e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller
32468b5673166ade001a1d23ab65787ce1750f9077Sasha LevitskiyTEST_F(FingerprintDevice, isThereGetAuthenticatorId) {
33468b5673166ade001a1d23ab65787ce1750f9077Sasha Levitskiy    ASSERT_TRUE(NULL != fp_device()->get_authenticator_id)
34468b5673166ade001a1d23ab65787ce1750f9077Sasha Levitskiy        << "get_authenticator_id() function is not implemented";
35468b5673166ade001a1d23ab65787ce1750f9077Sasha Levitskiy}
36468b5673166ade001a1d23ab65787ce1750f9077Sasha Levitskiy
371e1f7ba5c99a0f715735c347597e3637e3870626Jim MillerTEST_F(FingerprintDevice, isThereCancel) {
381e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller    ASSERT_TRUE(NULL != fp_device()->cancel)
391e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller        << "cancel() function is not implemented";
401e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller}
411e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller
42a747c069c6b3f5a6420662020822992cc70384bcSasha LevitskiyTEST_F(FingerprintDevice, isThereRemove) {
43a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy    ASSERT_TRUE(NULL != fp_device()->remove)
447308284e4e8ad35ae531273afeee124a82f480a8Sasha Levitskiy        << "remove() function is not implemented";
45a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy}
46a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
471fb1e33454467b44f5e370454dec2c6caccc58a2Jim MillerTEST_F(FingerprintDevice, isThereAuthenticate) {
481fb1e33454467b44f5e370454dec2c6caccc58a2Jim Miller    ASSERT_TRUE(NULL != fp_device()->authenticate)
491fb1e33454467b44f5e370454dec2c6caccc58a2Jim Miller        << "authenticate() function is not implemented";
501fb1e33454467b44f5e370454dec2c6caccc58a2Jim Miller}
511fb1e33454467b44f5e370454dec2c6caccc58a2Jim Miller
521e1f7ba5c99a0f715735c347597e3637e3870626Jim MillerTEST_F(FingerprintDevice, isThereSetActiveGroup) {
531e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller    ASSERT_TRUE(NULL != fp_device()->set_active_group)
541e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller        << "set_active_group() function is not implemented";
551e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller}
561e1f7ba5c99a0f715735c347597e3637e3870626Jim Miller
577308284e4e8ad35ae531273afeee124a82f480a8Sasha LevitskiyTEST_F(FingerprintDevice, isThereSetNotify) {
587308284e4e8ad35ae531273afeee124a82f480a8Sasha Levitskiy    ASSERT_TRUE(NULL != fp_device()->set_notify)
597308284e4e8ad35ae531273afeee124a82f480a8Sasha Levitskiy        << "set_notify() function is not implemented";
60a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy}
61a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy
62a747c069c6b3f5a6420662020822992cc70384bcSasha Levitskiy}  // namespace tests
63