From 63a3d9484308518469da9247bb868c2895c1f6a2 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 4 Aug 2013 16:34:17 -0300 Subject: [PATCH] fix test_dht.cpp --- libtorrent/test/test_dht.cpp | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/libtorrent/test/test_dht.cpp b/libtorrent/test/test_dht.cpp index dc1aadfc..0377c1f5 100644 --- a/libtorrent/test/test_dht.cpp +++ b/libtorrent/test/test_dht.cpp @@ -208,7 +208,7 @@ void announce_immutable_items(node_impl& node, udp::endpoint const* eps { TEST_EQUAL(parsed[4]->string_value(), "r"); token = parsed[2]->string_value(); - fprintf(stderr, "got token: %s\n", token.c_str()); + //fprintf(stderr, "got token: %s\n", token.c_str()); } else { @@ -385,7 +385,7 @@ int test_main() { TEST_CHECK(parsed[0]->string_value() == "r"); token = parsed[2]->string_value(); - fprintf(stderr, "got token: %s\n", token.c_str()); + //fprintf(stderr, "got token: %s\n", token.c_str()); } else { @@ -427,7 +427,7 @@ int test_main() { TEST_CHECK(parsed[0]->string_value() == "r"); token = parsed[2]->string_value(); - fprintf(stderr, "got token: %s\n", token.c_str()); + //fprintf(stderr, "got token: %s\n", token.c_str()); } else { @@ -575,7 +575,7 @@ int test_main() { TEST_EQUAL(parsed[4]->string_value(), "r"); token = parsed[2]->string_value(); - fprintf(stderr, "got token: %s\n", token.c_str()); + //fprintf(stderr, "got token: %s\n", token.c_str()); } else { @@ -670,3 +670,20 @@ int test_main() #endif +std::string createSignature(std::string &strMessage, std::string &strUsername) +{ + return std::string("signature!"); +} + + +bool verifySignature(std::string const &strMessage, std::string const &strUsername, std::string const &strSign) +{ + return true; +} + +int getBestHeight() +{ + return 10; +} + +