]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2850] unrelated cleanup: make some test methods non public when possible
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 7 May 2013 06:03:40 +0000 (23:03 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 7 May 2013 06:03:40 +0000 (23:03 -0700)
also clarify TearDown is inherited by explicitly adding 'virtual'.

src/lib/datasrc/tests/memory/zone_writer_unittest.cc

index a4b516dc550030135282fe2f4c04d6cc3cf677be..d69fce562085ef33284f6506702b31e6d715fb18 100644 (file)
@@ -39,7 +39,7 @@ namespace {
 class TestException {};
 
 class ZoneWriterTest : public ::testing::Test {
-public:
+protected:
     ZoneWriterTest() :
         segment_(ZoneTableSegment::create(RRClass::IN(), "local")),
         writer_(new
@@ -51,11 +51,10 @@ public:
         load_null_(false),
         load_data_(false)
     {}
-    void TearDown() {
+    virtual void TearDown() {
         // Release the writer
         writer_.reset();
     }
-protected:
     scoped_ptr<ZoneTableSegment> segment_;
     scoped_ptr<ZoneWriter> writer_;
     bool load_called_;