[discident-glib] ean: Add test for RL parser



commit 225add4eda06e28900aca0a2a74f893cdce3ffb9
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 11 22:07:45 2013 +0200

    ean: Add test for RL parser

 discident-glib/Makefile.am                  |    4 +-
 discident-glib/discident-ean-private-glib.h |    4 ++
 discident-glib/discident-ean-rl-glib.c      |   12 +++---
 discident-glib/discident-glib.symbols       |    1 +
 discident-glib/rl-response.xml              |   45 +++++++++++++++++++++++++++
 discident-glib/test-diglib.c                |   25 +++++++++++++++
 6 files changed, 83 insertions(+), 8 deletions(-)
---
diff --git a/discident-glib/Makefile.am b/discident-glib/Makefile.am
index 933f864..4082295 100644
--- a/discident-glib/Makefile.am
+++ b/discident-glib/Makefile.am
@@ -1,6 +1,6 @@
 include $(top_srcdir)/Makefile.decl
 
-EXTRA_DIST = discident-glib.symbols
+EXTRA_DIST = discident-glib.symbols rl-response.xml
 BUILT_GIRSOURCES =
 
 lib_LTLIBRARIES = libdiscident-glib.la
@@ -31,7 +31,7 @@ libdiscident_glib_la_LDFLAGS =                                \
 diglibdir = $(pkgincludedir)
 diglib_HEADERS = discident-glib.h discident-ean-glib.h
 
-AM_CFLAGS = -I$(srcdir) $(DISCIDENT_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED)
+AM_CFLAGS = -I$(srcdir) $(DISCIDENT_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) 
-DSRCDIR="\"$(srcdir)\""
 
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =
diff --git a/discident-glib/discident-ean-private-glib.h b/discident-glib/discident-ean-private-glib.h
index 58ec8ba..6dfd1c0 100644
--- a/discident-glib/discident-ean-private-glib.h
+++ b/discident-glib/discident-ean-private-glib.h
@@ -43,4 +43,8 @@ typedef struct {
 
 void free_query_data (QueryData *data);
 
+gboolean _rl_parse_lookup_response (const char  *response,
+                                   char       **ret_title,
+                                   char       **ret_img_url);
+
 #endif /* DISCIDENT_EAN_PRIVATE_GLIB_H */
diff --git a/discident-glib/discident-ean-rl-glib.c b/discident-glib/discident-ean-rl-glib.c
index c08f75d..8cbad69 100644
--- a/discident-glib/discident-ean-rl-glib.c
+++ b/discident-glib/discident-ean-rl-glib.c
@@ -173,10 +173,10 @@ uncompress (const char *data,
        return ret;
 }
 
-static gboolean
-parse_lookup_response (const char  *response,
-                      char       **ret_title,
-                      char       **ret_img_url)
+gboolean
+_rl_parse_lookup_response (const char  *response,
+                          char       **ret_title,
+                          char       **ret_img_url)
 {
        xmlDocPtr doc;
        xmlChar *title, *img_url;
@@ -271,7 +271,7 @@ discident_ean_rl_lookup_sync (DiscidentEan *ean,
                return FALSE;
        }
 
-       if (parse_lookup_response (response, title, img_url) == FALSE) {
+       if (_rl_parse_lookup_response (response, title, img_url) == FALSE) {
                g_free (response);
                g_set_error (error, DISCIDENT_ERROR, DISCIDENT_ERROR_PARSE, "Failed to parse response from 
EAN service");
                return FALSE;
@@ -310,7 +310,7 @@ got_body_query (SoupMessage *msg,
        response = uncompress (msg->response_body->data,
                               msg->response_body->length);
 
-       if (parse_lookup_response (response, &title, &img_url) == FALSE) {
+       if (_rl_parse_lookup_response (response, &title, &img_url) == FALSE) {
                g_simple_async_result_set_error (data->simple,
                                                 DISCIDENT_ERROR,
                                                 DISCIDENT_ERROR_PARSE,
diff --git a/discident-glib/discident-glib.symbols b/discident-glib/discident-glib.symbols
index 7adf80c..4828c35 100644
--- a/discident-glib/discident-glib.symbols
+++ b/discident-glib/discident-glib.symbols
@@ -12,4 +12,5 @@ discident_ean_lookup_sync
 discident_ean_lookup
 discident_ean_lookup_get_barcode
 discident_ean_lookup_finish
+_rl_parse_lookup_response
 discident_error_quark
diff --git a/discident-glib/rl-response.xml b/discident-glib/rl-response.xml
new file mode 100644
index 0000000..aa66a97
--- /dev/null
+++ b/discident-glib/rl-response.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<response imageType="jpg" 
imageUrl="http://i.ebayimg.com/02/!!eGJetgBGM~$(KGrHqR,!kwE1LC7oFIqBNVdzdgekQ~~_6.JPG?set_id=89040003C1" 
title="2001 - A Space Odyssey (DVD 2001)">
+  <section name="Online Results" type="online">
+    <result currency="GBP" 
detailUrl="http://stat.dealtime.com/DealFrame/DealFrame.cmp?bm=696&amp;BEFID=63716&amp;aon=%5E1&amp;MerchantID=313687&amp;crawler_id=1911785&amp;dealId=-So3czI4K3Qmy913FCO-6w%3D%3D&amp;url=http%3A%2F%2Fwww.amazon.co.uk%2Fdp%2FB000056WOM%2Fref%3Dasc_df_B000056WOM12620064%3Fsmid%3DAVXB5JQRCA15O%26tag%3Dshoppingcommp-21%26linkCode%3Dasn%26creative%3D22218%26creativeASIN%3DB000056WOM&amp;linkin_id=8069077&amp;Issdt=130331095605&amp;searchID=p4.eeca84cfd31dd0e7bb55&amp;DealName=2001%3A+A+Space+Odyssey+%5B1968%5D+%5BDVD%5D&amp;dlprc=3.82&amp;AR=1&amp;NG=2&amp;NDP=0&amp;PN=1&amp;ST=7&amp;FPT=DSP&amp;NDS=&amp;NMS=&amp;MRS=&amp;PD=135849535&amp;brnId=15003&amp;IsFtr=0&amp;IsSmart=0&amp;op=&amp;CM=&amp;RR=2&amp;IsLps=0&amp;code=&amp;acode=685&amp;category=&amp;HasLink=&amp;ND=&amp;MN=&amp;GR=&amp;lnkId=&amp;SKU=B000056WOM";
 itemDetail="New" name="2001: A Space Odyssey [1968] [DVD]" price="3.8200000000000003" source="shopping.com" 
vendor="Amazon Marketplace"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.com/rover/1/711-111005-2357-0/4?mpre=http%3A%2F%2Fwww.ebay.co.uk%2Fitm%2F290800071796";
 itemDetail="New" name="2001-A SPACE ODYSSEY-STANLEY KUBRICK-BRAND NEW DVD" price="4.95" source="eBay" 
vendor="eBay Top-rated seller"/>
+    <result currency="GBP" detailUrl="http://www.awin1.com/pclick.php?p=682158103&amp;a=125764&amp;m=3205"; 
itemDetail="New" name="2001 - A Space Odyssey (DVD 2001)" price="4.99" source="affiliatewindow" vendor="CD 
WOW!"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.com/rover/1/711-111005-2357-0/4?mpre=http%3A%2F%2Fwww.ebay.co.uk%2Fitm%2F380610233648";
 itemDetail="Used" name="2001: A Space Odyssey  DVD Keir Dullea, Gary Lockwood, William Sylvester, Daniel" 
price="5.24" source="eBay" vendor="eBay"/>
+    <result currency="GBP" 
detailUrl="http://stat.dealtime.com/DealFrame/DealFrame.cmp?bm=128&amp;BEFID=63716&amp;aon=%5E1&amp;MerchantID=30151&amp;crawler_id=1901793&amp;dealId=V-XS4lBjCRtGU5LLX_d3yw%3D%3D&amp;url=http%3A%2F%2Fwww.amazon.co.uk%2Fdp%2FB000056WOM%2Fref%3Dasc_df_B000056WOM12619469%3Fsmid%3DA3P5ROKL5A1OLE%26tag%3Dshoppingco0a3-21%26linkCode%3Dasn%26creative%3D22206%26creativeASIN%3DB000056WOM&amp;linkin_id=8069077&amp;Issdt=130331095605&amp;searchID=p4.eeca84cfd31dd0e7bb55&amp;DealName=2001%3A+A+Space+Odyssey+%5B1968%5D+%5BDVD%5D&amp;dlprc=5.25&amp;AR=1&amp;NG=2&amp;NDP=0&amp;PN=1&amp;ST=7&amp;FPT=DSP&amp;NDS=&amp;NMS=&amp;MRS=&amp;PD=135849535&amp;brnId=15003&amp;IsFtr=0&amp;IsSmart=0&amp;op=&amp;CM=&amp;RR=1&amp;IsLps=0&amp;code=&amp;acode=148&amp;category=&amp;HasLink=&amp;ND=&amp;MN=&amp;GR=&amp;lnkId=&amp;SKU=B000056WOM";
 itemDetail="New" name="2001: A Space Odyssey [1968] [DVD]" price="5.25" source="shopping.com" 
vendor="Amazon.co.uk"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.com/rover/1/711-111005-2357-0/4?mpre=http%3A%2F%2Fwww.ebay.co.uk%2Fitm%2F380452485413";
 itemDetail="Like New" name="2001 - A Space Odyssey (DVD 2001)" price="5.5" source="eBay" vendor="eBay 
Top-rated seller"/>
+    <result currency="GBP" detailUrl="http://www.awin1.com/pclick.php?p=116177075&amp;a=125764&amp;m=2694"; 
itemDetail="New" name="2001 - A Space Odyssey (DVD 2001)" price="5.89" source="affiliatewindow" 
vendor="base.com"/>
+    <result currency="GBP" detailUrl="http://www.awin1.com/pclick.php?p=710903856&amp;a=125764&amp;m=547"; 
itemDetail="New" name="2001 - A Space Odyssey (DVD 2001)" price="6.05" source="affiliatewindow" 
vendor="Gameseek"/>
+    <result currency="GBP" detailUrl="http://www.awin1.com/pclick.php?p=49119678&amp;a=125764&amp;m=2609"; 
itemDetail="New" name="2001 - A Space Odyssey (DVD 2001)" price="7.49" source="affiliatewindow" 
vendor="MovieMail"/>
+  </section>
+  <section logoImageId="googlelogo_24" name="Search Results" type="online">
+    <result currency="GBP" 
detailUrl="http://uk.ebid.net/for-sale/7321900650007-dvd-film-stanley-kubrick-s-2001-a-space-odyssey-86854387.htm?from=googleshop_uk";
 itemDetail="Used" name="Dvd : film - stanley kubrick's 2001 : a space odyssey" price="3.0" 
source="googlebase" vendor="eBid - Carnoustiecats Dvds and Cds"/>
+    <result currency="GBP" 
detailUrl="http://uk.ebid.net/for-sale/7321900650007-2001-a-space-odyssey-stanley-kubrick-97642697.htm?from=googleshop_uk";
 itemDetail="New" name="2001: a space odyssey - stanley kubrick (dvd)" price="3.77" source="googlebase" 
vendor="eBid - Playwatchuk"/>
+    <result currency="GBP" 
detailUrl="http://www.booksuniversal.co.uk/index.php?route=product/product&amp;product_id=4978&amp;currency=GBP";
 itemDetail="Used" name="2001: A Space Odyssey (dvd)" price="4.0" source="googlebase" vendor="Books 
Universal"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/695381754/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey" price="4.79" source="googlebase" vendor="Play.com"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/695381754/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="4.79" source="googlebase" vendor="Play.com - 
zoverstocks"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D290800071796%26itemid%3D290800071796%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="2001-a Space Odyssey-stanley Kubrick-brand Dvd" price="4.95" source="googlebase" 
vendor="eBay - co11ects"/>
+    <result currency="GBP" 
detailUrl="http://www.sainsburysentertainment.co.uk/en/Films-TV/DVD/Keir-Dullea/2001-A-Space-Odyssey/product.html?product=E10364631&amp;utm_source=google&amp;utm_medium=basefeed";
 itemDetail="New" name="2001: A Space Odyssey [DVD]" price="4.99" source="googlebase" vendor="Sainsbury's 
Entertainment"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/691268054/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="5.17" source="googlebase" vendor="Play.com - 
gowingstore"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/702553426/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="5.22" source="googlebase" vendor="Play.com - 
ZavviOutlet"/>
+    <result currency="GBP" 
detailUrl="http://www.amazon.co.uk/dp/B000056WOM/ref=asc_df_B000056WOM12619919?smid=A3P5ROKL5A1OLE&amp;tag=googlecouk06-21&amp;linkCode=asn&amp;creative=22206&amp;creativeASIN=B000056WOM";
 itemDetail="New" name="2001: A Space Odyssey [1968] [DVD]" price="5.25" source="googlebase" 
vendor="Amazon.co.uk"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D321092564354%26itemid%3D321092564354%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="Used" name="2001 - A Space Odyssey (dvd 2001)" price="5.25" source="googlebase" vendor="eBay"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D380452485413%26itemid%3D380452485413%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="Used" name="2001 - A Space Odyssey (dvd 2001)" price="5.5" source="googlebase" vendor="eBay - 
breamdog"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/751963432/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="5.5200000000000005" source="googlebase" 
vendor="Play.com - esupermarket"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/704386530/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="5.53" source="googlebase" vendor="Play.com - 
basecom"/>
+    <result currency="GBP" 
detailUrl="http://www.play.com/DVD/DVD/4-/4156/704881073/2001-A-Space-Odyssey/ListingDetails.html?_%24ja=tsid:11518%7Ccat:4156%7Cprd:4156";
 itemDetail="New" name="2001: A Space Odyssey (DVD)" price="5.63" source="googlebase" vendor="Play.com - 
Rarewaves"/>
+    <result currency="GBP" detailUrl="http://www.gameseek.co.uk/pd/DVDyzcyq9hg3yt/"; itemDetail="New" 
name="2001: A Space Odyssey [1968] (Film)" price="6.05" source="googlebase" vendor="GameSeek.co.uk"/>
+    <result currency="GBP" detailUrl="http://www.redsave.com/products/2001-a-space-odyssey-dvd"; 
itemDetail="New" name="2001 A Space Odyssey Dvd" price="6.18" source="googlebase" vendor="Redsave.com"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D330894593444%26itemid%3D330894593444%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="2001 A Space Odyssey - Dvd" price="6.19" source="googlebase" vendor="eBay - 
gns-entuk"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D230856024496%26itemid%3D230856024496%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="Stanley Kubrick's 2001: A Space Odyssey (1968) Dvd" price="6.99" source="googlebase" 
vendor="eBay - sent2u_by_hts"/>
+    <result currency="GBP" 
detailUrl="http://www.blockbuster.co.uk/product/buy-online/dvd/62516/2001-a-space-odyssey.htm?condition=new&amp;utm_source=googlebase&amp;utm_medium=datafeed&amp;utm_campaign=movies";
 itemDetail="New" name="2001 - A Space Odyssey DVD" price="7.43" source="googlebase" 
vendor="Blockbuster.co.uk"/>
+    <result currency="GBP" 
detailUrl="http://www.365games.co.uk/science-fiction-films-dvd/2001-a-space-odyssey-dvd?utm_source=google&amp;utm_medium=shopping&amp;utm_campaign=google+shopping+data+feed+(30/03/2013)"
 itemDetail="New" name="2001 A Space Odyssey DVD" price="7.49" source="googlebase" vendor="365games.co.uk"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D310616506236%26itemid%3D310616506236%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="2001 - A Space Odyssey 7321900650007 With Leonard Rossiter, Dvd, Region 2," 
price="8.97" source="googlebase" vendor="eBay - landabooksuk"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D290879816367%26itemid%3D290879816367%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="2001 A Space Odyssey Dvd" price="9.22" source="googlebase" vendor="eBay - 
dvd2udirect"/>
+    <result currency="GBP" 
detailUrl="http://rover.ebay.co.uk/rover/5/0/2?mpre=http%3A%2F%2Frover.ebay.com%2Frover%2F1%2F710-67306-24966-0%2F2%3Fipn%3Dpsmain%26icep_vectorid%3D274431%26icep_df_meta_categ_id%3D11232%26kwid%3D1%26mtid%3D692%26crlp%3D1_274431%26icep_item_id%3D111021750519%26itemid%3D111021750519%26icep_msku_flag%3Dn%26icep_cbt%3Dn";
 itemDetail="New" name="2001: A Space Odyssey [1968] [dvd]" price="9.700000000000001" source="googlebase" 
vendor="eBay - roxy*media*uk"/>
+    <result currency="GBP" detailUrl="http://www.inandout.at/p/g/DVD:1000085896-M35/0-15"; itemDetail="New" 
name="Keir Dullea Gary Lockwood William Sylvester Daniel Richter Leonard Ros" price="10.200000000000001" 
source="googlebase" vendor="Inandout"/>
+  </section>
+  <section logoImageId="thefindlogo" name="Search Results" type="online">
+    <result currency="GBP" 
detailUrl="http://www.thehut.com/dvd/2001-a-space-odyssey/64469.html?affil=thefind"; itemDetail="New" 
name="2001 - A Space Odyssey" price="7.45" source="thefind" vendor="TheHut"/>
+    <result currency="GBP" detailUrl="http://www.thetechlodge.co.uk/2001-Space-Odyssey-DVD-U/dp/B000056WOM"; 
itemDetail="New" name="Warner Home Video 2001 A Space Odyssey [dvd] (u)" price="8.040000000000001" 
source="thefind" vendor="The Tech Lodge"/>
+  </section>
+</response>
diff --git a/discident-glib/test-diglib.c b/discident-glib/test-diglib.c
index 0778130..0dbcb41 100644
--- a/discident-glib/test-diglib.c
+++ b/discident-glib/test-diglib.c
@@ -82,6 +82,25 @@ test_json (void)
 }
 
 static void
+test_rl_parse (void)
+{
+       char *response;
+       gboolean ret;
+       char *img_url, *title;
+
+       g_file_get_contents (SRCDIR "/rl-response.xml",
+                            &response,
+                            NULL,
+                            NULL);
+       ret = _rl_parse_lookup_response (response,
+                                        &title,
+                                        &img_url);
+       g_assert (ret);
+       g_assert_cmpstr (title, ==, "2001 - A Space Odyssey (DVD 2001)");
+       g_assert_cmpstr (img_url, ==, 
"http://i.ebayimg.com/02/!!eGJetgBGM~$(KGrHqR,!kwE1LC7oFIqBNVdzdgekQ~~_6.JPG?set_id=89040003C1");
+}
+
+static void
 test_ean (void)
 {
        DiscidentEan *ean;
@@ -322,6 +341,12 @@ int main (int argc, char **argv)
        }
 
        if (uris == NULL) {
+               g_test_add_func ("/discident/ean-amz-example", test_amz1);
+               g_test_add_func ("/discident/ean-amz-itemsearch", test_amz2);
+               g_test_add_func ("/discident/ean-amz-cartcreate", test_amz3);
+               g_test_add_func ("/discident/ean-amz-browsenodelookup", test_amz4);
+               g_test_add_func ("/discident/ean-amz-similaritylookup", test_amz5);
+               g_test_add_func ("/discident/rl-parse", test_rl_parse);
                g_test_add_func ("/discident/ean", test_ean);
                g_test_add_func ("/discident/ean_fail", test_ean_fail);
                g_test_add_func ("/discident/hash", test_hash);


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