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

Unified Diff: components/tracing/common/graphics_memory_dump_provider_android_unittest.cc

Issue 2006943003: [tracing] Sanitize process memory dumps for background mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@whitelist_mdp
Patch Set: Fix stripping. Created 4 years, 6 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
Index: components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
diff --git a/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc b/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
index f4de1d1c05c064e0b8488f37fe562c7ed5be366b..6b67383467aab8b19709f40ba2b1f0edc6d823ec 100644
--- a/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
+++ b/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
@@ -13,7 +13,8 @@ namespace tracing {
TEST(GraphicsMemoryDumpProviderTest, ParseResponse) {
const char* kDumpBaseName = GraphicsMemoryDumpProvider::kDumpBaseName;
- base::trace_event::ProcessMemoryDump pmd(nullptr);
+ base::trace_event::ProcessMemoryDump pmd(
+ nullptr, {base::trace_event::MemoryDumpLevelOfDetail::DETAILED});
auto instance = GraphicsMemoryDumpProvider::GetInstance();
char buf[] = "graphics_total 12\ngraphics_pss 34\ngl_total 56\ngl_pss 78";
instance->ParseResponseAndAddToDump(buf, strlen(buf), &pmd);

Powered by Google App Engine
This is Rietveld 408576698