mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-11 02:28:05 +00:00
test-fp-device-tod: Ignore deprecated functions and use new ones
This commit is contained in:
@@ -193,7 +193,10 @@ test_device_supports_identify (void)
|
|||||||
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
||||||
|
|
||||||
fp_device_open_sync (tctx->device, NULL, NULL);
|
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
|
static void
|
||||||
@@ -202,7 +205,10 @@ test_device_supports_capture (void)
|
|||||||
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
||||||
|
|
||||||
fp_device_open_sync (tctx->device, NULL, NULL);
|
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
|
static void
|
||||||
@@ -211,7 +217,10 @@ test_device_has_storage (void)
|
|||||||
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
|
||||||
|
|
||||||
fp_device_open_sync (tctx->device, NULL, NULL);
|
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
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user