move test code to anon namespace
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 23 Apr 2008 15:01:27 -0700
changeset 3034 b96c58f42432
parent 3033 5daf048843a6
child 3035 644bfc099992
move test code to anon namespace
src/common/packet-metadata-test.cc
--- a/src/common/packet-metadata-test.cc	Wed Apr 23 14:56:58 2008 -0700
+++ b/src/common/packet-metadata-test.cc	Wed Apr 23 15:01:27 2008 -0700
@@ -28,7 +28,9 @@
 #include "packet.h"
 #include "packet-metadata.h"
 
-namespace ns3 {
+using namespace ns3;
+
+namespace {
 
 template <int N>
 class HistoryHeader : public Header
@@ -191,6 +193,10 @@
   return N;
 }
 
+}
+
+namespace ns3 {
+
 
 
 class PacketMetadataTest : public Test {