make clang-format using clang-format-3.6

This commit is contained in:
Tatsuhiro Tsujikawa 2015-12-27 18:39:47 +09:00
parent 4abad2f64c
commit b1132d6b10
1095 changed files with 30423 additions and 33770 deletions

View file

@ -16,17 +16,18 @@
namespace aria2 {
class GZipDecodingStreamFilterTest:public CppUnit::TestFixture {
class GZipDecodingStreamFilterTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(GZipDecodingStreamFilterTest);
CPPUNIT_TEST(testTransform);
CPPUNIT_TEST_SUITE_END();
class MockSegment2:public MockSegment {
class MockSegment2 : public MockSegment {
private:
int64_t positionToWrite_;
public:
MockSegment2():positionToWrite_(0) {}
MockSegment2() : positionToWrite_(0) {}
virtual void updateWrittenLength(int64_t bytes) CXX11_OVERRIDE
{
@ -42,6 +43,7 @@ class GZipDecodingStreamFilterTest:public CppUnit::TestFixture {
std::unique_ptr<GZipDecodingStreamFilter> filter_;
std::shared_ptr<ByteArrayDiskWriter> writer_;
std::shared_ptr<MockSegment2> segment_;
public:
void setUp()
{
@ -56,14 +58,13 @@ public:
void testTransform();
};
CPPUNIT_TEST_SUITE_REGISTRATION(GZipDecodingStreamFilterTest);
void GZipDecodingStreamFilterTest::testTransform()
{
unsigned char buf[4_k];
std::ifstream in(A2_TEST_DIR"/gzip_decode_test.gz", std::ios::binary);
while(in) {
std::ifstream in(A2_TEST_DIR "/gzip_decode_test.gz", std::ios::binary);
while (in) {
in.read(reinterpret_cast<char*>(buf), sizeof(buf));
filter_->transform(writer_, segment_, buf, in.gcount());
}