Index: test/cctest/test-transitions.cc |
diff --git a/test/cctest/test-transitions.cc b/test/cctest/test-transitions.cc |
index 94e230c04289b412a629e382a6bd598de06018c7..981461326c3ccee9e1c7505eeec8ebc682f08458 100644 |
--- a/test/cctest/test-transitions.cc |
+++ b/test/cctest/test-transitions.cc |
@@ -59,7 +59,7 @@ TEST(TransitionArray_SimpleFieldTransitions) { |
transitions->Insert(map0, name1, map1, SIMPLE_PROPERTY_TRANSITION); |
ConnectTransition(map0, transitions, map1); |
CHECK(transitions->IsSimpleTransition()); |
- transition = transitions->Search(FIELD, *name1, attributes); |
+ transition = transitions->Search(DATA, *name1, attributes); |
CHECK_EQ(TransitionArray::kSimpleTransitionIndex, transition); |
CHECK_EQ(*name1, transitions->GetKey(transition)); |
CHECK_EQ(*map1, transitions->GetTarget(transition)); |
@@ -69,11 +69,11 @@ TEST(TransitionArray_SimpleFieldTransitions) { |
ConnectTransition(map0, transitions, map2); |
CHECK(transitions->IsFullTransitionArray()); |
- transition = transitions->Search(FIELD, *name1, attributes); |
+ transition = transitions->Search(DATA, *name1, attributes); |
CHECK_EQ(*name1, transitions->GetKey(transition)); |
CHECK_EQ(*map1, transitions->GetTarget(transition)); |
- transition = transitions->Search(FIELD, *name2, attributes); |
+ transition = transitions->Search(DATA, *name2, attributes); |
CHECK_EQ(*name2, transitions->GetKey(transition)); |
CHECK_EQ(*map2, transitions->GetTarget(transition)); |
@@ -109,7 +109,7 @@ TEST(TransitionArray_FullFieldTransitions) { |
transitions = transitions->Insert(map0, name1, map1, PROPERTY_TRANSITION); |
ConnectTransition(map0, transitions, map1); |
CHECK(transitions->IsFullTransitionArray()); |
- transition = transitions->Search(FIELD, *name1, attributes); |
+ transition = transitions->Search(DATA, *name1, attributes); |
CHECK_EQ(*name1, transitions->GetKey(transition)); |
CHECK_EQ(*map1, transitions->GetTarget(transition)); |
@@ -117,11 +117,11 @@ TEST(TransitionArray_FullFieldTransitions) { |
ConnectTransition(map0, transitions, map2); |
CHECK(transitions->IsFullTransitionArray()); |
- transition = transitions->Search(FIELD, *name1, attributes); |
+ transition = transitions->Search(DATA, *name1, attributes); |
CHECK_EQ(*name1, transitions->GetKey(transition)); |
CHECK_EQ(*map1, transitions->GetTarget(transition)); |
- transition = transitions->Search(FIELD, *name2, attributes); |
+ transition = transitions->Search(DATA, *name2, attributes); |
CHECK_EQ(*name2, transitions->GetKey(transition)); |
CHECK_EQ(*map2, transitions->GetTarget(transition)); |
@@ -161,7 +161,7 @@ TEST(TransitionArray_DifferentFieldNames) { |
} |
for (int i = 0; i < PROPS_COUNT; i++) { |
- int transition = transitions->Search(FIELD, *names[i], attributes); |
+ int transition = transitions->Search(DATA, *names[i], attributes); |
CHECK_EQ(*names[i], transitions->GetKey(transition)); |
CHECK_EQ(*maps[i], transitions->GetTarget(transition)); |
} |
@@ -204,7 +204,7 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributesSimple) { |
for (int i = 0; i < ATTRS_COUNT; i++) { |
PropertyAttributes attributes = static_cast<PropertyAttributes>(i); |
- int transition = transitions->Search(FIELD, *name, attributes); |
+ int transition = transitions->Search(DATA, *name, attributes); |
CHECK_EQ(*name, transitions->GetKey(transition)); |
CHECK_EQ(*attr_maps[i], transitions->GetTarget(transition)); |
} |
@@ -267,14 +267,14 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributes) { |
for (int i = 0; i < ATTRS_COUNT; i++) { |
PropertyAttributes attributes = static_cast<PropertyAttributes>(i); |
- int transition = transitions->Search(FIELD, *name, attributes); |
+ int transition = transitions->Search(DATA, *name, attributes); |
CHECK_EQ(*name, transitions->GetKey(transition)); |
CHECK_EQ(*attr_maps[i], transitions->GetTarget(transition)); |
} |
// Ensure that info about the other fields still valid. |
for (int i = 0; i < PROPS_COUNT; i++) { |
- int transition = transitions->Search(FIELD, *names[i], NONE); |
+ int transition = transitions->Search(DATA, *names[i], NONE); |
CHECK_EQ(*names[i], transitions->GetKey(transition)); |
CHECK_EQ(*maps[i], transitions->GetTarget(transition)); |
} |