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

Unified Diff: content/public/test/render_view_test.h

Issue 1363523002: RenderViewTests: Implement proper shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use EXPECT_EQ instead of DCHECK_EQ. Created 5 years, 3 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 | « build/sanitizers/lsan_suppressions.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.h
diff --git a/content/public/test/render_view_test.h b/content/public/test/render_view_test.h
index 5161a3274ce953ea89e4de1cadba2af90ddff04a..5ae89cfff3f3e97c501faf464be268cb2965237e 100644
--- a/content/public/test/render_view_test.h
+++ b/content/public/test/render_view_test.h
@@ -18,6 +18,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLeakDetector.h"
struct ViewMsg_Resize_Params;
@@ -45,7 +46,7 @@ class RendererMainPlatformDelegate;
class RendererBlinkPlatformImplNoSandboxImpl;
class RenderView;
-class RenderViewTest : public testing::Test {
+class RenderViewTest : public testing::Test, blink::WebLeakDetectorClient {
public:
// A special BlinkPlatformImpl class for getting rid off the dependency to the
// sandbox, which is not available in RenderViewTest.
@@ -172,6 +173,9 @@ class RenderViewTest : public testing::Test {
void TearDown() override;
+ // blink::WebLeakDetectorClient implementation.
+ void onLeakDetectionComplete(const Result& result) override;
+
base::MessageLoop msg_loop_;
scoped_ptr<FakeCompositorDependencies> compositor_deps_;
scoped_ptr<MockRenderProcess> mock_process_;
« no previous file with comments | « build/sanitizers/lsan_suppressions.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698