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

Unified Diff: components/test_runner/web_test_interfaces.cc

Issue 1935593004: Extract WebWidgetTestClient out of WebTestProxyBase and WebViewTestClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-runner-for-specific-view-separate
Patch Set: 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_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_interfaces.cc
diff --git a/components/test_runner/web_test_interfaces.cc b/components/test_runner/web_test_interfaces.cc
index 56108882daf6d9e2d3c2f30439947eda44de9765..8de868200d476689528112dbf47de5342972492b 100644
--- a/components/test_runner/web_test_interfaces.cc
+++ b/components/test_runner/web_test_interfaces.cc
@@ -17,6 +17,7 @@
#include "components/test_runner/web_frame_test_client.h"
#include "components/test_runner/web_test_proxy.h"
#include "components/test_runner/web_view_test_client.h"
+#include "components/test_runner/web_widget_test_client.h"
using namespace blink;
@@ -101,6 +102,13 @@ std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
new WebViewTestClient(interfaces_->GetTestRunner(), web_test_proxy_base));
}
+std::unique_ptr<WebWidgetTestClient>
+WebTestInterfaces::CreateWebWidgetTestClient(
+ WebTestProxyBase* web_test_proxy_base) {
+ return base::WrapUnique(new WebWidgetTestClient(interfaces_->GetTestRunner(),
+ web_test_proxy_base));
+}
+
std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
std::vector<blink::WebView*> result;
for (WebTestProxyBase* proxy : interfaces_->GetWindowList())
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698