diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-07 22:57:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | 12988e5282ef52a2806cbaca9f4074698f35e399 (patch) | |
| tree | 7a8d5a65a8e8478ba5855e84a1077baee1a2028d /test/PeerSessionResourceTest.cc | |
| parent | f25e67b0178511b26d55642f215a095321a169a8 (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.cc | 8 |
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() |
