Index: webkit/glue/cpp_bound_class_unittest.cc |
diff --git a/webkit/glue/cpp_bound_class_unittest.cc b/webkit/glue/cpp_bound_class_unittest.cc |
index 2f53c47f8dc6a1e46ef7f67be665dff7e218e672..54581ad65be0e2d8b0f469d022283041a5a91a22 100644 |
--- a/webkit/glue/cpp_bound_class_unittest.cc |
+++ b/webkit/glue/cpp_bound_class_unittest.cc |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/message_loop.h" |
+#include "base/string_util.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
@@ -113,14 +114,15 @@ class CppBoundClassTest : public TestShellTest { |
// document text is exactly "SUCCESS". |
void CheckJavaScriptSuccess(const std::string& javascript) { |
ExecuteJavaScript(javascript); |
- EXPECT_EQ(L"SUCCESS", webkit_glue::DumpDocumentText(webframe_)); |
+ EXPECT_EQ("SUCCESS", |
+ UTF16ToASCII(webkit_glue::DumpDocumentText(webframe_))); |
} |
// Executes the specified JavaScript and checks that the resulting document |
// text is empty. |
void CheckJavaScriptFailure(const std::string& javascript) { |
ExecuteJavaScript(javascript); |
- EXPECT_EQ(L"", webkit_glue::DumpDocumentText(webframe_)); |
+ EXPECT_EQ("", UTF16ToASCII(webkit_glue::DumpDocumentText(webframe_))); |
} |
// Constructs a JavaScript snippet that evaluates and compares the left and |