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

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

Issue 2171503005: Rename WebTestProxy to WebViewTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 5 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 | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
index 065f4218e84ab78dfd130b192c8ba40a17d2315d..ff84acfacde0f8630afd26ceac9d388018fba5b1 100644
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
@@ -10,8 +10,8 @@
#include "components/test_runner/mock_credential_manager_client.h"
#include "components/test_runner/web_frame_test_proxy.h"
#include "components/test_runner/web_test_interfaces.h"
-#include "components/test_runner/web_test_proxy.h"
#include "components/test_runner/web_test_runner.h"
+#include "components/test_runner/web_view_test_proxy.h"
#include "components/web_cache/renderer/web_cache_impl.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_switches.h"
@@ -52,8 +52,8 @@ namespace content {
namespace {
-void WebTestProxyCreated(RenderView* render_view,
- test_runner::WebTestProxyBase* proxy) {
+void WebViewTestProxyCreated(RenderView* render_view,
+ test_runner::WebViewTestProxyBase* proxy) {
test_runner::WebTestInterfaces* interfaces =
LayoutTestRenderThreadObserver::GetInstance()->test_interfaces();
@@ -80,18 +80,18 @@ void WebTestProxyCreated(RenderView* render_view,
void WebFrameTestProxyCreated(RenderFrame* render_frame,
test_runner::WebFrameTestProxyBase* proxy) {
- test_runner::WebTestProxyBase* web_test_proxy_base =
- GetWebTestProxyBase(render_frame->GetRenderView());
+ test_runner::WebViewTestProxyBase* web_view_test_proxy_base =
+ GetWebViewTestProxyBase(render_frame->GetRenderView());
proxy->set_test_client(
LayoutTestRenderThreadObserver::GetInstance()
->test_interfaces()
- ->CreateWebFrameTestClient(web_test_proxy_base, proxy));
+ ->CreateWebFrameTestClient(web_view_test_proxy_base, proxy));
}
} // namespace
LayoutTestContentRendererClient::LayoutTestContentRendererClient() {
- EnableWebTestProxyCreation(base::Bind(&WebTestProxyCreated),
+ EnableWebTestProxyCreation(base::Bind(&WebViewTestProxyCreated),
base::Bind(&WebFrameTestProxyCreated));
}
@@ -115,11 +115,12 @@ void LayoutTestContentRendererClient::RenderViewCreated(
RenderView* render_view) {
new ShellRenderViewObserver(render_view);
- test_runner::WebTestProxyBase* proxy = GetWebTestProxyBase(render_view);
+ test_runner::WebViewTestProxyBase* proxy =
+ GetWebViewTestProxyBase(render_view);
proxy->set_web_view(render_view->GetWebView());
// TODO(lfg): We should fix the TestProxy to track the WebWidgets on every
// local root in WebFrameTestProxy instead of having only the WebWidget for
- // the main frame in WebTestProxy.
+ // the main frame in WebViewTestProxy.
proxy->set_web_widget(render_view->GetWebView()->widget());
proxy->Reset();
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698