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

Unified Diff: webkit/glue/plugins/test/plugin_test.h

Issue 1661: port some parts of webkit/glue/plugins/test to Linux... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « webkit/glue/plugins/test/plugin_get_javascript_url_test.cc ('k') | webkit/glue/plugins/test/plugin_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/test/plugin_test.h
===================================================================
--- webkit/glue/plugins/test/plugin_test.h (revision 2299)
+++ webkit/glue/plugins/test/plugin_test.h (working copy)
@@ -77,13 +77,10 @@
void ExpectIntegerEqual(int val1, int val2) {
if (val1 != val2) {
std::string err;
- char buf[64]; // what's the right size?
err = "Expected Equal for '";
- sprintf_s(buf, "%d", val1);
- err.append(buf);
+ err.append(IntToString(val1));
err.append("' and '");
- sprintf_s(buf, "%d", val2);
- err.append(buf);
+ err.append(IntToString(val2));
err.append("'");
SetError(err);
}
« no previous file with comments | « webkit/glue/plugins/test/plugin_get_javascript_url_test.cc ('k') | webkit/glue/plugins/test/plugin_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698