Browse Source

fix test_dht.cpp

miguelfreitas
Miguel Freitas 12 years ago
parent
commit
63a3d94843
  1. 25
      libtorrent/test/test_dht.cpp

25
libtorrent/test/test_dht.cpp

@ -208,7 +208,7 @@ void announce_immutable_items(node_impl& node, udp::endpoint const* eps @@ -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() @@ -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() @@ -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() @@ -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() @@ -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;
}

Loading…
Cancel
Save