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

Unified Diff: components/test_runner/test_runner_for_specific_view.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
Index: components/test_runner/test_runner_for_specific_view.cc
diff --git a/components/test_runner/test_runner_for_specific_view.cc b/components/test_runner/test_runner_for_specific_view.cc
index 84e81dba5bca7cccc44d9773889ba698c7978d83..77957c2f25c3a9f9804b5700df5a96a116db3a2d 100644
--- a/components/test_runner/test_runner_for_specific_view.cc
+++ b/components/test_runner/test_runner_for_specific_view.cc
@@ -30,7 +30,7 @@
#include "components/test_runner/test_runner.h"
#include "components/test_runner/web_task.h"
#include "components/test_runner/web_test_delegate.h"
-#include "components/test_runner/web_test_proxy.h"
+#include "components/test_runner/web_view_test_proxy.h"
#include "gin/arguments.h"
#include "gin/array_buffer.h"
#include "gin/handle.h"
@@ -78,15 +78,15 @@ using namespace blink;
namespace test_runner {
TestRunnerForSpecificView::TestRunnerForSpecificView(
- WebTestProxyBase* web_test_proxy_base)
- : web_test_proxy_base_(web_test_proxy_base), weak_factory_(this) {
+ WebViewTestProxyBase* web_view_test_proxy_base)
+ : web_view_test_proxy_base_(web_view_test_proxy_base), weak_factory_(this) {
Reset();
}
TestRunnerForSpecificView::~TestRunnerForSpecificView() {}
void TestRunnerForSpecificView::Install(blink::WebLocalFrame* frame) {
- web_test_proxy_base_->test_interfaces()->GetTestRunner()->Install(
+ web_view_test_proxy_base_->test_interfaces()->GetTestRunner()->Install(
frame, weak_factory_.GetWeakPtr());
}
@@ -235,10 +235,13 @@ void TestRunnerForSpecificView::CapturePixelsAsyncThen(
v8::UniquePersistent<v8::Function> persistent_callback(
blink::mainThreadIsolate(), callback);
- web_test_proxy_base_->test_interfaces()->GetTestRunner()->DumpPixelsAsync(
- web_view(), base::Bind(&TestRunnerForSpecificView::CapturePixelsCallback,
- weak_factory_.GetWeakPtr(),
- base::Passed(std::move(persistent_callback))));
+ web_view_test_proxy_base_->test_interfaces()
+ ->GetTestRunner()
+ ->DumpPixelsAsync(
+ web_view(),
+ base::Bind(&TestRunnerForSpecificView::CapturePixelsCallback,
+ weak_factory_.GetWeakPtr(),
+ base::Passed(std::move(persistent_callback))));
}
void TestRunnerForSpecificView::CapturePixelsCallback(
@@ -527,8 +530,8 @@ void TestRunnerForSpecificView::ForceNextDrawingBufferCreationToFail() {
}
void TestRunnerForSpecificView::SetWindowIsKey(bool value) {
- web_test_proxy_base_->test_interfaces()->GetTestRunner()->SetFocus(web_view(),
- value);
+ web_view_test_proxy_base_->test_interfaces()->GetTestRunner()->SetFocus(
+ web_view(), value);
}
void TestRunnerForSpecificView::DidAcquirePointerLock() {
@@ -690,11 +693,11 @@ void TestRunnerForSpecificView::SetViewSourceForFrame(const std::string& name,
}
blink::WebView* TestRunnerForSpecificView::web_view() {
- return web_test_proxy_base_->web_view();
+ return web_view_test_proxy_base_->web_view();
}
WebTestDelegate* TestRunnerForSpecificView::delegate() {
- return web_test_proxy_base_->delegate();
+ return web_view_test_proxy_base_->delegate();
}
} // namespace test_runner
« no previous file with comments | « components/test_runner/test_runner_for_specific_view.h ('k') | components/test_runner/text_input_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698