#include "libtorrent/storage.hpp"#include "libtorrent/file_pool.hpp"#include "libtorrent/hasher.hpp"#include "libtorrent/session.hpp"#include "libtorrent/aux_/session_impl.hpp"#include <boost/utility.hpp>#include <boost/filesystem/operations.hpp>#include <boost/filesystem/convenience.hpp>#include <boost/thread/mutex.hpp>#include "test.hpp"Go to the source code of this file.
Functions | |
| void | run_storage_tests (torrent_info &info) |
| int | test_main () |
Variables | |
| const int | piece_size = 16 |
| void run_storage_tests | ( | torrent_info & | info | ) |
Definition at line 23 of file test_storage.cpp.
References libtorrent::piece_manager::check_fastresume(), libtorrent::piece_manager::check_files(), count, libtorrent::torrent_info::create_torrent(), libtorrent::piece_manager::move_storage(), libtorrent::torrent_info::num_pieces(), piece_size, pieces(), libtorrent::piece_manager::read(), libtorrent::storage::read(), libtorrent::piece_manager::release_files(), libtorrent::storage::release_files(), simple_client::s, libtorrent::torrent_info::set_hash(), TEST_CHECK, and libtorrent::storage::write().
Referenced by test_main().
| int test_main | ( | ) |
Definition at line 118 of file test_storage.cpp.
References libtorrent::torrent_info::add_file(), simple_client::info, piece_size, run_storage_tests(), libtorrent::torrent_info::set_piece_size(), and TEST_CHECK.
Referenced by main().
| const int piece_size = 16 |
Definition at line 21 of file test_storage.cpp.
Referenced by libtorrent::piece_manager::impl::allocate_slots(), bind_torrent_info(), libtorrent::piece_manager::impl::identify_data(), main(), libtorrent::web_peer_connection::on_receive(), run_storage_tests(), and test_main().
1.5.6