From 06644332c2cc5b229ef41857ceed73f7caf2775f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 16 Jun 2008 11:27:52 +0000 Subject: 2008-06-16 Tatsuhiro Tsujikawa Applied Ross's aria2-0.13.2+1-mingw-3.patch. * test/HttpHeaderTest.cc: Casted to off_t where it should. * test/HttpRequestTest.cc: Casted to off_t where it should. --- test/HttpRequestTest.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/HttpRequestTest.cc') diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc index 3b2a3c34..fead309f 100644 --- a/test/HttpRequestTest.cc +++ b/test/HttpRequestTest.cc @@ -54,11 +54,11 @@ void HttpRequestTest::testGetStartByte() SharedHandle p(new Piece(1, 1024)); SharedHandle segment(new PiecedSegment(1024, p)); - CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getStartByte()); + CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getStartByte()); httpRequest.setSegment(segment); - CPPUNIT_ASSERT_EQUAL(1024LL, httpRequest.getStartByte()); + CPPUNIT_ASSERT_EQUAL((off_t)1024LL, httpRequest.getStartByte()); } @@ -72,11 +72,11 @@ void HttpRequestTest::testGetEndByte() SharedHandle piece(new Piece(index, length)); SharedHandle segment(new PiecedSegment(segmentLength, piece)); - CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte()); + CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte()); httpRequest.setSegment(segment); - CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte()); + CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte()); SharedHandle request(new Request()); request->supportsPersistentConnection(true); @@ -84,13 +84,13 @@ void HttpRequestTest::testGetEndByte() httpRequest.setRequest(request); - CPPUNIT_ASSERT_EQUAL((off_t)segmentLength*index+length-1, + CPPUNIT_ASSERT_EQUAL((off_t)(segmentLength*index+length-1), httpRequest.getEndByte()); request->setPipeliningHint(false); - CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte()); + CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte()); } void HttpRequestTest::testCreateRequest() -- cgit