mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
make clang-format using clang-format-3.6
This commit is contained in:
parent
4abad2f64c
commit
b1132d6b10
1095 changed files with 30423 additions and 33770 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace aria2 {
|
||||
|
||||
class HttpHeaderTest:public CppUnit::TestFixture {
|
||||
class HttpHeaderTest : public CppUnit::TestFixture {
|
||||
|
||||
CPPUNIT_TEST_SUITE(HttpHeaderTest);
|
||||
CPPUNIT_TEST(testGetRange);
|
||||
|
@ -25,14 +25,15 @@ public:
|
|||
void testRemove();
|
||||
};
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION( HttpHeaderTest );
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(HttpHeaderTest);
|
||||
|
||||
void HttpHeaderTest::testGetRange()
|
||||
{
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
httpHeader.put(HttpHeader::CONTENT_RANGE,
|
||||
"9223372036854775800-9223372036854775801/9223372036854775807");
|
||||
httpHeader.put(
|
||||
HttpHeader::CONTENT_RANGE,
|
||||
"9223372036854775800-9223372036854775801/9223372036854775807");
|
||||
|
||||
Range range = httpHeader.getRange();
|
||||
|
||||
|
@ -42,8 +43,9 @@ void HttpHeaderTest::testGetRange()
|
|||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
httpHeader.put(HttpHeader::CONTENT_RANGE,
|
||||
"9223372036854775800-9223372036854775801/9223372036854775807");
|
||||
httpHeader.put(
|
||||
HttpHeader::CONTENT_RANGE,
|
||||
"9223372036854775800-9223372036854775801/9223372036854775807");
|
||||
|
||||
Range range = httpHeader.getRange();
|
||||
|
||||
|
@ -118,7 +120,8 @@ void HttpHeaderTest::testGetRange()
|
|||
try {
|
||||
httpHeader.getRange();
|
||||
CPPUNIT_FAIL("Exception must be thrown");
|
||||
} catch(const DlAbortEx& e) {
|
||||
}
|
||||
catch (const DlAbortEx& e) {
|
||||
// success
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +131,8 @@ void HttpHeaderTest::testGetRange()
|
|||
try {
|
||||
httpHeader.getRange();
|
||||
CPPUNIT_FAIL("Exception must be thrown");
|
||||
} catch(const DlAbortEx& e) {
|
||||
}
|
||||
catch (const DlAbortEx& e) {
|
||||
// success
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue