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

Unified Diff: content/shell/webkit_test_runner.cc

Issue 10860037: [content shell] rename layout_test_controller{,_host,_bindings}.* to webkit_test_runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: content/shell/webkit_test_runner.cc
diff --git a/content/shell/layout_test_controller.cc b/content/shell/webkit_test_runner.cc
similarity index 92%
rename from content/shell/layout_test_controller.cc
rename to content/shell/webkit_test_runner.cc
index e96324677fd1d9593bc99328037b89c90412415b..63f430765ce853eb07eff95c451eb382f4fba3b7 100644
--- a/content/shell/layout_test_controller.cc
+++ b/content/shell/webkit_test_runner.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/shell/layout_test_controller.h"
+#include "content/shell/webkit_test_runner.h"
#include "base/md5.h"
#include "base/memory/scoped_ptr.h"
@@ -137,25 +137,25 @@ void CaptureSnapshot(WebView* view, SkBitmap* snapshot) {
} // namespace
-LayoutTestController::LayoutTestController(RenderView* render_view)
+WebKitTestRunner::WebKitTestRunner(RenderView* render_view)
: RenderViewObserver(render_view) {
}
-LayoutTestController::~LayoutTestController() {
+WebKitTestRunner::~WebKitTestRunner() {
}
-void LayoutTestController::DidClearWindowObject(WebFrame* frame) {
+void WebKitTestRunner::DidClearWindowObject(WebFrame* frame) {
WebTestingSupport::injectInternalsObject(frame);
}
-void LayoutTestController::DidFinishLoad(WebFrame* frame) {
+void WebKitTestRunner::DidFinishLoad(WebFrame* frame) {
if (!frame->parent())
Send(new ShellViewHostMsg_DidFinishLoad(routing_id()));
}
-bool LayoutTestController::OnMessageReceived(const IPC::Message& message) {
+bool WebKitTestRunner::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(LayoutTestController, message)
+ IPC_BEGIN_MESSAGE_MAP(WebKitTestRunner, message)
IPC_MESSAGE_HANDLER(ShellViewMsg_CaptureTextDump, OnCaptureTextDump)
IPC_MESSAGE_HANDLER(ShellViewMsg_CaptureImageDump, OnCaptureImageDump)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -164,7 +164,7 @@ bool LayoutTestController::OnMessageReceived(const IPC::Message& message) {
return handled;
}
-void LayoutTestController::OnCaptureTextDump(bool as_text,
+void WebKitTestRunner::OnCaptureTextDump(bool as_text,
bool printing,
bool recursive) {
WebFrame* frame = render_view()->GetWebView()->mainFrame();
@@ -182,7 +182,7 @@ void LayoutTestController::OnCaptureTextDump(bool as_text,
Send(new ShellViewHostMsg_TextDump(routing_id(), dump));
}
-void LayoutTestController::OnCaptureImageDump(
+void WebKitTestRunner::OnCaptureImageDump(
const std::string& expected_pixel_hash) {
SkBitmap snapshot;
CaptureSnapshot(render_view()->GetWebView(), &snapshot);

Powered by Google App Engine
This is Rietveld 408576698