summaryrefslogtreecommitdiff
path: root/test/HttpResponseTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-07 22:57:34 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:39:43 +0900
commit12988e5282ef52a2806cbaca9f4074698f35e399 (patch)
tree7a8d5a65a8e8478ba5855e84a1077baee1a2028d /test/HttpResponseTest.cc
parentf25e67b0178511b26d55642f215a095321a169a8 (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/HttpResponseTest.cc')
-rw-r--r--test/HttpResponseTest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/HttpResponseTest.cc b/test/HttpResponseTest.cc
index 482ba66c..a5c8d7ed 100644
--- a/test/HttpResponseTest.cc
+++ b/test/HttpResponseTest.cc
@@ -101,7 +101,7 @@ void HttpResponseTest::testGetContentLength_null()
{
HttpResponse httpResponse;
- CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, httpResponse.getContentLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpResponse.getContentLength());
}
void HttpResponseTest::testGetContentLength_contentLength()
@@ -113,7 +113,7 @@ void HttpResponseTest::testGetContentLength_contentLength()
httpResponse.setHttpHeader(httpHeader);
- CPPUNIT_ASSERT_EQUAL((uint64_t)4294967296ULL, httpResponse.getContentLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)4294967296LL, httpResponse.getContentLength());
}
void HttpResponseTest::testGetEntityLength()
@@ -125,11 +125,11 @@ void HttpResponseTest::testGetEntityLength()
httpResponse.setHttpHeader(httpHeader);
- CPPUNIT_ASSERT_EQUAL((uint64_t)4294967296ULL, httpResponse.getEntityLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)4294967296LL, httpResponse.getEntityLength());
httpHeader->put("content-range", "bytes 1-4294967296/4294967297");
- CPPUNIT_ASSERT_EQUAL((uint64_t)4294967297ULL, httpResponse.getEntityLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)4294967297LL, httpResponse.getEntityLength());
}