Browse Source

[2850] unrelated cleanup: make some test methods non public when possible

also clarify TearDown is inherited by explicitly adding 'virtual'.
JINMEI Tatuya 12 years ago
parent
commit
9b930275a2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/lib/datasrc/tests/memory/zone_writer_unittest.cc

+ 2 - 3
src/lib/datasrc/tests/memory/zone_writer_unittest.cc

@@ -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_;