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

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

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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 6b67383467aab8b19709f40ba2b1f0edc6d823ec..5416b2ced24e21c16c40e85ad2b79de39d776a4e 100644
--- a/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
+++ b/components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
@@ -15,12 +15,12 @@ TEST(GraphicsMemoryDumpProviderTest, ParseResponse) {
base::trace_event::ProcessMemoryDump pmd(
nullptr, {base::trace_event::MemoryDumpLevelOfDetail::DETAILED});
- auto instance = GraphicsMemoryDumpProvider::GetInstance();
+ auto* instance = GraphicsMemoryDumpProvider::GetInstance();
char buf[] = "graphics_total 12\ngraphics_pss 34\ngl_total 56\ngl_pss 78";
instance->ParseResponseAndAddToDump(buf, strlen(buf), &pmd);
// Check the "graphics" row.
- auto mad = pmd.GetAllocatorDump(kDumpBaseName + std::string("graphics"));
+ auto* mad = pmd.GetAllocatorDump(kDumpBaseName + std::string("graphics"));
ASSERT_TRUE(mad);
std::string json;
mad->attributes_for_testing()->AppendAsTraceFormat(&json);
« no previous file with comments | « components/tracing/child/child_memory_dump_manager_delegate_impl.cc ('k') | components/update_client/action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698