make clang-format using clang-format-3.6

This commit is contained in:
Tatsuhiro Tsujikawa 2015-12-27 18:39:47 +09:00
parent 4abad2f64c
commit b1132d6b10
1095 changed files with 30423 additions and 33770 deletions

View file

@ -9,7 +9,7 @@
namespace aria2 {
class UTMetadataRejectExtensionMessageTest:public CppUnit::TestFixture {
class UTMetadataRejectExtensionMessageTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(UTMetadataRejectExtensionMessageTest);
CPPUNIT_TEST(testGetExtensionMessageID);
@ -17,6 +17,7 @@ class UTMetadataRejectExtensionMessageTest:public CppUnit::TestFixture {
CPPUNIT_TEST(testToString);
CPPUNIT_TEST(testDoReceivedAction);
CPPUNIT_TEST_SUITE_END();
public:
void testGetExtensionMessageID();
void testGetBencodedReject();
@ -24,7 +25,6 @@ public:
void testDoReceivedAction();
};
CPPUNIT_TEST_SUITE_REGISTRATION(UTMetadataRejectExtensionMessageTest);
void UTMetadataRejectExtensionMessageTest::testGetExtensionMessageID()
@ -37,8 +37,8 @@ void UTMetadataRejectExtensionMessageTest::testGetBencodedReject()
{
UTMetadataRejectExtensionMessage msg(1);
msg.setIndex(1);
CPPUNIT_ASSERT_EQUAL
(std::string("d8:msg_typei2e5:piecei1ee"), msg.getPayload());
CPPUNIT_ASSERT_EQUAL(std::string("d8:msg_typei2e5:piecei1ee"),
msg.getPayload());
}
void UTMetadataRejectExtensionMessageTest::testToString()
@ -56,7 +56,8 @@ void UTMetadataRejectExtensionMessageTest::testDoReceivedAction()
try {
msg.doReceivedAction();
CPPUNIT_FAIL("exception must be thrown.");
} catch(DlAbortEx& e) {
}
catch (DlAbortEx& e) {
// success
}
}