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

Unified Diff: components/test_runner/web_view_test_proxy.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_test_interfaces.cc ('k') | components/test_runner/web_view_test_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_view_test_proxy.h
diff --git a/components/test_runner/web_view_test_proxy.h b/components/test_runner/web_view_test_proxy.h
index 944731c87bffd6520ecc5f8207b288620362c638..dca53591e3e886382089330574393b9bb523f695 100644
--- a/components/test_runner/web_view_test_proxy.h
+++ b/components/test_runner/web_view_test_proxy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
-#define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
+#ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
+#define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
#include <memory>
#include <string>
@@ -15,6 +15,7 @@
#include "components/test_runner/test_runner_export.h"
#include "components/test_runner/web_view_test_client.h"
#include "components/test_runner/web_widget_test_client.h"
+#include "components/test_runner/web_widget_test_proxy.h"
#include "third_party/WebKit/public/platform/WebDragOperation.h"
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
@@ -55,15 +56,8 @@ class WebTestInterfaces;
// WebViewTestProxyBase and when it requires a behavior to be different from the
// usual, it will call WebViewTestProxyBase that implements the expected
// behavior. See WebViewTestProxy class comments for more information.
-class TEST_RUNNER_EXPORT WebViewTestProxyBase {
+class TEST_RUNNER_EXPORT WebViewTestProxyBase : public WebWidgetTestProxyBase {
public:
- blink::WebWidget* web_widget() { return web_widget_; }
- void set_web_widget(blink::WebWidget* widget) {
- DCHECK(widget);
- DCHECK(!web_widget_);
- web_widget_ = widget;
- }
-
blink::WebView* web_view() { return web_view_; }
void set_web_view(blink::WebView* view) {
DCHECK(view);
@@ -78,13 +72,6 @@ class TEST_RUNNER_EXPORT WebViewTestProxyBase {
view_test_client_ = std::move(view_test_client);
}
- void set_widget_test_client(
- std::unique_ptr<WebWidgetTestClient> widget_test_client) {
- DCHECK(widget_test_client);
- DCHECK(!widget_test_client_);
- widget_test_client_ = std::move(widget_test_client);
- }
-
WebTestDelegate* delegate() { return delegate_; }
void set_delegate(WebTestDelegate* delegate) {
DCHECK(delegate);
@@ -115,9 +102,6 @@ class TEST_RUNNER_EXPORT WebViewTestProxyBase {
~WebViewTestProxyBase();
blink::WebViewClient* view_test_client() { return view_test_client_.get(); }
- blink::WebWidgetClient* widget_test_client() {
- return widget_test_client_.get();
- }
private:
TestInterfaces* test_interfaces_;
@@ -125,7 +109,6 @@ class TEST_RUNNER_EXPORT WebViewTestProxyBase {
blink::WebView* web_view_;
blink::WebWidget* web_widget_;
std::unique_ptr<WebViewTestClient> view_test_client_;
- std::unique_ptr<WebWidgetTestClient> widget_test_client_;
std::unique_ptr<AccessibilityController> accessibility_controller_;
std::unique_ptr<EventSender> event_sender_;
std::unique_ptr<TextInputController> text_input_controller_;
@@ -253,4 +236,4 @@ class WebViewTestProxy : public Base, public WebViewTestProxyBase {
} // namespace test_runner
-#endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
+#endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
« no previous file with comments | « components/test_runner/web_test_interfaces.cc ('k') | components/test_runner/web_view_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698