diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-07-31 12:28:12 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-07-31 12:28:12 +0000 |
| commit | f7e3651d916f03c0a8d51dbd0e265bc5623979a3 (patch) | |
| tree | e1f93d8b3cf7807abb8308fa37d0922a17df5e48 /test/PeerSessionResourceTest.cc | |
| parent | 3d0b10e63717d244ba5c3fad96b9f5024b735adf (diff) | |
2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied tizianomueller's patch to fix compile error.
* test/BitfieldManTest.cc
* test/BtRequestMessageTest.cc
* test/DefaultBtContextTest.cc
* test/DefaultDiskWriterTest.cc
* test/DefaultPieceStorageTest.cc
* test/HttpHeaderProcessorTest.cc
* test/HttpResponseTest.cc
* test/Metalink2RequestGroupTest.cc
* test/MetalinkParserControllerTest.cc
* test/MetalinkProcessorTest.cc
* test/PeerSessionResourceTest.cc
* test/UtilTest.cc
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 5d39414b..91908469 100644 --- a/test/PeerSessionResourceTest.cc +++ b/test/PeerSessionResourceTest.cc @@ -103,20 +103,20 @@ void PeerSessionResourceTest::testUpdateUploadLength() { PeerSessionResource res(1024, 1024*1024); - CPPUNIT_ASSERT_EQUAL(0ULL, res.uploadLength()); + CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.uploadLength()); res.updateUploadLength(100); res.updateUploadLength(200); - CPPUNIT_ASSERT_EQUAL(300ULL, res.uploadLength()); + CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.uploadLength()); } void PeerSessionResourceTest::testUpdateDownloadLength() { PeerSessionResource res(1024, 1024*1024); - CPPUNIT_ASSERT_EQUAL(0ULL, res.downloadLength()); + CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.downloadLength()); res.updateDownloadLength(100); res.updateDownloadLength(200); - CPPUNIT_ASSERT_EQUAL(300ULL, res.downloadLength()); + CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.downloadLength()); } void PeerSessionResourceTest::testUpdateLatency() |
