aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-08-15 20:55:24 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-15 20:55:24 -0400
commit8394c7020470ffd300b237c4759c4813205a1899 (patch)
tree8fdb84085a55709f2012725e3fc6247563642462 /src/test
parentc370ee7aa7b4de8471a8c6511e0d8bf455130fed (diff)
downloadtor-8394c7020470ffd300b237c4759c4813205a1899.tar
tor-8394c7020470ffd300b237c4759c4813205a1899.tar.gz
Rename rep_hist_exit_stats_history in test.c too
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 9a98a1a0a..f0f86cdb5 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1160,7 +1160,7 @@ test_stats(void)
/* We shouldn't collect exit stats without initializing them. */
rep_hist_note_exit_stream_opened(80);
rep_hist_note_exit_bytes(80, 100, 10000);
- s = rep_hist_exit_stats_history(now + 86400);
+ s = rep_hist_format_exit_stats(now + 86400);
test_assert(!s);
/* Initialize stats, note some streams and bytes, and generate history
@@ -1171,7 +1171,7 @@ test_stats(void)
rep_hist_note_exit_stream_opened(443);
rep_hist_note_exit_bytes(443, 100, 10000);
rep_hist_note_exit_bytes(443, 100, 10000);
- s = rep_hist_exit_stats_history(now + 86400);
+ s = rep_hist_format_exit_stats(now + 86400);
test_streq("exit-stats-end 2010-08-12 13:27:30 (86400 s)\n"
"exit-kibibytes-written 80=1,443=1,other=0\n"
"exit-kibibytes-read 80=10,443=20,other=0\n"
@@ -1182,7 +1182,7 @@ test_stats(void)
* a history string. */
rep_hist_exit_stats_term();
rep_hist_note_exit_bytes(80, 100, 10000);
- s = rep_hist_exit_stats_history(now + 86400);
+ s = rep_hist_format_exit_stats(now + 86400);
test_assert(!s);
/* Re-start stats, add some bytes, reset stats, and see what history we
@@ -1191,7 +1191,7 @@ test_stats(void)
rep_hist_note_exit_stream_opened(80);
rep_hist_note_exit_bytes(80, 100, 10000);
rep_hist_reset_exit_stats(now);
- s = rep_hist_exit_stats_history(now + 86400);
+ s = rep_hist_format_exit_stats(now + 86400);
test_streq("exit-stats-end 2010-08-12 13:27:30 (86400 s)\n"
"exit-kibibytes-written other=0\n"
"exit-kibibytes-read other=0\n"