diff options
author | Taylor Yu <catalyst@torproject.org> | 2019-12-08 22:20:16 -0600 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2019-12-09 09:55:04 -0600 |
commit | bfe38878b28a90fb80d9e6311d28dcabd978b1ba (patch) | |
tree | a6fa7a51ae0a1ae2b708669c8478afcadf45cd3d /src/test/test_controller.c | |
parent | 69d56625d14ad61db389acd4e0cdde7582f13c56 (diff) | |
download | tor-bfe38878b28a90fb80d9e6311d28dcabd978b1ba.tar.gz tor-bfe38878b28a90fb80d9e6311d28dcabd978b1ba.zip |
Rename control_reply_add_1kv
Part of ticket 30984.
Diffstat (limited to 'src/test/test_controller.c')
-rw-r--r-- | src/test/test_controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_controller.c b/src/test/test_controller.c index eb68e48476..b3023130ae 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -1993,8 +1993,8 @@ test_control_reply(void *arg) UNMOCK(control_write_reply); MOCK(control_write_reply, mock_control_write_reply_list); reply_strs = smartlist_new(); - control_reply_add_1kv(lines, 250, 0, "A", "B"); - control_reply_add_1kv(lines, 250, 0, "C", "D"); + control_reply_add_one_kv(lines, 250, 0, "A", "B"); + control_reply_add_one_kv(lines, 250, 0, "C", "D"); control_write_reply_lines(NULL, lines); tt_int_op(smartlist_len(reply_strs), OP_EQ, 2); tt_str_op((char *)smartlist_get(reply_strs, 0), OP_EQ, "250-A=B"); @@ -2004,7 +2004,7 @@ test_control_reply(void *arg) SMARTLIST_FOREACH(reply_strs, char *, p, tor_free(p)); smartlist_clear(reply_strs); control_reply_add_printf(lines, 250, "PROTOCOLINFO %d", 1); - control_reply_add_1kv(lines, 250, KV_OMIT_VALS|KV_RAW, "AUTH", ""); + control_reply_add_one_kv(lines, 250, KV_OMIT_VALS|KV_RAW, "AUTH", ""); control_reply_append_kv(lines, "METHODS", "COOKIE"); control_reply_append_kv(lines, "COOKIEFILE", escaped("/tmp/cookie")); control_reply_add_done(lines); |