made test_piece_picker build on gcc 3.3

This commit is contained in:
Arvid Norberg 2007-07-04 18:05:29 +00:00
parent 3c69e3b2cb
commit 0e1e1484ee
3 changed files with 223 additions and 226 deletions

View File

@ -121,9 +121,9 @@ namespace libtorrent
struct peer
{
enum connection_type { not_connectable,connectable };
enum connection_type { not_connectable, connectable };
peer(const tcp::endpoint& ip, connection_type t, int src);
peer(tcp::endpoint const& ip, connection_type t, int src);
size_type total_download() const;
size_type total_upload() const;

View File

@ -134,7 +134,7 @@ void test_transfer(libtorrent::pe_settings::enc_policy policy,
int test_main()
{
using namespace libtorrent;
int repcount = 64;
int repcount = 1024;
for (int rep = 0; rep < repcount; ++rep)
{

View File

@ -3,14 +3,12 @@
#include "test.hpp"
using namespace libtorrent;
int test_main()
{
using namespace libtorrent;
{
policy::peer peer_struct(tcp::endpoint(), policy::peer::connectable, 0);
tcp::endpoint endp;
policy::peer peer_struct(endp, policy::peer::connectable, 0);
const int num_pieces = 6;
@ -241,7 +239,6 @@ int test_main()
// make sure the piece picker allows filtered pieces
// to become available
p.mark_as_finished(piece_block(4, 2), 0);
}
return 0;
}