summaryrefslogtreecommitdiff
path: root/src/test/test_protover.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-12 14:11:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:53 -0700
commit3a3120819c8f600ef7d22ddf3f5476791c7e1d9b (patch)
treedcd3d5548104d560fcfec91c09ccfc6045dcc4fa /src/test/test_protover.c
parent78c07eeee1184feba25a554d9902fe22d9da64fd (diff)
downloadtor-3a3120819c8f600ef7d22ddf3f5476791c7e1d9b.tar.gz
tor-3a3120819c8f600ef7d22ddf3f5476791c7e1d9b.zip
Rename compute_protover_vote to protover_compute_vote
Diffstat (limited to 'src/test/test_protover.c')
-rw-r--r--src/test/test_protover.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_protover.c b/src/test/test_protover.c
index eacbbcb81d..f00955d1b4 100644
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@ -120,22 +120,22 @@ test_protover_vote(void *arg)
(void) arg;
smartlist_t *lst = smartlist_new();
- char *result = compute_protover_vote(lst, 1);
+ char *result = protover_compute_vote(lst, 1);
tt_str_op(result, OP_EQ, "");
tor_free(result);
smartlist_add(lst, (void*) "Foo=1-10,500 Bar=1,3-7,8");
- result = compute_protover_vote(lst, 1);
+ result = protover_compute_vote(lst, 1);
tt_str_op(result, OP_EQ, "Bar=1,3-8 Foo=1-10,500");
tor_free(result);
smartlist_add(lst, (void*) "Quux=123-456,78 Bar=2-6,8 Foo=9");
- result = compute_protover_vote(lst, 1);
+ result = protover_compute_vote(lst, 1);
tt_str_op(result, OP_EQ, "Bar=1-8 Foo=1-10,500 Quux=78,123-456");
tor_free(result);
- result = compute_protover_vote(lst, 2);
+ result = protover_compute_vote(lst, 2);
tt_str_op(result, OP_EQ, "Bar=3-6,8 Foo=9");
tor_free(result);