Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 4b211b4b589aa642a1002896f0ca4040ec760270..a8bbc250245025d9b99896c794c8173ba565ccd8 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -769,18 +769,21 @@ TEST(HeapSnapshotRetainedObjectInfo) { |
delete TestRetainedObjectInfo::instances[i]; |
} |
- const v8::HeapGraphNode* natives = GetNode( |
- snapshot->GetRoot(), v8::HeapGraphNode::kObject, "(Native objects)"); |
- CHECK_NE(NULL, natives); |
- CHECK_EQ(2, natives->GetChildrenCount()); |
+ const v8::HeapGraphNode* native_group_aaa = GetNode( |
+ snapshot->GetRoot(), v8::HeapGraphNode::kNative, "aaa"); |
+ CHECK_NE(NULL, native_group_aaa); |
+ CHECK_EQ(1, native_group_aaa->GetChildrenCount()); |
const v8::HeapGraphNode* aaa = GetNode( |
- natives, v8::HeapGraphNode::kNative, "aaa / 100 entries"); |
+ native_group_aaa, v8::HeapGraphNode::kNative, "aaa / 100 entries"); |
CHECK_NE(NULL, aaa); |
+ CHECK_EQ(2, aaa->GetChildrenCount()); |
+ |
+ const v8::HeapGraphNode* native_group_ccc = GetNode( |
+ snapshot->GetRoot(), v8::HeapGraphNode::kNative, "ccc"); |
const v8::HeapGraphNode* ccc = GetNode( |
- natives, v8::HeapGraphNode::kNative, "ccc"); |
+ native_group_ccc, v8::HeapGraphNode::kNative, "ccc"); |
CHECK_NE(NULL, ccc); |
- CHECK_EQ(2, aaa->GetChildrenCount()); |
const v8::HeapGraphNode* n_AAA = GetNode( |
aaa, v8::HeapGraphNode::kString, "AAA"); |
CHECK_NE(NULL, n_AAA); |