Moved chat states out of xmpp module for message send chat

This commit is contained in:
James Booth
2014-12-27 00:52:34 +00:00
parent 676ed1cbae
commit e602c2909e
8 changed files with 214 additions and 87 deletions

View File

@@ -552,7 +552,9 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(void **state)
will_return(otr_start_query, query_message);
expect_string(message_send_chat, barejid, chatwin->barejid);
expect_value(message_send_chat, resource, NULL);
expect_string(message_send_chat, msg, query_message);
expect_any(message_send_chat, send_state);
gboolean result = cmd_otr(args, *help);
assert_true(result);

View File

@@ -58,10 +58,13 @@ GList * jabber_get_available_resources(void)
}
// message functions
void message_send_chat(const char * const barejid, const char * const msg)
void message_send_chat(const char * const barejid, const char * const resource, const char * const msg,
gboolean send_state)
{
check_expected(barejid);
check_expected(resource);
check_expected(msg);
check_expected(send_state);
}
void message_send_private(const char * const fulljid, const char * const msg) {}