diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /test/ServerStatTest.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'test/ServerStatTest.cc')
| -rw-r--r-- | test/ServerStatTest.cc | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/test/ServerStatTest.cc b/test/ServerStatTest.cc index cc033710..34a47813 100644 --- a/test/ServerStatTest.cc +++ b/test/ServerStatTest.cc @@ -10,12 +10,13 @@ namespace aria2 { -class ServerStatTest:public CppUnit::TestFixture { +class ServerStatTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ServerStatTest); CPPUNIT_TEST(testSetStatus); CPPUNIT_TEST(testToString); CPPUNIT_TEST_SUITE_END(); + public: void setUp() {} @@ -25,7 +26,6 @@ public: void testToString(); }; - CPPUNIT_TEST_SUITE_REGISTRATION(ServerStatTest); void ServerStatTest::testSetStatus() @@ -53,24 +53,22 @@ void ServerStatTest::testToString() localhost_http.setMultiConnectionAvgSpeed(102); localhost_http.setCounter(5); - CPPUNIT_ASSERT_EQUAL - (std::string - ("host=localhost, protocol=http, dl_speed=90000," - " sc_avg_speed=101, mc_avg_speed=102," - " last_updated=1000, counter=5, status=OK"), - localhost_http.toString()); + CPPUNIT_ASSERT_EQUAL( + std::string("host=localhost, protocol=http, dl_speed=90000," + " sc_avg_speed=101, mc_avg_speed=102," + " last_updated=1000, counter=5, status=OK"), + localhost_http.toString()); ServerStat localhost_ftp("localhost", "ftp"); localhost_ftp.setDownloadSpeed(10000); localhost_ftp.setLastUpdated(Time(1210000000)); localhost_ftp.setStatus("ERROR"); - CPPUNIT_ASSERT_EQUAL - (std::string - ("host=localhost, protocol=ftp, dl_speed=10000," - " sc_avg_speed=0, mc_avg_speed=0," - " last_updated=1210000000, counter=0, status=ERROR"), - localhost_ftp.toString()); + CPPUNIT_ASSERT_EQUAL( + std::string("host=localhost, protocol=ftp, dl_speed=10000," + " sc_avg_speed=0, mc_avg_speed=0," + " last_updated=1210000000, counter=0, status=ERROR"), + localhost_ftp.toString()); } } // namespace aria2 |
