summaryrefslogtreecommitdiff
path: root/test/ServerStatManTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-08 21:38:00 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:39:43 +0900
commitf0bcfa822e848b7bf89ec7a16407159187283a48 (patch)
tree9e0aa8a06789925a02675dfb8173ad4931604d9b /test/ServerStatManTest.cc
parentb97a7c8ecf410daaac12346c91591d15772f3c7f (diff)
Use int instead of unsigned int where unsigned int is not needed.
Diffstat (limited to 'test/ServerStatManTest.cc')
-rw-r--r--test/ServerStatManTest.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/ServerStatManTest.cc b/test/ServerStatManTest.cc
index 4aab7e31..660a6bc4 100644
--- a/test/ServerStatManTest.cc
+++ b/test/ServerStatManTest.cc
@@ -127,14 +127,10 @@ void ServerStatManTest::testLoad()
CPPUNIT_ASSERT(localhost_http);
CPPUNIT_ASSERT_EQUAL(std::string("localhost"), localhost_http->getHostname());
CPPUNIT_ASSERT_EQUAL(std::string("http"), localhost_http->getProtocol());
- CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(25000),
- localhost_http->getDownloadSpeed());
- CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(101),
- localhost_http->getSingleConnectionAvgSpeed());
- CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(102),
- localhost_http->getMultiConnectionAvgSpeed());
- CPPUNIT_ASSERT_EQUAL(static_cast<unsigned int>(6),
- localhost_http->getCounter());
+ CPPUNIT_ASSERT_EQUAL(25000, localhost_http->getDownloadSpeed());
+ CPPUNIT_ASSERT_EQUAL(101, localhost_http->getSingleConnectionAvgSpeed());
+ CPPUNIT_ASSERT_EQUAL(102, localhost_http->getMultiConnectionAvgSpeed());
+ CPPUNIT_ASSERT_EQUAL(6, localhost_http->getCounter());
CPPUNIT_ASSERT_EQUAL(static_cast<time_t>(1210000000),
localhost_http->getLastUpdated().getTime());
CPPUNIT_ASSERT_EQUAL(ServerStat::OK, localhost_http->getStatus());