summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-18 17:14:57 -0400
committerirungentoo <irungentoo@gmail.com>2015-03-18 17:14:57 -0400
commite0bd6ef4e0e79804e36ae86b4f08f19c2ce93700 (patch)
treeef890981ac5242cc1d8bbaf15edc47d88045e3f8 /auto_tests
parent45cf8a744c381b751262295177e636b9fbce7040 (diff)
Renamed TOX_MESSAGE_TYPE_MESSAGE to TOX_MESSAGE_TYPE_NORMAL.
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/tox_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c
index 100e5748..3883cb85 100644
--- a/auto_tests/tox_test.c
+++ b/auto_tests/tox_test.c
@@ -39,7 +39,7 @@ void print_message(Tox *m, uint32_t friendnumber, TOX_MESSAGE_TYPE type, const u
39 if (*((uint32_t *)userdata) != 974536) 39 if (*((uint32_t *)userdata) != 974536)
40 return; 40 return;
41 41
42 if (type != TOX_MESSAGE_TYPE_MESSAGE) { 42 if (type != TOX_MESSAGE_TYPE_NORMAL) {
43 ck_abort_msg("Bad type"); 43 ck_abort_msg("Bad type");
44 } 44 }
45 45
@@ -401,9 +401,9 @@ START_TEST(test_few_clients)
401 uint8_t msgs[TOX_MAX_MESSAGE_LENGTH + 1]; 401 uint8_t msgs[TOX_MAX_MESSAGE_LENGTH + 1];
402 memset(msgs, 'G', sizeof(msgs)); 402 memset(msgs, 'G', sizeof(msgs));
403 TOX_ERR_FRIEND_SEND_MESSAGE errm; 403 TOX_ERR_FRIEND_SEND_MESSAGE errm;
404 tox_friend_send_message(tox2, 0, TOX_MESSAGE_TYPE_MESSAGE, msgs, TOX_MAX_MESSAGE_LENGTH + 1, &errm); 404 tox_friend_send_message(tox2, 0, TOX_MESSAGE_TYPE_NORMAL, msgs, TOX_MAX_MESSAGE_LENGTH + 1, &errm);
405 ck_assert_msg(errm == TOX_ERR_FRIEND_SEND_MESSAGE_TOO_LONG, "TOX_MAX_MESSAGE_LENGTH is too small\n"); 405 ck_assert_msg(errm == TOX_ERR_FRIEND_SEND_MESSAGE_TOO_LONG, "TOX_MAX_MESSAGE_LENGTH is too small\n");
406 tox_friend_send_message(tox2, 0, TOX_MESSAGE_TYPE_MESSAGE, msgs, TOX_MAX_MESSAGE_LENGTH, &errm); 406 tox_friend_send_message(tox2, 0, TOX_MESSAGE_TYPE_NORMAL, msgs, TOX_MAX_MESSAGE_LENGTH, &errm);
407 ck_assert_msg(errm == TOX_ERR_FRIEND_SEND_MESSAGE_OK, "TOX_MAX_MESSAGE_LENGTH is too big\n"); 407 ck_assert_msg(errm == TOX_ERR_FRIEND_SEND_MESSAGE_OK, "TOX_MAX_MESSAGE_LENGTH is too big\n");
408 408
409 while (1) { 409 while (1) {