mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
This commit is contained in:
parent
ca3f6e57f3
commit
032c7c2808
278 changed files with 1489 additions and 1517 deletions
|
@ -64,7 +64,7 @@ void HttpHeaderProcessorTest::testGetPutBackDataLength()
|
|||
"\r\nputbackme";
|
||||
proc.update(hd1);
|
||||
CPPUNIT_ASSERT(proc.eoh());
|
||||
CPPUNIT_ASSERT_EQUAL((int32_t)9, proc.getPutBackDataLength());
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)9, proc.getPutBackDataLength());
|
||||
|
||||
proc.clear();
|
||||
|
||||
|
@ -72,7 +72,7 @@ void HttpHeaderProcessorTest::testGetPutBackDataLength()
|
|||
"\nputbackme";
|
||||
proc.update(hd2);
|
||||
CPPUNIT_ASSERT(proc.eoh());
|
||||
CPPUNIT_ASSERT_EQUAL((int32_t)9, proc.getPutBackDataLength());
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)9, proc.getPutBackDataLength());
|
||||
}
|
||||
|
||||
void HttpHeaderProcessorTest::testGetPutBackDataLength_nullChar()
|
||||
|
@ -84,7 +84,7 @@ void HttpHeaderProcessorTest::testGetPutBackDataLength_nullChar()
|
|||
std::string hd1(&x[0], &x[42]);
|
||||
proc.update(hd1);
|
||||
CPPUNIT_ASSERT(proc.eoh());
|
||||
CPPUNIT_ASSERT_EQUAL((int32_t)9, proc.getPutBackDataLength());
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)9, proc.getPutBackDataLength());
|
||||
}
|
||||
|
||||
void HttpHeaderProcessorTest::testGetHttpStatusHeader()
|
||||
|
@ -109,7 +109,7 @@ void HttpHeaderProcessorTest::testGetHttpStatusHeader()
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("200"), status);
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("Mon, 25 Jun 2007 16:04:59 GMT"), header->getFirst("Date"));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("Apache/2.2.3 (Debian)"), header->getFirst("Server"));
|
||||
CPPUNIT_ASSERT_EQUAL((int64_t)9187LL, header->getFirstAsLLInt("Content-Length"));
|
||||
CPPUNIT_ASSERT_EQUAL(9187ULL, header->getFirstAsULLInt("Content-Length"));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("text/html; charset=UTF-8"), header->getFirst("Content-Type"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue