Index: tests/TraceMemoryDumpTest.cpp |
diff --git a/tests/TraceMemoryDumpTest.cpp b/tests/TraceMemoryDumpTest.cpp |
index cda007631838bc8a267023ef72138dc7d67108d8..a8cdbfeb5542a06a0f1941d2b234cf0882d0b04c 100644 |
--- a/tests/TraceMemoryDumpTest.cpp |
+++ b/tests/TraceMemoryDumpTest.cpp |
@@ -24,9 +24,15 @@ public: |
void setDiscardableMemoryBacking( |
const char* dumpName, |
const SkDiscardableMemory& discardableMemoryObject) override { } |
+ LevelOfDetail getRequestedDetails() const override { |
+ return SkTraceMemoryDump::kObjectsBreakdowns_LevelOfDetail; |
+ } |
}; |
DEF_TEST(SkTraceMemoryDump, reporter) { |
TestSkTraceMemoryDump x; |
x.dumpNumericValue("foobar", "size", "bytes", 42); |
+ if (x.getRequestedDetails() == SkTraceMemoryDump::kObjectsBreakdowns_LevelOfDetail) { |
+ x.dumpNumericValue("foobar/object1", "size", "bytes", 23); |
+ } |
} |