From 74b17836ca36f2559d2b34ccdcf8455dae2746b3 Mon Sep 17 00:00:00 2001 From: irfan Date: Fri, 11 Jun 1999 01:00:50 +0000 Subject: *** empty log message *** --- tests/Map_Manager_Test.cpp | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'tests/Map_Manager_Test.cpp') diff --git a/tests/Map_Manager_Test.cpp b/tests/Map_Manager_Test.cpp index 8f764dd3c10..24ca311588f 100644 --- a/tests/Map_Manager_Test.cpp +++ b/tests/Map_Manager_Test.cpp @@ -51,10 +51,13 @@ typedef ACE_Hash_Map_Reverse_Iterator_Ex HASH_ENTRY; typedef ACE_Active_Map_Manager ACTIVE_MAP_MANAGER; -typedef ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> +typedef ACE_Hash_Map_Manager_Ex, HASH_KEY, COMPARE_KEYS, MUTEX> + CACHE_MAP_IMPLEMENTATION; +typedef ACE_Null_Caching_Strategy + NULL_CACHING_STRATEGY; +typedef ACE_Hash_Cache_Map_Manager HASH_CACHE_MAP_MANAGER; - -typedef ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> +typedef ACE_Cache_Map_Manager CACHE_MAP_MANAGER; static void @@ -94,7 +97,7 @@ test_cache_map_manager (size_t table_size, ACE_ASSERT (i == iterations); } - + { k = iterations - 1; @@ -117,7 +120,7 @@ test_cache_map_manager (size_t table_size, ACE_ASSERT (k == -1); } - + { i = 0; @@ -140,7 +143,7 @@ test_cache_map_manager (size_t table_size, ACE_ASSERT (i == iterations); } - + { k = iterations - 1; @@ -163,7 +166,7 @@ test_cache_map_manager (size_t table_size, ACE_ASSERT (k == -1); } - + } for (i = 0; i < iterations; ++i) @@ -179,7 +182,7 @@ test_cache_map_manager (size_t table_size, --remaining_entries; ACE_ASSERT (map.current_size () == remaining_entries); } - + } static void @@ -219,7 +222,7 @@ test_hash_cache_map_manager (size_t table_size, ACE_ASSERT (i == iterations); } - + { k = iterations - 1; @@ -242,7 +245,7 @@ test_hash_cache_map_manager (size_t table_size, ACE_ASSERT (k == -1); } - + { i = 0; @@ -265,7 +268,7 @@ test_hash_cache_map_manager (size_t table_size, ACE_ASSERT (i == iterations); } - + { k = iterations - 1; @@ -288,7 +291,7 @@ test_hash_cache_map_manager (size_t table_size, ACE_ASSERT (k == -1); } - + } for (i = 0; i < iterations; ++i) @@ -943,6 +946,6 @@ template class ACE_Cache_Map_Manager #pragma instantiate ACE_Hash_Map_Manager_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > #pragma instantiate ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int > -#pragma instantiate ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> -#pragma instantiate ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> +#pragma instantiate ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> +#pragma instantiate ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -- cgit v1.2.1