diff options
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() |
