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

Unified Diff: chrome/renderer/render_view_browsertest.cc

Issue 5755005: render_view_browsertest.cc: Cast wchar_t to int for snprintf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view_browsertest.cc
diff --git a/chrome/renderer/render_view_browsertest.cc b/chrome/renderer/render_view_browsertest.cc
index 897a9c09bc0bf9ab63a2d37def278cca0c7a3b9b..6a596b57408989d3920cdd64516954e8ff54ecf7 100644
--- a/chrome/renderer/render_view_browsertest.cc
+++ b/chrome/renderer/render_view_browsertest.cc
@@ -678,7 +678,8 @@ TEST_F(RenderViewTest, OnHandleKeyboardEvent) {
"%d,%s\n" // texts in the second <div> element
"%d,%s", // texts in the third <div> element
key_code, kModifierData[j].expected_result,
- char_code[0], kModifierData[j].expected_result,
+ static_cast<int>(char_code[0]),
+ kModifierData[j].expected_result,
key_code, kModifierData[j].expected_result);
// Retrieve the text in the test page and compare it with the expected
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698