summaryrefslogtreecommitdiff
path: root/tests/libtracker-common
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2011-12-14 16:42:36 +0000
committerMartyn Russell <martyn@lanedo.com>2011-12-14 16:42:36 +0000
commit4ba59dc341a9f6f34fab01cd2b65665237e16a37 (patch)
tree427cba727f350d8654520f5f21532b1af4eed045 /tests/libtracker-common
parentc08724694e28d6500db6a0c87a5d7100e36aeb9a (diff)
downloadtracker-4ba59dc341a9f6f34fab01cd2b65665237e16a37.tar.gz
libtracker-common: Fixed unit tests with renamed albumart
Diffstat (limited to 'tests/libtracker-common')
-rw-r--r--tests/libtracker-common/tracker-albumart-test.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/tests/libtracker-common/tracker-albumart-test.c b/tests/libtracker-common/tracker-albumart-test.c
index aafb758db..988f7d42e 100644
--- a/tests/libtracker-common/tracker-albumart-test.c
+++ b/tests/libtracker-common/tracker-albumart-test.c
@@ -16,9 +16,10 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-#include <glib.h>
+
#include <glib-object.h>
-#include <libtracker-common/tracker-albumart.h>
+
+#include <libtracker-common/tracker-common.h>
struct {
const gchar *input;
@@ -52,7 +53,7 @@ test_albumart_stripping ()
gchar *result;
for (i = 0; strip_test_cases[i].input != NULL; i++) {
- result = tracker_albumart_strip_invalid_entities (strip_test_cases[i].input);
+ result = tracker_media_art_strip_invalid_entities (strip_test_cases[i].input);
g_assert_cmpstr (result, ==, strip_test_cases[i].expected_output);
g_free (result);
}
@@ -100,12 +101,12 @@ test_albumart_location ()
gint i;
for (i = 0; albumart_test_cases[i].filename != NULL; i++) {
- tracker_albumart_get_path (albumart_test_cases[i].artist,
- albumart_test_cases[i].album,
- "album",
- "file:///home/test/a.mp3",
- &path,
- &local_uri);
+ tracker_media_art_get_path (albumart_test_cases[i].artist,
+ albumart_test_cases[i].album,
+ "album",
+ "file:///home/test/a.mp3",
+ &path,
+ &local_uri);
expected = g_build_path (G_DIR_SEPARATOR_S,
g_get_user_cache_dir (),
"media-art",
@@ -128,7 +129,7 @@ test_albumart_location_null ()
gchar *path = NULL, *local_uri = NULL;
/* NULL parameters */
- tracker_albumart_get_path (NULL, NULL, "album", "file:///a/b/c.mp3", &path, &local_uri);
+ tracker_media_art_get_path (NULL, NULL, "album", "file:///a/b/c.mp3", &path, &local_uri);
g_assert (!path && !local_uri);
}
@@ -139,12 +140,12 @@ test_albumart_location_path ()
gchar *expected;
/* Use path instead of URI */
- tracker_albumart_get_path (albumart_test_cases[0].artist,
- albumart_test_cases[0].album,
- "album",
- "/home/test/a.mp3",
- &path,
- &local_uri);
+ tracker_media_art_get_path (albumart_test_cases[0].artist,
+ albumart_test_cases[0].album,
+ "album",
+ "/home/test/a.mp3",
+ &path,
+ &local_uri);
expected = g_build_path (G_DIR_SEPARATOR_S,
g_get_user_cache_dir (),
"media-art",