Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1752)

Unified Diff: skia/ext/skia_memory_dump_provider_unittest.cc

Issue 1262333005: [tracing] Introduce MemoryDumpArgs to enable light and heavy dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/skia_memory_dump_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_memory_dump_provider_unittest.cc
diff --git a/skia/ext/skia_memory_dump_provider_unittest.cc b/skia/ext/skia_memory_dump_provider_unittest.cc
index bea4a8b1fc9e86112da0ae8f70544a23b261ddac..3e38022fdad1f446ab23511d6af99f011d7cfca3 100644
--- a/skia/ext/skia_memory_dump_provider_unittest.cc
+++ b/skia/ext/skia_memory_dump_provider_unittest.cc
@@ -11,8 +11,10 @@ namespace skia {
TEST(SkiaMemoryDumpProviderTest, OnMemoryDump) {
scoped_ptr<base::trace_event::ProcessMemoryDump> process_memory_dump(
new base::trace_event::ProcessMemoryDump(nullptr));
+ base::trace_event::MemoryDumpArgs dump_args = {
+ base::trace_event::MemoryDumpArgs::LEVEL_OF_DETAIL_HIGH};
SkiaMemoryDumpProvider::GetInstance()->OnMemoryDump(
- process_memory_dump.get());
+ dump_args, process_memory_dump.get());
ASSERT_TRUE(process_memory_dump->GetAllocatorDump("skia/sk_font_cache"));
ASSERT_TRUE(process_memory_dump->GetAllocatorDump("skia/sk_resource_cache"));
« no previous file with comments | « skia/ext/skia_memory_dump_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698