[grilo-plugins/wip/carlosg/tracker-last-modification-date] tests: Check modification date in tracker3 resolve test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/carlosg/tracker-last-modification-date] tests: Check modification date in tracker3 resolve test
- Date: Thu, 27 Aug 2020 10:56:24 +0000 (UTC)
commit 55bb316b94ee3b1b1b4b69a8401a32e45dcc7f82
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 27 12:55:38 2020 +0200
tests: Check modification date in tracker3 resolve test
Check that this information is extracted from the file.
tests/tracker3/test_tracker3.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/tests/tracker3/test_tracker3.c b/tests/tracker3/test_tracker3.c
index e514d9fb..6e30a484 100644
--- a/tests/tracker3/test_tracker3.c
+++ b/tests/tracker3/test_tracker3.c
@@ -281,6 +281,7 @@ test_resolve (void)
GrlMedia *media, *resolved;
GError *error = NULL;
GrlOperationOptions *options;
+ GDateTime *datetime;
GList *keys;
registry = grl_registry_get_default ();
@@ -289,6 +290,7 @@ test_resolve (void)
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_URL,
GRL_METADATA_KEY_TITLE,
+ GRL_METADATA_KEY_MODIFICATION_DATE,
GRL_METADATA_KEY_INVALID);
options = grl_operation_options_new (NULL);
@@ -310,6 +312,9 @@ test_resolve (void)
==,
"Simply Juvenile");
+ datetime = grl_media_get_modification_date (media);
+ g_assert_nonnull (datetime);
+
g_object_unref (options);
g_object_unref (media);
g_list_free (keys);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]