diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-02 21:44:09 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-02 21:44:09 -0400 |
commit | 38ebfc298966c20943a212a83c2cb1bcb0d7765d (patch) | |
tree | ad6c886c7606b3c91dfa8b59cb4a80d225fcf126 /auto_tests/messenger_test.c | |
parent | db78c99ff45a99ac0a5944317b679b5139e3a2c0 (diff) |
Fixed one test.
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r-- | auto_tests/messenger_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c index 76cbf663..7ab7d674 100644 --- a/auto_tests/messenger_test.c +++ b/auto_tests/messenger_test.c | |||
@@ -16,7 +16,6 @@ | |||
16 | 16 | ||
17 | #include "../testing/misc_tools.c" // hex_string_to_bin | 17 | #include "../testing/misc_tools.c" // hex_string_to_bin |
18 | #include "../toxcore/Messenger.h" | 18 | #include "../toxcore/Messenger.h" |
19 | #include "../toxcore/Lossless_UDP.h" | ||
20 | #include <sys/types.h> | 19 | #include <sys/types.h> |
21 | #include <stdint.h> | 20 | #include <stdint.h> |
22 | #include <string.h> | 21 | #include <string.h> |
@@ -46,7 +45,7 @@ START_TEST(test_m_sendmesage) | |||
46 | { | 45 | { |
47 | char *message = "h-hi :3"; | 46 | char *message = "h-hi :3"; |
48 | int good_len = strlen(message); | 47 | int good_len = strlen(message); |
49 | int bad_len = MAX_DATA_SIZE; | 48 | int bad_len = MAX_CRYPTO_PACKET_SIZE; |
50 | 49 | ||
51 | 50 | ||
52 | ck_assert(m_sendmessage(m, -1, (uint8_t *)message, good_len) == 0); | 51 | ck_assert(m_sendmessage(m, -1, (uint8_t *)message, good_len) == 0); |
@@ -127,7 +126,7 @@ START_TEST(test_m_addfriend) | |||
127 | 126 | ||
128 | int good_len = strlen(good_data); | 127 | int good_len = strlen(good_data); |
129 | int bad_len = strlen(bad_data); | 128 | int bad_len = strlen(bad_data); |
130 | int really_bad_len = (MAX_DATA_SIZE - crypto_box_PUBLICKEYBYTES | 129 | int really_bad_len = (MAX_CRYPTO_PACKET_SIZE - crypto_box_PUBLICKEYBYTES |
131 | - crypto_box_NONCEBYTES - crypto_box_BOXZEROBYTES | 130 | - crypto_box_NONCEBYTES - crypto_box_BOXZEROBYTES |
132 | + crypto_box_ZEROBYTES + 100); */ | 131 | + crypto_box_ZEROBYTES + 100); */ |
133 | /* TODO: Update this properly to latest master | 132 | /* TODO: Update this properly to latest master |