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

Unified Diff: Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp

Issue 1314643003: Fix leak in BlinkGCDumpProviderTest.MemoryDump (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp
diff --git a/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp b/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp
index 8de38d84400b7ea9e49e64652131adabdecbfbc5..3fc62dfaedd2f818356133e387ef1241362cf339 100644
--- a/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp
+++ b/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp
@@ -15,9 +15,9 @@ namespace blink {
TEST(BlinkGCDumpProviderTest, MemoryDump)
{
- WebProcessMemoryDump* dump = Platform::current()->createProcessMemoryDump();
+ OwnPtr<WebProcessMemoryDump> dump = adoptPtr(Platform::current()->createProcessMemoryDump());
ASSERT(dump);
- BlinkGCMemoryDumpProvider::instance()->onMemoryDump(WebMemoryDumpLevelOfDetail::High, dump);
+ BlinkGCMemoryDumpProvider::instance()->onMemoryDump(WebMemoryDumpLevelOfDetail::High, dump.get());
ASSERT(dump->getMemoryAllocatorDump(String::format("blink_gc")));
ASSERT(dump->getMemoryAllocatorDump(String::format("blink_gc/allocated_objects")));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698