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/GZipDecoderTest.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/GZipDecoderTest.cc') diff --git a/test/GZipDecoderTest.cc b/test/GZipDecoderTest.cc index 1d969251..3e9a7636 100644 --- a/test/GZipDecoderTest.cc +++ b/test/GZipDecoderTest.cc @@ -12,11 +12,12 @@ namespace aria2 { -class GZipDecoderTest:public CppUnit::TestFixture { +class GZipDecoderTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(GZipDecoderTest); CPPUNIT_TEST(testDecode); CPPUNIT_TEST_SUITE_END(); + public: void setUp() {} @@ -25,7 +26,6 @@ public: void testDecode(); }; - CPPUNIT_TEST_SUITE_REGISTRATION(GZipDecoderTest); void GZipDecoderTest::testDecode() @@ -33,16 +33,16 @@ void GZipDecoderTest::testDecode() GZipDecoder decoder; decoder.init(); - std::string outfile(A2_TEST_OUT_DIR"/aria2_GZipDecoderTest_testDecode"); + std::string outfile(A2_TEST_OUT_DIR "/aria2_GZipDecoderTest_testDecode"); char buf[4_k]; - std::ifstream in(A2_TEST_DIR"/gzip_decode_test.gz", std::ios::binary); + std::ifstream in(A2_TEST_DIR "/gzip_decode_test.gz", std::ios::binary); std::ofstream out(outfile.c_str(), std::ios::binary); - while(in) { + while (in) { in.read(buf, sizeof(buf)); - std::string r = decoder.decode - (reinterpret_cast(buf), in.gcount()); + std::string r = decoder.decode(reinterpret_cast(buf), + in.gcount()); out.write(r.data(), r.size()); } -- cgit