Browse Source

[2088] Put test in anonymous namespace

Mukund Sivaraman 13 years ago
parent
commit
093aab9cf5
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/lib/util/tests/memory_segment_local_unittest.cc

+ 3 - 4
src/lib/util/tests/memory_segment_local_unittest.cc

@@ -17,9 +17,9 @@
 #include <memory>
 #include <memory>
 
 
 using namespace std;
 using namespace std;
+using namespace isc::util;
 
 
-namespace isc {
-namespace util {
+namespace {
 
 
 TEST(MemorySegmentLocal, TestLocal) {
 TEST(MemorySegmentLocal, TestLocal) {
     auto_ptr<MemorySegment> segment(new MemorySegmentLocal());
     auto_ptr<MemorySegment> segment(new MemorySegmentLocal());
@@ -52,5 +52,4 @@ TEST(MemorySegmentLocal, TestLocal) {
     EXPECT_TRUE(segment->allMemoryDeallocated());
     EXPECT_TRUE(segment->allMemoryDeallocated());
 }
 }
 
 
-} // namespace util
-} // namespace isc
+} // anonymous namespace