mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +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
|
@ -12,12 +12,13 @@
|
|||
|
||||
namespace aria2 {
|
||||
|
||||
class DHTMessageTrackerEntryTest:public CppUnit::TestFixture {
|
||||
class DHTMessageTrackerEntryTest : public CppUnit::TestFixture {
|
||||
|
||||
CPPUNIT_TEST_SUITE(DHTMessageTrackerEntryTest);
|
||||
CPPUNIT_TEST(testMatch);
|
||||
CPPUNIT_TEST(testHandleTimeout);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
public:
|
||||
void setUp() {}
|
||||
|
||||
|
@ -28,7 +29,6 @@ public:
|
|||
void testHandleTimeout();
|
||||
};
|
||||
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(DHTMessageTrackerEntryTest);
|
||||
|
||||
void DHTMessageTrackerEntryTest::testMatch()
|
||||
|
@ -42,8 +42,7 @@ void DHTMessageTrackerEntryTest::testMatch()
|
|||
|
||||
DHTMessageTrackerEntry entry(msg1->getRemoteNode(),
|
||||
msg1->getTransactionID(),
|
||||
msg1->getMessageType(),
|
||||
30_s);
|
||||
msg1->getMessageType(), 30_s);
|
||||
|
||||
CPPUNIT_ASSERT(entry.match(msg1->getTransactionID(),
|
||||
msg1->getRemoteNode()->getIPAddress(),
|
||||
|
@ -51,13 +50,12 @@ void DHTMessageTrackerEntryTest::testMatch()
|
|||
CPPUNIT_ASSERT(!entry.match(msg2->getTransactionID(),
|
||||
msg2->getRemoteNode()->getIPAddress(),
|
||||
msg2->getRemoteNode()->getPort()));
|
||||
} catch(Exception& e) {
|
||||
}
|
||||
catch (Exception& e) {
|
||||
CPPUNIT_FAIL(e.stackTrace());
|
||||
}
|
||||
}
|
||||
|
||||
void DHTMessageTrackerEntryTest::testHandleTimeout()
|
||||
{
|
||||
}
|
||||
void DHTMessageTrackerEntryTest::testHandleTimeout() {}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue