aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-12-04 09:16:49 -0500
committerNick Mathewson <nickm@torproject.org>2014-12-04 09:16:49 -0500
commit58df153163ec0e4430dbf136f4194fd43150752c (patch)
tree8b92c52c5bdd77f369ceb245d94e9ce763fa8604 /src/test/test_channel.c
parent11c044e46a027c759b1ac054bd320eb902bca602 (diff)
downloadtor-58df153163ec0e4430dbf136f4194fd43150752c.tar.gz
tor-58df153163ec0e4430dbf136f4194fd43150752c.zip
Fix more 64/32 warnings in test_channel.c
Diffstat (limited to 'src/test/test_channel.c')
-rw-r--r--src/test/test_channel.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/test/test_channel.c b/src/test/test_channel.c
index 8213db614f..f882b99906 100644
--- a/src/test/test_channel.c
+++ b/src/test/test_channel.c
@@ -1433,7 +1433,7 @@ test_channel_queue_size(void *arg)
/* Initial queue size update */
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 0);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 0);
global_queue_estimate = channel_get_global_queue_estimate();
tt_u64_op(global_queue_estimate, ==, 0);
@@ -1468,23 +1468,23 @@ test_channel_queue_size(void *arg)
/* Update queue size estimates */
channel_update_xmit_queue_size(ch);
/* One cell, times an overhead factor of 1.0 */
- tt_int_op(ch->bytes_queued_for_xmit, ==, 512);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
/* Try a different overhead factor */
test_overhead_estimate = 0.5f;
/* This one should be ignored since it's below 1.0 */
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 512);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
/* Now try a larger one */
test_overhead_estimate = 2.0f;
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 1024);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 1024);
/* Go back to 1.0 */
test_overhead_estimate = 1.0f;
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 512);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
/* Check the global estimate too */
global_queue_estimate = channel_get_global_queue_estimate();
- tt_int_op(global_queue_estimate, ==, 512);
+ tt_u64_op(global_queue_estimate, ==, 512);
/* Go to open */
old_count = test_cells_written;
@@ -1498,9 +1498,9 @@ test_channel_queue_size(void *arg)
/* Check the queue size again */
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 512);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 512);
global_queue_estimate = channel_get_global_queue_estimate();
- tt_int_op(global_queue_estimate, ==, 512);
+ tt_u64_op(global_queue_estimate, ==, 512);
/*
* Now the cell is in the queue, and we're open, so we should get 31
@@ -1522,9 +1522,9 @@ test_channel_queue_size(void *arg)
/* Should have queue size estimate of zero */
channel_update_xmit_queue_size(ch);
- tt_int_op(ch->bytes_queued_for_xmit, ==, 0);
+ tt_u64_op(ch->bytes_queued_for_xmit, ==, 0);
global_queue_estimate = channel_get_global_queue_estimate();
- tt_int_op(global_queue_estimate, ==, 0);
+ tt_u64_op(global_queue_estimate, ==, 0);
/* Okay, now we're done with this one */
MOCK(scheduler_release_channel, scheduler_release_channel_mock);