diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:12:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:20:27 +0900 |
| commit | d64089632e82a2548752c7a6baaa68365a795a74 (patch) | |
| tree | 57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /test/SingleFileAllocationIteratorTest.cc | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'test/SingleFileAllocationIteratorTest.cc')
| -rw-r--r-- | test/SingleFileAllocationIteratorTest.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/SingleFileAllocationIteratorTest.cc b/test/SingleFileAllocationIteratorTest.cc index 8be43398..353a6eb3 100644 --- a/test/SingleFileAllocationIteratorTest.cc +++ b/test/SingleFileAllocationIteratorTest.cc @@ -8,27 +8,26 @@ namespace aria2 { -class SingleFileAllocationIteratorTest:public CppUnit::TestFixture { +class SingleFileAllocationIteratorTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SingleFileAllocationIteratorTest); CPPUNIT_TEST(testAllocate); CPPUNIT_TEST_SUITE_END(); -private: +private: public: void setUp() {} void testAllocate(); }; - -CPPUNIT_TEST_SUITE_REGISTRATION( SingleFileAllocationIteratorTest ); +CPPUNIT_TEST_SUITE_REGISTRATION(SingleFileAllocationIteratorTest); void SingleFileAllocationIteratorTest::testAllocate() { std::string dir = A2_TEST_OUT_DIR; std::string fname = "aria2_SingleFileAllocationIteratorTest_testAllocate"; - std::string fn = dir+"/"+fname; + std::string fn = dir + "/" + fname; std::ofstream of(fn.c_str(), std::ios::binary); of << "0123456789"; of.close(); @@ -45,7 +44,7 @@ void SingleFileAllocationIteratorTest::testAllocate() SingleFileAllocationIterator itr(&writer, offset, totalLength); itr.init(); - while(!itr.finished()) { + while (!itr.finished()) { itr.allocateChunk(); } File f(fn); |
