Browse Source

rename torrents array

master
Jørgen Lien Sellæg 9 years ago
parent
commit
f301303e5b
  1. 2
      toREST/tests/include/SessionContext.hpp
  2. 4
      toREST/tests/stubs/SessionContext.cpp

2
toREST/tests/include/SessionContext.hpp

@ -28,7 +28,7 @@ class TestSession {
public: public:
bool valid = false; bool valid = false;
bool paused = false; bool paused = false;
std::vector<TestTorrent> torrents; std::vector<TestTorrent> torrents_;
TestSessionSettings settings_; TestSessionSettings settings_;
bool is_valid(); bool is_valid();
TestSessionSettings get_settings(); TestSessionSettings get_settings();

4
toREST/tests/stubs/SessionContext.cpp

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

Loading…
Cancel
Save