You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
545 B

#ifndef _TR_TEST_TORRENT_CONTEXT_HPP_
#define _TR_TEST_TORRENT_CONTEXT_HPP_
#include <string>
class InfoHash {
public:
std::string to_string() { return "12a"; }
};
class TorrentStatus {
public:
bool paused = false;
bool is_seeding = false;
int state = 0;
int priority = 0;
std::string name = "Arch";
};
class TestTorrent {
public:
bool is_valid();
InfoHash info_hash();
TorrentStatus status(int type);
int query_name = 1;
int query_save_path = 2;
bool valid = true;
InfoHash hash;
TorrentStatus status_;
};
#endif