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

Unified Diff: content/shell/renderer/test_runner/web_permissions.cc

Issue 436133002: Migrate TestCommon to Chromium c++ style and remove un-used header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated for layout test Created 6 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/renderer/test_runner/web_permissions.cc
diff --git a/content/shell/renderer/test_runner/web_permissions.cc b/content/shell/renderer/test_runner/web_permissions.cc
index 4d11f7acfbdcced87e823e9a15ecb27a19123cf8..c861e0909fd12febbe998ce8eda9ae90280f67dc 100644
--- a/content/shell/renderer/test_runner/web_permissions.cc
+++ b/content/shell/renderer/test_runner/web_permissions.cc
@@ -4,8 +4,8 @@
#include "content/shell/renderer/test_runner/web_permissions.h"
-#include "content/shell/renderer/test_runner/TestCommon.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
+#include "content/shell/renderer/test_runner/test_common.h"
#include "third_party/WebKit/public/platform/WebCString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
@@ -22,8 +22,8 @@ bool WebPermissions::allowImage(bool enabled_per_settings,
bool allowed = enabled_per_settings && images_allowed_;
if (dump_callbacks_ && delegate_) {
delegate_->printMessage(std::string("PERMISSION CLIENT: allowImage(") +
- normalizeLayoutTestURL(image_url.spec()) + "): " +
- (allowed ? "true" : "false") + "\n");
+ NormalizeLayoutTestURL(image_url.spec()) + "): " +
+ (allowed ? "true" : "false") + "\n");
}
return allowed;
}
@@ -32,8 +32,8 @@ bool WebPermissions::allowMedia(const blink::WebURL& image_url) {
bool allowed = media_allowed_;
if (dump_callbacks_ && delegate_)
delegate_->printMessage(std::string("PERMISSION CLIENT: allowMedia(") +
- normalizeLayoutTestURL(image_url.spec()) + "): " +
- (allowed ? "true" : "false") + "\n");
+ NormalizeLayoutTestURL(image_url.spec()) + "): " +
+ (allowed ? "true" : "false") + "\n");
return allowed;
}
@@ -43,7 +43,7 @@ bool WebPermissions::allowScriptFromSource(bool enabled_per_settings,
if (dump_callbacks_ && delegate_) {
delegate_->printMessage(
std::string("PERMISSION CLIENT: allowScriptFromSource(") +
- normalizeLayoutTestURL(scriptURL.spec()) + "): " +
+ NormalizeLayoutTestURL(scriptURL.spec()) + "): " +
(allowed ? "true" : "false") + "\n");
}
return allowed;
« no previous file with comments | « content/shell/renderer/test_runner/test_common.cc ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698