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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 11728003: Change ExecuteJavaScript* helper functions in browser_test_utils.{h,cc} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding files for gpu_tests and NaCl browser tests. Created 7 years, 12 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 | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 932cafa9b734c957eb07d640e028d60d4feb6735..3db0e503c082d05c3a72ea6be8cf50a98003d84c 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -564,11 +564,11 @@ class SnapshotTaker {
bool TakeEntirePageSnapshot(RenderViewHost* rvh,
SkBitmap* bitmap) WARN_UNUSED_RESULT {
- const wchar_t* script =
- L"window.domAutomationController.send("
- L" JSON.stringify([document.width, document.height]))";
+ const char* script =
+ "window.domAutomationController.send("
+ "JSON.stringify([document.width, document.height]))";
std::string json;
- if (!content::ExecuteJavaScriptAndExtractString(rvh, L"", script, &json))
+ if (!content::ExecuteJavaScriptAndExtractString(rvh, "", script, &json))
return false;
// Parse the JSON.
« no previous file with comments | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698