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

Unified Diff: components/test_runner/web_test_interfaces.cc

Issue 1821923003: Extract WebFrameClient implementation out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 9 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
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 ce6cc8785a322d5cc466ad781ae88bac2a0e712a..7875804246c9e7fafdfb919e0e10f91398582a0c 100644
--- a/components/test_runner/web_test_interfaces.cc
+++ b/components/test_runner/web_test_interfaces.cc
@@ -14,6 +14,7 @@
#include "components/test_runner/mock_webrtc_peer_connection_handler.h"
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/test_runner.h"
+#include "components/test_runner/web_frame_test_client.h"
using namespace blink;
@@ -97,4 +98,15 @@ AppBannerClient* WebTestInterfaces::GetAppBannerClient() {
return interfaces_->GetAppBannerClient();
}
+blink::WebFrameClient* WebTestInterfaces::GetWebFrameTestClient() {
+ if (!web_frame_test_client_) {
+ web_frame_test_client_.reset(new WebFrameTestClient(
+ interfaces_->GetTestRunner(),
+ interfaces_->GetDelegate(),
+ interfaces_->GetAccessibilityController(),
+ interfaces_->GetEventSender()));
+ }
+ return web_frame_test_client_.get();
+}
+
} // namespace test_runner

Powered by Google App Engine
This is Rietveld 408576698