about summary refs log tree commit diff stats
path: root/LICENSE
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-31 12:07:32 +0100
committerarg@mig29 <unknown>2006-10-31 12:07:32 +0100
commit4b5b3d90af58f860569178e554604717ef51152d (patch)
treec01366e23aeaef73ab29818ee40496e0454ab4bd /LICENSE
parent2cce4b95cdce5617318fc4fb5d21abe41110c27a (diff)
downloaddwm-4b5b3d90af58f860569178e554604717ef51152d.tar.gz
renamed resizecol into resizemaster 2.1
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions
#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_receipt_request(void **state)
{
    prof_input("/receipts request on");

    prof_connect();

    prof_input("/msg somejid@someserver.com Hi there");

    assert_true(stbbr_received(
        "<message id=\"*\" type=\"chat\" to=\"somejid@someserver.com\">"
            "<body>Hi there</body>"
            "<request xmlns=\"urn:xmpp:receipts\"/>"
        "</message>"
    ));
}

void
send_receipt_on_request(void **state)
{
    prof_input("/receipts send on");

    prof_connect();

    stbbr_send(
        "<message id=\"msg12213\" type=\"chat\" to=\"stabber@localhost/profanity\" from=\"someuser@server.org/profanity\">"
            "<body>Wants a receipt</body>"
            "<request xmlns=\"urn:xmpp:receipts\"/>"
        "</message>"
    );

    assert_true(stbbr_received(
        "<message id=\"*\" to=\"someuser@server.org/profanity\">"
            "<received id=\"msg12213\" xmlns=\"urn:xmpp:receipts\"/>"
        "</message>"
    ));
}