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

Unified Diff: components/test_runner/web_widget_test_client.h

Issue 2238573002: Add WebWidgetTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing files Created 4 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 | « components/test_runner/web_view_test_proxy.cc ('k') | components/test_runner/web_widget_test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_widget_test_client.h
diff --git a/components/test_runner/web_widget_test_client.h b/components/test_runner/web_widget_test_client.h
index a5e9d5d1d1a87ccc23ba5a949fb7c8ce5bb93a5f..15113909abe7bb9a81386e56a1074380c695af83 100644
--- a/components/test_runner/web_widget_test_client.h
+++ b/components/test_runner/web_widget_test_client.h
@@ -18,6 +18,7 @@ namespace test_runner {
class TestRunner;
class WebTestDelegate;
class WebViewTestProxyBase;
+class WebWidgetTestProxyBase;
// WebWidgetTestClient implements WebWidgetClient interface, providing behavior
// expected by tests. WebWidgetTestClient ends up used by WebViewTestProxy
@@ -29,10 +30,15 @@ class WebWidgetTestClient : public blink::WebWidgetClient {
// Caller has to ensure that all arguments (i.e. |test_runner| and |delegate|)
// live longer than |this|.
WebWidgetTestClient(TestRunner* test_runner,
- WebViewTestProxyBase* web_view_test_proxy_base);
+ WebWidgetTestProxyBase* web_widget_test_proxy_base);
virtual ~WebWidgetTestClient();
+ void set_web_view_test_proxy_base(
+ WebViewTestProxyBase* web_view_test_proxy_base) {
+ web_view_test_proxy_base_ = web_view_test_proxy_base;
+ }
+
// WebWidgetClient overrides needed by WebViewTestProxy.
blink::WebScreenInfo screenInfo() override;
void scheduleAnimation() override;
@@ -49,6 +55,7 @@ class WebWidgetTestClient : public blink::WebWidgetClient {
// Borrowed pointers to other parts of Layout Tests state.
TestRunner* test_runner_;
WebViewTestProxyBase* web_view_test_proxy_base_;
+ WebWidgetTestProxyBase* web_widget_test_proxy_base_;
bool animation_scheduled_;
« no previous file with comments | « components/test_runner/web_view_test_proxy.cc ('k') | components/test_runner/web_widget_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698