[grilo-plugins/wip/carlosg/tracker3: 5/5] tests: Replace sample video to have free codecs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/carlosg/tracker3: 5/5] tests: Replace sample video to have free codecs
- Date: Sun, 23 Aug 2020 01:05:18 +0000 (UTC)
commit 9f7a2c2b970dd50b094581fdaf1cd82060ea1f08
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 23 02:12:19 2020 +0200
tests: Replace sample video to have free codecs
As suggested at https://gitlab.gnome.org/GNOME/grilo-plugins/-/merge_requests/85#note_895956
tests/tracker3/data/sample.mp4 | Bin 74438 -> 0 bytes
tests/tracker3/data/sample.ogv | Bin 0 -> 320525 bytes
tests/tracker3/test_tracker3.c | 22 ++++++++--------------
3 files changed, 8 insertions(+), 14 deletions(-)
---
diff --git a/tests/tracker3/data/sample.ogv b/tests/tracker3/data/sample.ogv
new file mode 100644
index 00000000..bc1da460
Binary files /dev/null and b/tests/tracker3/data/sample.ogv differ
diff --git a/tests/tracker3/test_tracker3.c b/tests/tracker3/test_tracker3.c
index cd9cb704..1ff2a69e 100644
--- a/tests/tracker3/test_tracker3.c
+++ b/tests/tracker3/test_tracker3.c
@@ -29,7 +29,7 @@
const gchar *test_files[] = {
"file://" TRACKER3_DATA_PATH "/sample.flac",
"file://" TRACKER3_DATA_PATH "/sample.mp3",
- "file://" TRACKER3_DATA_PATH "/sample.mp4",
+ "file://" TRACKER3_DATA_PATH "/sample.ogv",
"file://" TRACKER3_DATA_PATH "/sample.ogg",
"file://" TRACKER3_DATA_PATH "/sample.png",
};
@@ -151,7 +151,7 @@ test_browse (void)
g_assert_cmpint (g_list_length (subelements), ==, 1);
g_assert_cmpstr (grl_media_get_url (g_list_nth_data (subelements, 0)),
==,
- "file://" TRACKER3_DATA_PATH "/sample.mp4");
+ "file://" TRACKER3_DATA_PATH "/sample.ogv");
g_list_free_full (subelements, g_object_unref);
} else if (g_strcmp0 (grl_media_get_title (media), "Photos") == 0) {
subelements = grl_source_browse_sync (source, media, keys, options, &error);
@@ -199,7 +199,7 @@ test_browse_type_filter (void)
g_assert_cmpstr (grl_media_get_url (g_list_nth_data (elements, 0)),
==,
- "file://" TRACKER3_DATA_PATH "/sample.mp4");
+ "file://" TRACKER3_DATA_PATH "/sample.ogv");
g_list_free_full (elements, g_object_unref);
g_object_unref (options);
@@ -226,14 +226,14 @@ test_media_from_uri (void)
options = grl_operation_options_new (NULL);
media = grl_source_get_media_from_uri_sync (source,
- "file://" TRACKER3_DATA_PATH "/sample.mp4",
+ "file://" TRACKER3_DATA_PATH "/sample.ogv",
keys,
options, &error);
g_assert_no_error (error);
g_assert_cmpstr (grl_media_get_url (media),
==,
- "file://" TRACKER3_DATA_PATH "/sample.mp4");
+ "file://" TRACKER3_DATA_PATH "/sample.ogv");
g_assert_cmpstr (grl_media_get_title (media),
==,
"sample");
@@ -443,7 +443,7 @@ test_search_range_filter (void)
options = grl_operation_options_new (NULL);
grl_operation_options_set_key_range_filter (options,
GRL_METADATA_KEY_DURATION,
- 1, 4, NULL);
+ 5, 12, NULL);
elements = grl_source_search_sync (source,
NULL,
@@ -456,17 +456,11 @@ test_search_range_filter (void)
g_assert_cmpstr (grl_media_get_url (g_list_nth_data (elements, 0)),
==,
- "file://" TRACKER3_DATA_PATH "/sample.mp4");
- g_assert_cmpstr (grl_media_get_title (g_list_nth_data (elements, 0)),
- ==,
- "sample");
+ "file://" TRACKER3_DATA_PATH "/sample.flac");
g_assert_cmpstr (grl_media_get_url (g_list_nth_data (elements, 1)),
==,
- "file://" TRACKER3_DATA_PATH "/sample.ogg");
- g_assert_cmpstr (grl_media_get_title (g_list_nth_data (elements, 1)),
- ==,
- "sample");
+ "file://" TRACKER3_DATA_PATH "/sample.ogv");
g_object_unref (options);
g_list_free (keys);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]