diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2010-04-09 23:29:46 +0200 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2010-04-09 23:29:46 +0200 |
commit | ec420937c3fbf5890948972d666d0ef8802376d2 (patch) | |
tree | 90d0c9e10f6bd9f462544c839ebc13fd731331ad /src/lib/dns/tests/messagerenderer_unittest.cc | |
parent | - minor cleanup (diff) | |
download | kea-ec420937c3fbf5890948972d666d0ef8802376d2.tar.xz kea-ec420937c3fbf5890948972d666d0ef8802376d2.zip |
fixed place of braces according to coding guideline
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1700 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'src/lib/dns/tests/messagerenderer_unittest.cc')
-rw-r--r-- | src/lib/dns/tests/messagerenderer_unittest.cc | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/lib/dns/tests/messagerenderer_unittest.cc b/src/lib/dns/tests/messagerenderer_unittest.cc index 2cc2c29a65..197ee7c9e8 100644 --- a/src/lib/dns/tests/messagerenderer_unittest.cc +++ b/src/lib/dns/tests/messagerenderer_unittest.cc @@ -49,8 +49,7 @@ protected: const uint8_t MessageRendererTest::testdata[5] = {1, 2, 3, 4, 5}; // The test cases are borrowed from those for the OutputBuffer class. -TEST_F(MessageRendererTest, writeIntger) -{ +TEST_F(MessageRendererTest, writeIntger) { renderer.writeUint16(data16); expected_size += sizeof(data16); @@ -58,8 +57,7 @@ TEST_F(MessageRendererTest, writeIntger) renderer.getLength(), &testdata[1], sizeof(data16)); } -TEST_F(MessageRendererTest, writeName) -{ +TEST_F(MessageRendererTest, writeName) { UnitTestUtil::readWireData("testdata/name_toWire1", data); renderer.writeName(Name("a.example.com.")); renderer.writeName(Name("b.example.com.")); @@ -68,8 +66,7 @@ TEST_F(MessageRendererTest, writeName) buffer.getLength(), &data[0], data.size()); } -TEST_F(MessageRendererTest, writeNameInLargeBuffer) -{ +TEST_F(MessageRendererTest, writeNameInLargeBuffer) { size_t offset = 0x3fff; buffer.skip(offset); @@ -83,8 +80,7 @@ TEST_F(MessageRendererTest, writeNameInLargeBuffer) &data[0], data.size()); } -TEST_F(MessageRendererTest, writeNameWithUncompressed) -{ +TEST_F(MessageRendererTest, writeNameWithUncompressed) { UnitTestUtil::readWireData("testdata/name_toWire3", data); renderer.writeName(Name("a.example.com.")); renderer.writeName(Name("b.example.com."), false); @@ -93,8 +89,7 @@ TEST_F(MessageRendererTest, writeNameWithUncompressed) buffer.getLength(), &data[0], data.size()); } -TEST_F(MessageRendererTest, writeNamePointerChain) -{ +TEST_F(MessageRendererTest, writeNamePointerChain) { UnitTestUtil::readWireData("testdata/name_toWire4", data); renderer.writeName(Name("a.example.com.")); renderer.writeName(Name("b.example.com.")); @@ -103,8 +98,7 @@ TEST_F(MessageRendererTest, writeNamePointerChain) buffer.getLength(), &data[0], data.size()); } -TEST_F(MessageRendererTest, writeNameCaseCompress) -{ +TEST_F(MessageRendererTest, writeNameCaseCompress) { UnitTestUtil::readWireData("testdata/name_toWire1", data); renderer.writeName(Name("a.example.com.")); // this should match the first name in terms of compression: @@ -114,8 +108,7 @@ TEST_F(MessageRendererTest, writeNameCaseCompress) buffer.getLength(), &data[0], data.size()); } -TEST_F(MessageRendererTest, writeRootName) -{ +TEST_F(MessageRendererTest, writeRootName) { // root name is special: it never causes compression or can (reasonably) // be a compression pointer. So it makes sense to check this case // explicitly. |