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

Unified Diff: base/string_number_conversions_unittest.cc

Issue 7584031: base::HexStringToInt conversion function treats the string "0x" as a valid hex number (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « base/string_number_conversions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_number_conversions_unittest.cc
===================================================================
--- base/string_number_conversions_unittest.cc (revision 95827)
+++ base/string_number_conversions_unittest.cc (working copy)
@@ -306,6 +306,7 @@
{"100000000", -1, false}, // don't care about |output|, just |success|
{"-", 0, false},
{"", 0, false},
+ {"0x", 0, false},
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
« no previous file with comments | « base/string_number_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698