From eb329903b452386985a615fae458c91a7bcf80eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 13 Apr 2021 14:48:06 +0200 Subject: [PATCH] test-fp-device-tod: Ignore deprecated functions and use new ones --- tests/test-fp-device-tod.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/test-fp-device-tod.c b/tests/test-fp-device-tod.c index d134d1e1..f3d45cb1 100644 --- a/tests/test-fp-device-tod.c +++ b/tests/test-fp-device-tod.c @@ -193,7 +193,10 @@ test_device_supports_identify (void) g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev (); fp_device_open_sync (tctx->device, NULL, NULL); - g_assert_true (fp_device_supports_identify (tctx->device)); + g_assert_true (fp_device_has_feature (tctx->device, FP_DEVICE_FEATURE_IDENTIFY)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + g_assert_true (fp_device_supports_identify (tctx->device)); + G_GNUC_END_IGNORE_DEPRECATIONS } static void @@ -202,7 +205,10 @@ test_device_supports_capture (void) g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev (); fp_device_open_sync (tctx->device, NULL, NULL); - g_assert_true (fp_device_supports_capture (tctx->device)); + g_assert_true (fp_device_has_feature (tctx->device, FP_DEVICE_FEATURE_CAPTURE)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + g_assert_true (fp_device_supports_capture (tctx->device)); + G_GNUC_END_IGNORE_DEPRECATIONS } static void @@ -211,7 +217,10 @@ test_device_has_storage (void) g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev (); fp_device_open_sync (tctx->device, NULL, NULL); - g_assert_true (fp_device_has_storage (tctx->device)); + g_assert_true (fp_device_has_feature (tctx->device, FP_DEVICE_FEATURE_STORAGE)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + g_assert_true (fp_device_has_storage (tctx->device)); + G_GNUC_END_IGNORE_DEPRECATIONS } int