Added carbons command functional test

This commit is contained in:
James Booth
2015-07-05 17:29:33 +01:00
parent 252c7c2e06
commit 5e324e407f
4 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include <glib.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <string.h>
#include <stabber.h>
#include <expect.h>
#include "proftest.h"
void
send_enable_carbons(void **state)
{
prof_connect();
prof_input("/carbons on");
assert_true(stbbr_received(
"<iq id=\"*\" type=\"set\"><enable xmlns=\"urn:xmpp:carbons:2\"/></iq>"
));
}