[grilo-plugins/wip/carlosg/tracker3: 1/2] 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: 1/2] tests: Replace sample video to have free codecs
- Date: Sun, 23 Aug 2020 00:14:52 +0000 (UTC)
commit 823925217c6a84c265a649cfdaa99a93abd31b43
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 | 12 ++++++------
3 files changed, 6 insertions(+), 6 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 454c36a1..f685c9d3 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",
};
@@ -148,7 +148,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);
@@ -196,7 +196,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);
@@ -223,14 +223,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");
@@ -453,7 +453,7 @@ test_search_range_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_assert_cmpstr (grl_media_get_title (g_list_nth_data (elements, 0)),
==,
"sample");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]