mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-07 02:32:32 +00:00
31 lines
610 B
C++
31 lines
610 B
C++
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
#include "rpc/command_map.h"
|
|
#include "rpc/xmlrpc.h"
|
|
|
|
class XmlrpcTest : public CppUnit::TestFixture {
|
|
CPPUNIT_TEST_SUITE(XmlrpcTest);
|
|
CPPUNIT_TEST(test_basics);
|
|
CPPUNIT_TEST(test_invalid_utf8);
|
|
CPPUNIT_TEST(test_size_limit);
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
public:
|
|
static const int cmd_size = 256;
|
|
|
|
void setUp();
|
|
void tearDown() {}
|
|
|
|
void test_basics();
|
|
void test_invalid_utf8();
|
|
void test_size_limit();
|
|
|
|
private:
|
|
rpc::XmlRpc m_xmlrpc;
|
|
|
|
rpc::CommandMap m_map;
|
|
|
|
rpc::command_base m_commands[cmd_size];
|
|
rpc::command_base* m_commandItr;
|
|
};
|