diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /test/SingleFileAllocationIteratorTest.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
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); |
