From b1132d6b10cd3791b9529d7031d723fd0e2d8215 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 27 Dec 2015 18:39:47 +0900 Subject: make clang-format using clang-format-3.6 --- test/SingleFileAllocationIteratorTest.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/SingleFileAllocationIteratorTest.cc') 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); -- cgit