Index: test/unittests/heap/slot-set-unittest.cc |
diff --git a/test/unittests/heap/slot-set-unittest.cc b/test/unittests/heap/slot-set-unittest.cc |
index cfb1f1f9d21618c5b7ee9f19c2fe1c0a41f48688..9bf85071a655dbd106840fe66f94574b3c9a6ace 100644 |
--- a/test/unittests/heap/slot-set-unittest.cc |
+++ b/test/unittests/heap/slot-set-unittest.cc |
@@ -147,7 +147,7 @@ TEST(TypedSlotSet, Iterate) { |
uint32_t j = 0; |
for (uint32_t i = 0; i < TypedSlotSet::kMaxOffset; |
i += kDelta, j += kHostDelta) { |
- SlotType type = static_cast<SlotType>(i % NUMBER_OF_SLOT_TYPES); |
+ SlotType type = static_cast<SlotType>(i % CLEARED_SLOT); |
set.Insert(type, j, i); |
++added; |
} |
@@ -156,7 +156,7 @@ TEST(TypedSlotSet, Iterate) { |
Address addr) { |
uint32_t i = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(addr)); |
uint32_t j = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(host_addr)); |
- EXPECT_EQ(i % NUMBER_OF_SLOT_TYPES, static_cast<uint32_t>(type)); |
+ EXPECT_EQ(i % CLEARED_SLOT, static_cast<uint32_t>(type)); |
EXPECT_EQ(0, i % kDelta); |
EXPECT_EQ(0, j % kHostDelta); |
++iterated; |