diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:12:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:20:27 +0900 |
| commit | d64089632e82a2548752c7a6baaa68365a795a74 (patch) | |
| tree | 57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /test/XmlRpcRequestParserControllerTest.cc | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'test/XmlRpcRequestParserControllerTest.cc')
| -rw-r--r-- | test/XmlRpcRequestParserControllerTest.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/XmlRpcRequestParserControllerTest.cc b/test/XmlRpcRequestParserControllerTest.cc index c8bb78e9..c8337363 100644 --- a/test/XmlRpcRequestParserControllerTest.cc +++ b/test/XmlRpcRequestParserControllerTest.cc @@ -6,7 +6,7 @@ namespace aria2 { namespace rpc { -class XmlRpcRequestParserControllerTest:public CppUnit::TestFixture { +class XmlRpcRequestParserControllerTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(XmlRpcRequestParserControllerTest); CPPUNIT_TEST(testPopStructFrame); @@ -16,6 +16,7 @@ class XmlRpcRequestParserControllerTest:public CppUnit::TestFixture { CPPUNIT_TEST(testPopArrayFrame_noValue); CPPUNIT_TEST(testPopArrayFrame_compound); CPPUNIT_TEST_SUITE_END(); + public: void setUp() {} @@ -29,7 +30,6 @@ public: void testPopArrayFrame_compound(); }; - CPPUNIT_TEST_SUITE_REGISTRATION(XmlRpcRequestParserControllerTest); void XmlRpcRequestParserControllerTest::testPopStructFrame() @@ -77,7 +77,8 @@ void XmlRpcRequestParserControllerTest::testPopArrayFrame() controller.popArrayFrame(); const List* array = downcast<List>(controller.getCurrentFrameValue()); CPPUNIT_ASSERT_EQUAL((size_t)1, array->size()); - CPPUNIT_ASSERT_EQUAL((Integer::ValueType)100, downcast<Integer>(array->get(0))->i()); + CPPUNIT_ASSERT_EQUAL((Integer::ValueType)100, + downcast<Integer>(array->get(0))->i()); } void XmlRpcRequestParserControllerTest::testPopArrayFrame_noValue() @@ -154,7 +155,8 @@ void XmlRpcRequestParserControllerTest::testPopArrayFrame_compound() downcast<String>(uris->get(1))->s()); CPPUNIT_ASSERT_EQUAL((Integer::ValueType)120, downcast<Integer>(options->get("timeout"))->i()); - CPPUNIT_ASSERT_EQUAL(std::string("jp"), downcast<String>(countryList->get(0))->s()); + CPPUNIT_ASSERT_EQUAL(std::string("jp"), + downcast<String>(countryList->get(0))->s()); } } // namespace rpc |
