32 #include "gtest/gtest.h" 34 #include <boost/filesystem/path.hpp> 35 #include <boost/filesystem/operations.hpp> 36 #include <boost/program_options.hpp> 39 #include "p2p/net_node.inl" 41 #include "cryptonote_protocol/cryptonote_protocol_handler.inl" 48 namespace po = boost::program_options;
52 namespace nodetool {
template class node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>; }
53 namespace cryptonote {
template class t_cryptonote_protocol_handler<cryptonote::core>; }
55 int main(
int argc,
char** argv)
66 po::options_description desc_options(
"Command line options");
int main(int argc, char *argv[])
bool get_set_enable_assert(bool set=false, bool v=false)
std::string mlog_get_default_log_path(const char *default_filename)
void mlog_configure(const std::string &filename_base, bool console, const std::size_t max_log_file_size=MAX_LOG_FILE_SIZE, const std::size_t max_log_files=MAX_LOG_FILES)
boost::filesystem::path data_dir
Holds cryptonote related classes and helpers.
bool handle_error_helper(const boost::program_options::options_description &desc, F parser)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
const command_line::arg_descriptor< std::string, false, true, 2 > arg_data_dir
This is the orginal cryptonote protocol network-events handler, modified by us.
void add_arg(boost::program_options::options_description &description, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg, bool unique=true)
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
boost::program_options::basic_parsed_options< charT > parse_command_line(int argc, const charT *const argv[], const boost::program_options::options_description &desc, bool allow_unregistered=false)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
#define CATCH_ENTRY_L0(lacation, return_val)