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

Unified Diff: content/shell/renderer/test_runner/web_frame_test_proxy.h

Issue 583113002: Abstract class WebTestDelegate to chromium c++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test_runner Created 6 years, 3 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/renderer/test_runner/web_frame_test_proxy.h
diff --git a/content/shell/renderer/test_runner/web_frame_test_proxy.h b/content/shell/renderer/test_runner/web_frame_test_proxy.h
index b57e10c93c626835536f4e65c8eaf2cdf2d91216..2682b8987382c38f4e7e2ac91100349ff95d4ae4 100644
--- a/content/shell/renderer/test_runner/web_frame_test_proxy.h
+++ b/content/shell/renderer/test_runner/web_frame_test_proxy.h
@@ -6,10 +6,10 @@
#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_
#include "base/basictypes.h"
-#include "content/shell/renderer/test_runner/WebTestDelegate.h"
#include "content/shell/renderer/test_runner/mock_screen_orientation_client.h"
#include "content/shell/renderer/test_runner/test_interfaces.h"
#include "content/shell/renderer/test_runner/test_runner.h"
+#include "content/shell/renderer/test_runner/web_test_delegate.h"
#include "content/shell/renderer/test_runner/web_test_proxy.h"
#include "content/test/test_media_stream_renderer_factory.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -146,12 +146,12 @@ class WebFrameTestProxy : public Base {
}
virtual void runModalAlertDialog(const blink::WebString& message) {
- base_proxy_->delegate_->printMessage(std::string("ALERT: ") +
+ base_proxy_->delegate_->PrintMessage(std::string("ALERT: ") +
message.utf8().data() + "\n");
}
virtual bool runModalConfirmDialog(const blink::WebString& message) {
- base_proxy_->delegate_->printMessage(std::string("CONFIRM: ") +
+ base_proxy_->delegate_->PrintMessage(std::string("CONFIRM: ") +
message.utf8().data() + "\n");
return true;
}
@@ -159,7 +159,7 @@ class WebFrameTestProxy : public Base {
virtual bool runModalPromptDialog(const blink::WebString& message,
const blink::WebString& default_value,
blink::WebString*) {
- base_proxy_->delegate_->printMessage(
+ base_proxy_->delegate_->PrintMessage(
std::string("PROMPT: ") + message.utf8().data() + ", default text: " +
default_value.utf8().data() + "\n");
return true;
@@ -167,7 +167,7 @@ class WebFrameTestProxy : public Base {
virtual bool runModalBeforeUnloadDialog(bool is_reload,
const blink::WebString& message) {
- base_proxy_->delegate_->printMessage(std::string("CONFIRM NAVIGATION: ") +
+ base_proxy_->delegate_->PrintMessage(std::string("CONFIRM NAVIGATION: ") +
message.utf8().data() + "\n");
return !base_proxy_->test_interfaces_->GetTestRunner()
->shouldStayOnPageAfterHandlingBeforeUnload();
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/shell/renderer/test_runner/web_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698