|
|
|
|
@ -61,13 +61,13 @@ bool TestSession::is_dht_running() const {
|
|
|
|
|
return settings_.enable_dht_; |
|
|
|
|
} |
|
|
|
|
std::vector<TestTorrent> &TestSession::get_torrents() { |
|
|
|
|
return torrents; |
|
|
|
|
return torrents_; |
|
|
|
|
} |
|
|
|
|
void TestSession::apply_settings(TestSessionSettings settings) { |
|
|
|
|
settings_ = settings; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
void TestSession::async_add_torrent(const libtorrent::add_torrent_params &settings) { |
|
|
|
|
torrents.emplace_back(settings); |
|
|
|
|
torrents_.emplace_back(settings); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|