diff options
author | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-07-29 21:01:56 +0800 |
---|---|---|
committer | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-08-20 18:03:05 +0800 |
commit | 89db427d713a8704e632776a1d7a628123cc82ff (patch) | |
tree | 72b28e9fd4260461ce4f7e9f59097f67e36c2d06 /tests/empathy-parser-test.c | |
parent | d9f45de3b3da70e5d047313e0abb816d9f2fca3f (diff) | |
download | gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar.gz gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar.bz2 gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar.lz gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar.xz gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.tar.zst gsoc2013-empathy-89db427d713a8704e632776a1d7a628123cc82ff.zip |
string-parser: move everything except for _match_smiley(), to tp-aw
empathy_string_match_smiley() depends on other files and it's not needed
by tp-account-widgets, so we can leave it in libempathy-gtk.
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tests/empathy-parser-test.c')
-rw-r--r-- | tests/empathy-parser-test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c index 0cf037444..843bf368c 100644 --- a/tests/empathy-parser-test.c +++ b/tests/empathy-parser-test.c @@ -4,6 +4,7 @@ #include <stdio.h> #include <string.h> #include <telepathy-glib/telepathy-glib.h> +#include <tp-account-widgets/tpaw-string-parser.h> #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"); |