diff options
author | Qingping Hou <dave2008713@gmail.com> | 2014-02-04 19:40:55 -0500 |
---|---|---|
committer | Qingping Hou <dave2008713@gmail.com> | 2014-02-06 16:13:55 -0500 |
commit | 0fbe7f31883787df9c6fe91a3869e5f3f6a2befe (patch) | |
tree | da097907254dcbe8d67cf472d5dbf7910cb0e923 /src/test | |
parent | bf66ff915aa3b97922c3313542ed2f2f554d9c57 (diff) | |
download | tor-0fbe7f31883787df9c6fe91a3869e5f3f6a2befe.tar tor-0fbe7f31883787df9c6fe91a3869e5f3f6a2befe.tar.gz |
remove node_describe_by_id() function
This function is not used anymore
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/include.am | 1 | ||||
-rw-r--r-- | src/test/test.c | 2 | ||||
-rw-r--r-- | src/test/test_router.c | 37 |
3 files changed, 0 insertions, 40 deletions
diff --git a/src/test/include.am b/src/test/include.am index 9f6c3e0d5..aa6a872af 100644 --- a/src/test/include.am +++ b/src/test/include.am @@ -39,7 +39,6 @@ src_test_test_SOURCES = \ src/test/test_util.c \ src/test/test_config.c \ src/test/test_hs.c \ - src/test/test_router.c \ src/ext/tinytest.c src_test_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) diff --git a/src/test/test.c b/src/test/test.c index 8b2a5ad67..3f8e9c64f 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1626,7 +1626,6 @@ extern struct testcase_t controller_event_tests[]; extern struct testcase_t logging_tests[]; extern struct testcase_t backtrace_tests[]; extern struct testcase_t hs_tests[]; -extern struct testcase_t router_tests[]; static struct testgroup_t testgroups[] = { { "", test_array }, @@ -1651,7 +1650,6 @@ static struct testgroup_t testgroups[] = { { "extorport/", extorport_tests }, { "control/", controller_event_tests }, { "hs/", hs_tests }, - { "router/", router_tests }, END_OF_GROUPS }; diff --git a/src/test/test_router.c b/src/test/test_router.c deleted file mode 100644 index 5e816564d..000000000 --- a/src/test/test_router.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright (c) 2007-2013, The Tor Project, Inc. */ -/* See LICENSE for licensing information */ - -/** - * \file test_router.c - * \brief Unit tests for router related functions. - **/ - -#include "or.h" -#include "nodelist.h" -#include "router.h" -#include "test.h" - -/** Tese the case when node_get_by_id() returns NULL, node_describe_by_id - * should return the base 16 encoding of the id. - */ -static void -test_node_describe_by_id_null_node(void *arg) -{ - const char ID[] = "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA" - "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"; - (void) arg; - - /* make sure node_get_by_id returns NULL */ - test_assert(!node_get_by_id(ID)); - test_streq(node_describe_by_id(ID), - "$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - done: - return; -} - -struct testcase_t router_tests[] = { - { "node_get_by_id_null_node", test_node_describe_by_id_null_node, TT_FORK, - NULL, NULL }, - END_OF_TESTCASES -}; - |