[easytag/wip/musicbrainz-support-merge: 47/75] Corrected MusicBrainz Tests



commit d9e0b1b1a7ac035e7f053bce8a3f5c4460eb749e
Author: Abhinav <abhijangda hotmail com>
Date:   Fri Aug 15 23:12:17 2014 +0530

    Corrected MusicBrainz Tests
    
    Updated Tests to include offset parameter in usage of search functions

 tests/test-musicbrainz.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/test-musicbrainz.c b/tests/test-musicbrainz.c
index 1e696a5..68831c1 100644
--- a/tests/test-musicbrainz.c
+++ b/tests/test-musicbrainz.c
@@ -95,7 +95,7 @@ mb_search_test (void)
     err = NULL;
     mbTreeNode = g_node_new (NULL);
     if (et_musicbrainz_search ("Westlife", MB_ENTITY_KIND_ARTIST, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
 
@@ -113,7 +113,7 @@ mb_search_test (void)
     mbTreeNode = g_node_new (NULL);
 
     if (et_musicbrainz_search ("Never Gone", MB_ENTITY_KIND_ALBUM, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
 
@@ -131,7 +131,7 @@ mb_search_test (void)
     mbTreeNode = g_node_new (NULL);
 
     if (et_musicbrainz_search ("I Still", MB_ENTITY_KIND_TRACK, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
 
@@ -150,7 +150,7 @@ mb_search_test (void)
 
     if (et_musicbrainz_search ("lwHl8fGzJyLXQR33ug60E8jhf4k-",
                                MB_ENTITY_KIND_DISCID, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
 
@@ -169,7 +169,7 @@ mb_search_test (void)
 
     if (et_musicbrainz_search ("24028103",
                                MB_ENTITY_KIND_FREEDBID, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
 
@@ -195,7 +195,7 @@ mb_search_in_test (void)
     mbTreeNode = g_node_new (NULL);
 
     if (et_musicbrainz_search ("Westlife", MB_ENTITY_KIND_ARTIST, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
         GNode *westlife_node;
@@ -209,7 +209,7 @@ mb_search_in_test (void)
 
         if (et_musicbrainz_search_in_entity (MB_ENTITY_KIND_ALBUM,
                                              MB_ENTITY_KIND_ARTIST, mbid,
-                                             westlife_node, &err, NULL))
+                                             westlife_node, 0, &err, NULL))
         {
             EtMbEntity *etentity;
 
@@ -230,7 +230,7 @@ mb_search_in_test (void)
     mbTreeNode = g_node_new (NULL);
 
     if (et_musicbrainz_search ("Never Gone", MB_ENTITY_KIND_ALBUM, mbTreeNode,
-                               &err, NULL))
+                               0, &err, NULL))
     {
         EtMbEntity *etentity;
         GNode *never_gone_node;
@@ -243,7 +243,7 @@ mb_search_in_test (void)
 
         if (et_musicbrainz_search_in_entity (MB_ENTITY_KIND_TRACK,
                                              MB_ENTITY_KIND_ALBUM, mbid,
-                                             never_gone_node, &err, NULL))
+                                             never_gone_node, 0, &err, NULL))
         {
             EtMbEntity *etentity;
 
@@ -564,4 +564,4 @@ main (int argc, char** argv)
     g_thread_unref (thread);
 
     return 0;
-}
\ No newline at end of file
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]