aria2/test/DefaultDiskWriterTest.cc
Tatsuhiro Tsujikawa 1b7c198289 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: 
prefix to c++
	standard classes.
	Included string.h where mem* function are used.
2008-02-08 15:53:45 +00:00

31 lines
556 B
C++

#include "DefaultDiskWriter.h"
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class DefaultDiskWriterTest:public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(DefaultDiskWriterTest);
CPPUNIT_TEST(testSize);
CPPUNIT_TEST_SUITE_END();
private:
public:
void setUp() {
}
void testSize();
};
CPPUNIT_TEST_SUITE_REGISTRATION( DefaultDiskWriterTest );
void DefaultDiskWriterTest::testSize()
{
DefaultDiskWriter dw;
dw.openExistingFile("4096chunk.txt");
CPPUNIT_ASSERT_EQUAL((int64_t)4096, dw.size());
}
} // namespace aria2