summaryrefslogtreecommitdiff
path: root/test/PeerSessionResourceTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-07 22:57:34 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:39:43 +0900
commit12988e5282ef52a2806cbaca9f4074698f35e399 (patch)
tree7a8d5a65a8e8478ba5855e84a1077baee1a2028d /test/PeerSessionResourceTest.cc
parentf25e67b0178511b26d55642f215a095321a169a8 (diff)
Replaced uint64_t with off_t or int64_t.
Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t.
Diffstat (limited to 'test/PeerSessionResourceTest.cc')
-rw-r--r--test/PeerSessionResourceTest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/PeerSessionResourceTest.cc b/test/PeerSessionResourceTest.cc
index ff7c2fcf..1ced80ac 100644
--- a/test/PeerSessionResourceTest.cc
+++ b/test/PeerSessionResourceTest.cc
@@ -106,20 +106,20 @@ void PeerSessionResourceTest::testUpdateUploadLength()
{
PeerSessionResource res(1024, 1024*1024);
- CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.uploadLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)0LL, res.uploadLength());
res.updateUploadLength(100);
res.updateUploadLength(200);
- CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.uploadLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)300LL, res.uploadLength());
}
void PeerSessionResourceTest::testUpdateDownloadLength()
{
PeerSessionResource res(1024, 1024*1024);
- CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.downloadLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)0LL, res.downloadLength());
res.updateDownloadLength(100);
res.updateDownloadLength(200);
- CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.downloadLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)300LL, res.downloadLength());
}
void PeerSessionResourceTest::testExtendedMessageEnabled()