Commit fd3d1531 authored by skyostil's avatar skyostil Committed by Commit bot

Invoke LeakSanitizer on teardown of RenderFrameImplTest

Call LeakSanitizer before RenderViewTest::TearDown(), as the latter may
leak WebKit objects when it shuts down V8.

BUG=328552,463143
TBR=jochen@chromium.org

Review URL: https://codereview.chromium.org/1169493006

Cr-Commit-Position: refs/heads/master@{#333061}
parent 2dff98d7
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
#include "base/debug/leak_annotations.h"
#include "content/common/frame_messages.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_switches.h"
......@@ -61,6 +62,15 @@ class RenderFrameImplTest : public RenderViewTest {
EXPECT_TRUE(frame_->is_subframe_);
}
void TearDown() override {
#if defined(LEAK_SANITIZER)
// Do this before shutting down V8 in RenderViewTest::TearDown().
// http://crbug.com/328552
__lsan_do_leak_check();
#endif
RenderViewTest::TearDown();
}
// Loads the given HTML into the frame as a data: URL and blocks until
// the navigation is committed.
void LoadHTMLInFrame(const char* html) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment