Definition at line 13 of file object_graph_test.cc.
◆ CounterVisitor()
Definition at line 17 of file object_graph_test.cc.
18 : count_(0), size_(0), skip_(
skip), expected_parent_(expected_parent) {}
static bool skip(SkStream *stream, size_t amount)
◆ count()
int dart::CounterVisitor::count |
( |
| ) |
const |
|
inline |
◆ size()
int dart::CounterVisitor::size |
( |
| ) |
const |
|
inline |
◆ VisitObject()
virtual Direction dart::CounterVisitor::VisitObject |
( |
ObjectGraph::StackIterator * |
it | ) |
|
|
inlinevirtual |
Definition at line 20 of file object_graph_test.cc.
20 {
21 ObjectPtr obj = it->Get();
22 if (obj == skip_) {
23 EXPECT(it->MoveToParent());
24 EXPECT_EQ(expected_parent_, it->Get());
25 return kBacktrack;
26 }
27 ++count_;
28 size_ += obj->untag()->HeapSize();
29 return kProceed;
30 }
The documentation for this class was generated from the following file: