mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
d16263701a
Faults clearly instead of the confusing positional parse error it replaces.
35 lines
754 B
C++
35 lines
754 B
C++
#include "test/helpers/test_fixture.h"
|
|
#include "test/helpers/test_main_thread.h"
|
|
|
|
#include "rpc/command_map.h"
|
|
#include "rpc/xmlrpc.h"
|
|
|
|
class TestXmlrpc : public test_fixture {
|
|
CPPUNIT_TEST_SUITE(TestXmlrpc);
|
|
|
|
CPPUNIT_TEST(test_basics);
|
|
CPPUNIT_TEST(test_invalid_utf8);
|
|
CPPUNIT_TEST(test_size_limit);
|
|
CPPUNIT_TEST(test_response_size_limit);
|
|
CPPUNIT_TEST(test_multicall_member_order);
|
|
|
|
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();
|
|
void test_response_size_limit();
|
|
void test_multicall_member_order();
|
|
|
|
private:
|
|
std::unique_ptr<TestMainThread> m_test_main_thread;
|
|
|
|
rpc::XmlRpc m_xmlrpc;
|
|
};
|