diff options
author | Guillaume Desmottes <gdesmott@gnome.org> | 2008-01-08 02:12:15 +0800 |
---|---|---|
committer | Guillaume Desmottes <gdesmott@gnome.org> | 2008-01-08 02:12:15 +0800 |
commit | 335a3684f49f49b2f37e3a539547ca49ee8b9b07 (patch) | |
tree | 50a2265f0d7fdea33fa3a8c69916538dac638a62 /tests/check-irc-helper.c | |
parent | 1af620a7d430cb3c717cb3f1a787455c96feba51 (diff) | |
download | gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar.gz gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar.bz2 gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar.lz gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar.xz gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.tar.zst gsoc2013-empathy-335a3684f49f49b2f37e3a539547ca49ee8b9b07.zip |
create check-irc-helper containing usefull IRC test functions
Diffstat (limited to 'tests/check-irc-helper.c')
-rw-r--r-- | tests/check-irc-helper.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/check-irc-helper.c b/tests/check-irc-helper.c new file mode 100644 index 000000000..44f0a7758 --- /dev/null +++ b/tests/check-irc-helper.c @@ -0,0 +1,24 @@ +#include "check-irc-helper.h" + +void +check_server (EmpathyIrcServer *server, + const gchar *_address, + guint _port, + gboolean _ssl) +{ + gchar *address; + guint port; + gboolean ssl; + + g_object_get (server, + "address", &address, + "port", &port, + "ssl", &ssl, + NULL); + + fail_if (address == NULL || strcmp (address, _address) != 0); + fail_if (port != _port); + fail_if (ssl != _ssl); + + g_free (address); +} |