summaryrefslogtreecommitdiff
path: root/tests/Map_Manager_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Map_Manager_Test.cpp')
-rw-r--r--tests/Map_Manager_Test.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/tests/Map_Manager_Test.cpp b/tests/Map_Manager_Test.cpp
index 417fa20771c..d58b6b7d6c0 100644
--- a/tests/Map_Manager_Test.cpp
+++ b/tests/Map_Manager_Test.cpp
@@ -1,6 +1,24 @@
+// ============================================================================
+// $Id$
+
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// Map_Manager_Test.cpp
+//
+// = DESCRIPTION
+// This is a simple test of the ACE_Map_Manager that
+// illustrates how to use the forward and reverse iterators.
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+// ============================================================================
+
#include "ace/Map_Manager.h"
#include "ace/Synch.h"
-#include <iostream.h>
typedef ACE_Null_Mutex MUTEX;
typedef int KEY;
@@ -12,8 +30,10 @@ typedef ACE_Map_Reverse_Iterator <KEY, VALUE, MUTEX> REVERSE_ITERATOR;
typedef ACE_Map_Entry <KEY, VALUE> ENTRY;
int
-main ()
+main (int argc, char *argv[])
{
+ ACE_START_TEST ("Map_Manager_Test.cpp");
+
const int ITERATIONS = 5;
MAP_MANAGER map;
@@ -67,5 +87,6 @@ main ()
}
}
+ ACE_END_TEST;
return 0;
}