mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 14:07:37 +03:00
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
gcc 3.4.4 support: * src/DefaultBtContext.cc: int32_t -> int * src/main.cc: int -> int32_t, int32_t -> int * src/messageDigest.h: uint32_t -> unsigned int * src/NameResolver.h: int32_t -> int * src/PeerConnection.cc: int -> int32_t * src/SpeedCalc.cc: int32_t -> int * src/TrackerUpdateCommand.h: int -> int32_t * src/Util.cc: int32_t -> int * src/Util.h: int32_t -> int * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t * test/AnnounceListTest.cc: int -> int32_t * test/ChunkedEncodingTest.cc: int -> int32_t * test/DataTest.cc: int -> int32_t * test/DefaultBtRequestFactoryTest.cc: int -> int32_t * test/DefaultPeerListProcessorTest.cc: int -> int32_t * test/DefaultPieceStorageTest.cc: int -> int32_t * test/FeatureConfigTest.cc: int -> int32_t * test/MetalinkEntryTest.cc: int -> int32_t * test/MockBtRequestFactory.h: int -> int32_t * test/MockPieceStorage.h: int -> int32_t * test/OptionTest.cc: int -> int32_t * test/RequestTest.cc: int -> int32_t * test/SegmentManTest.cc: int -> int32_t * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
This commit is contained in:
parent
6aa98f9b9f
commit
3cc1ed5e09
25 changed files with 120 additions and 92 deletions
|
@ -31,7 +31,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION( ChunkedEncodingTest );
|
|||
void ChunkedEncodingTest::testInflate1() {
|
||||
string msg = "a\r\n1234567890\r\n";
|
||||
char buf[100];
|
||||
int len = sizeof(buf);
|
||||
int32_t len = sizeof(buf);
|
||||
enc->inflate(buf, len, msg.c_str(), msg.size());
|
||||
buf[len] = '\0';
|
||||
CPPUNIT_ASSERT_EQUAL(string("1234567890"), string(buf));
|
||||
|
@ -54,7 +54,7 @@ void ChunkedEncodingTest::testInflateLargeChunk() {
|
|||
string body;
|
||||
is >> body;
|
||||
char buf[4097];
|
||||
int len = sizeof(buf);
|
||||
int32_t len = sizeof(buf);
|
||||
for(int i = 0; i < 2; i++) {
|
||||
string msg = "1000\r\n"+body+"\r\n";
|
||||
len = sizeof(buf);
|
||||
|
@ -63,7 +63,7 @@ void ChunkedEncodingTest::testInflateLargeChunk() {
|
|||
CPPUNIT_ASSERT_EQUAL(body, string(buf));
|
||||
}
|
||||
enc->inflate(buf, len, "0\r\n", 3);
|
||||
CPPUNIT_ASSERT_EQUAL(0, len);
|
||||
CPPUNIT_ASSERT_EQUAL((int32_t)0, len);
|
||||
CPPUNIT_ASSERT(enc->finished());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue