From c9c4aa68643a9bc0ca27d2ea121fb2a9eade7f2e Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 4 Nov 2005 12:30:28 +0000 Subject: ChangeLogTag: Fri Nov 4 12:28:12 UTC 2005 Johnny Willemsen --- ChangeLog | 5 +++++ tests/Map_Test.cpp | 26 +++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2762c1f6d0c..bd5a67105f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 4 12:28:12 UTC 2005 Johnny Willemsen + + * tests/Lazy_Map_Manager_Test.cpp: + Changed MAP to LAZY_MAP + Fri Nov 4 12:04:12 UTC 2005 Johnny Willemsen * ace/Cache_Map_Manager_T.{h,cpp,inl}: diff --git a/tests/Map_Test.cpp b/tests/Map_Test.cpp index 9a8a634662f..8fb46dd983a 100644 --- a/tests/Map_Test.cpp +++ b/tests/Map_Test.cpp @@ -28,7 +28,7 @@ ACE_RCSID(tests, Map_Test, "$Id$") typedef size_t VALUE; // Generic map type. -typedef ACE_Map MAP; +typedef ACE_Map TEST_MAP; // Manager Manager adapter. typedef ACE_Map_Manager_Adapter MAP_MANAGER_ADAPTER; @@ -40,7 +40,7 @@ typedef ACE_Hash_Map_Manager_Ex_Adapter, typedef ACE_Active_Map_Manager_Adapter ACTIVE_MAP_MANAGER_ADAPTER; static void -functionality_test (MAP &map, +functionality_test (TEST_MAP &map, size_t iterations) { size_t counter; @@ -78,13 +78,13 @@ functionality_test (MAP &map, // Forward iteration... { counter = 0; - MAP::iterator end = map.end (); + TEST_MAP::iterator end = map.end (); - for (MAP::iterator iter = map.begin (); + for (TEST_MAP::iterator iter = map.begin (); iter != end; ++iter, ++counter) { - MAP::value_type entry = *iter; + TEST_MAP::value_type entry = *iter; // Recover original key. KEY original_key; @@ -116,14 +116,14 @@ functionality_test (MAP &map, // Reverse iteration... { counter = iterations; - MAP::reverse_iterator end = map.rend (); + TEST_MAP::reverse_iterator end = map.rend (); - for (MAP::reverse_iterator iter = map.rbegin (); + for (TEST_MAP::reverse_iterator iter = map.rbegin (); iter != end; ++iter) { --counter; - MAP::value_type entry = *iter; + TEST_MAP::value_type entry = *iter; // Recover original key. KEY original_key; @@ -175,7 +175,7 @@ functionality_test (MAP &map, } static void -insert_test (MAP &map, +insert_test (TEST_MAP &map, size_t iterations, KEY *keys) { @@ -190,7 +190,7 @@ insert_test (MAP &map, } static void -find_test (MAP &map, +find_test (TEST_MAP &map, size_t iterations, KEY *keys) { @@ -204,7 +204,7 @@ find_test (MAP &map, } static void -unbind_test (MAP &map, +unbind_test (TEST_MAP &map, size_t iterations, KEY *keys) { @@ -219,8 +219,8 @@ unbind_test (MAP &map, } static void -performance_test (void (*ptf) (MAP &, size_t, KEY *), - MAP &map, +performance_test (void (*ptf) (TEST_MAP &, size_t, KEY *), + TEST_MAP &map, size_t iterations, KEY *keys, size_t table_size, -- cgit v1.2.1