summaryrefslogtreecommitdiff
path: root/test/unit/context/cdmap_black.h
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2012-03-02 20:38:23 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2012-03-02 20:38:23 +0000
commit068107e1d1f705eb9054b4309a26236230687d80 (patch)
tree4c422f3efd6a8319abe426c518f9d2feb7ab5a6d /test/unit/context/cdmap_black.h
parent53176a3d39935bd77f1c057d0b806c380b346e23 (diff)
CDMap -> CDHashMap
CDSet -> CDHashSet
Diffstat (limited to 'test/unit/context/cdmap_black.h')
-rw-r--r--test/unit/context/cdmap_black.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/unit/context/cdmap_black.h b/test/unit/context/cdmap_black.h
index eb2caa98f..0358d1edd 100644
--- a/test/unit/context/cdmap_black.h
+++ b/test/unit/context/cdmap_black.h
@@ -18,7 +18,7 @@
#include <cxxtest/TestSuite.h>
-#include "context/cdmap.h"
+#include "context/cdhashmap.h"
#include "context/cdlist.h"
using namespace std;
@@ -43,7 +43,7 @@ public:
}
void testSimpleSequence() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
TS_ASSERT(map.find(3) == map.end());
TS_ASSERT(map.find(5) == map.end());
@@ -188,7 +188,7 @@ public:
// no intervening find() in this one
// (under the theory that this could trigger a bug)
void testSimpleSequenceFewerFinds() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -226,7 +226,7 @@ public:
}
void testObliterate() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -357,7 +357,7 @@ public:
}
void testObliteratePrimordial() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -460,7 +460,7 @@ public:
}
void testObliterateCurrent() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -566,7 +566,7 @@ public:
}
void testInsertAtContextLevelZero() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -739,7 +739,7 @@ public:
}
void testObliterateInsertedAtContextLevelZero() {
- CDMap<int, int> map(d_context);
+ CDHashMap<int, int> map(d_context);
map.insert(3, 4);
@@ -933,7 +933,7 @@ public:
//Debug.on("gc");
//Debug.on("context");
- CDMap<int, CDList<myint>*, int_hasher> map(d_context);
+ CDHashMap<int, CDList<myint>*, int_hasher> map(d_context);
CDList<myint> *list1, *list2, *list3, *list4;
@@ -1026,7 +1026,7 @@ public:
d_context->push();
// This re-uses context memory used above. the map.clear()
- // triggers an emptyTrash() which fails if the CDOmaps are put
+ // triggers an emptyTrash() which fails if the CDOhash_maps are put
// in the trash. (We use insertDataFromContextMemory() above to
// keep them out of the trash.)
cout << "allocating\n";
@@ -1059,7 +1059,7 @@ public:
void testCmmElementsAtLevel0() {
// this was crashing
- CDMap<int, int*, int_hasher> map(d_context);
+ CDHashMap<int, int*, int_hasher> map(d_context);
int* a = (int*)d_context->getCMM()->newData(sizeof(int));
map.insertDataFromContextMemory(1, a);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback