X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=tests%2Fempathy-parser-test.c;fp=tests%2Fempathy-parser-test.c;h=843bf368cf6ea0b81677d765d1e2d8dc6d0d15e4;hp=0cf0374441116e522819923bf6d0667c3f3a6cec;hb=89db427d713a8704e632776a1d7a628123cc82ff;hpb=d9f45de3b3da70e5d047313e0abb816d9f2fca3f diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c index 0cf03744..843bf368 100644 --- a/tests/empathy-parser-test.c +++ b/tests/empathy-parser-test.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "empathy-string-parser.h" #include "test-helper.h" @@ -95,11 +96,11 @@ test_parsers (void) NULL, NULL }; - EmpathyStringParser parsers[] = + TpawStringParser parsers[] = { - {empathy_string_match_link, test_replace_match}, + {tpaw_string_match_link, test_replace_match}, {empathy_string_match_smiley, test_replace_match}, - {empathy_string_match_all, empathy_string_replace_escaped}, + {tpaw_string_match_all, tpaw_string_replace_escaped}, {NULL, NULL} }; guint i; @@ -111,7 +112,7 @@ test_parsers (void) gboolean ok; string = g_string_new (NULL); - empathy_string_parser_substr (tests[i], -1, parsers, string); + tpaw_string_parser_substr (tests[i], -1, parsers, string); ok = !tp_strdiff (tests[i + 1], string->str); DEBUG ("'%s' => '%s': %s", tests[i], string->str, ok ? "OK" : "FAILED");