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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1889673002: Move LayoutAndPaintAsyncThen to a separate compilation unit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 8 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 | « components/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index c48fe32a8a6f9a77ab6a250efa51475a506d9a26..69e558a6c907cce3c32f89a41d2a5ada0e119d66 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -32,6 +32,7 @@
#include "build/build_config.h"
#include "components/plugins/renderer/plugin_placeholder.h"
#include "components/test_runner/gamepad_controller.h"
+#include "components/test_runner/layout_and_paint_async_then.h"
#include "components/test_runner/pixel_dump.h"
#include "components/test_runner/web_test_interfaces.h"
#include "components/test_runner/web_test_proxy.h"
@@ -854,8 +855,10 @@ void BlinkTestRunner::CaptureDumpContinued() {
#ifndef NDEBUG
// Force a layout/paint by the end of the test to ensure test coverage of
// incremental painting.
- proxy()->LayoutAndPaintAsyncThen(base::Bind(
- &BlinkTestRunner::CaptureDumpComplete, base::Unretained(this)));
+ test_runner::LayoutAndPaintAsyncThen(
+ render_view()->GetWebView(),
+ base::Bind(&BlinkTestRunner::CaptureDumpComplete,
+ base::Unretained(this)));
#else
CaptureDumpComplete();
#endif
« no previous file with comments | « components/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698