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

Unified Diff: Source/core/dom/DocumentTest.cpp

Issue 412173002: Oilpan: fix reported unit test leaks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/core/dom/DocumentTest.cpp
diff --git a/Source/core/dom/DocumentTest.cpp b/Source/core/dom/DocumentTest.cpp
index a1c93b2bddfdc3b505d6af4fcf61402022f30883..7e2d35efd229b61e982cf39457504976a4f7ead4 100644
--- a/Source/core/dom/DocumentTest.cpp
+++ b/Source/core/dom/DocumentTest.cpp
@@ -34,6 +34,7 @@
#include "core/html/HTMLHeadElement.h"
#include "core/html/HTMLLinkElement.h"
#include "core/testing/DummyPageHolder.h"
+#include "platform/heap/Handle.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
@@ -45,6 +46,13 @@ class DocumentTest : public ::testing::Test {
protected:
virtual void SetUp() OVERRIDE;
+#if ENABLE(OILPAN)
+ virtual void TearDown() OVERRIDE
+ {
+ Heap::collectAllGarbage();
+ }
+#endif
+
Document& document() const { return m_dummyPageHolder->document(); }
Page& page() const { return m_dummyPageHolder->page(); }
« no previous file with comments | « Source/core/animation/AnimationTimelineTest.cpp ('k') | Source/modules/websockets/NewWebSocketChannelImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698