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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 5591004: glue: use string16 in place of wstring for Unicode text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 10 years 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 | « webkit/tools/test_shell/test_shell.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.cc
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index ffaba74427877715707647b79dcb20810c125b15..cb1e00700c51b90079a6e07391bf30597f807e6f 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -260,14 +260,14 @@ void TestShell::Dump(TestShell* shell) {
if (should_dump_as_text) {
bool recursive = shell->layout_test_controller_->
ShouldDumpChildFramesAsText();
- std::string data_utf8 = WideToUTF8(
+ std::string data_utf8 = UTF16ToUTF8(
webkit_glue::DumpFramesAsText(frame, recursive));
if (fwrite(data_utf8.c_str(), 1, data_utf8.size(), stdout) !=
data_utf8.size()) {
LOG(FATAL) << "Short write to stdout, disk full?";
}
} else {
- printf("%s", WideToUTF8(
+ printf("%s", UTF16ToUTF8(
webkit_glue::DumpRenderer(frame)).c_str());
bool recursive = shell->layout_test_controller_->
@@ -717,7 +717,7 @@ void TestShell::DumpDocumentText() {
return;
const std::string data =
- WideToUTF8(webkit_glue::DumpDocumentText(webView()->mainFrame()));
+ UTF16ToUTF8(webkit_glue::DumpDocumentText(webView()->mainFrame()));
file_util::WriteFile(file_path, data.c_str(), data.length());
}
@@ -727,11 +727,11 @@ void TestShell::DumpRenderTree() {
return;
const std::string data =
- WideToUTF8(webkit_glue::DumpRenderer(webView()->mainFrame()));
+ UTF16ToUTF8(webkit_glue::DumpRenderer(webView()->mainFrame()));
file_util::WriteFile(file_path, data.c_str(), data.length());
}
-std::wstring TestShell::GetDocumentText() {
+string16 TestShell::GetDocumentText() {
return webkit_glue::DumpDocumentText(webView()->mainFrame());
}
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698