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

Issue 6877008: Add a unittest case of ReplaceStringPlaceholders() (Closed)

Created:
9 years, 8 months ago by haraken1
Modified:
9 years, 6 months ago
Reviewers:
tony, Evan Martin
CC:
chromium-reviews, Paweł Hajdan Jr., jshin+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Support more than 9 arguments for ReplaceStringPlaceholders() - support more than 9 arguments ($1, $2, $3, ..., $9 and $10, $11, $12, ...) for ReplaceStringPlaceholders() - add the unittest named ReplaceStringPlaceholdersMoreThan9Replacements for testing more than 9 arguments for ReplaceStringPlaceholders() BUG=16963 TEST=string_util_unittest:StringUtilTest.ReplaceStringPlaceholdersMoreThan9Replacements Patch by haraken@google.com. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82405 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88190

Patch Set 1 #

Total comments: 2

Patch Set 2 : Restore TEST(StringUtilTest, ReplaceStringPlaceholdersTooFew) as before #

Patch Set 3 : No change #

Patch Set 4 : Prevent overrun of string parsing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -7 lines) Patch
M base/string_util.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M base/string_util_unittest.cc View 1 2 3 2 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
haraken1
Thank you very much for the review and very sorry for this late reply. I ...
9 years, 8 months ago (2011-04-18 17:09:42 UTC) #1
tony
LGTM! I'll try to send it through the commit queue.
9 years, 8 months ago (2011-04-19 16:47:49 UTC) #2
tony
On 2011/04/19 16:47:49, tony wrote: > LGTM! I'll try to send it through the commit ...
9 years, 8 months ago (2011-04-19 18:57:27 UTC) #3
Evan Martin
LGTM, but the review message is confusing. If this is two changes, can you commit ...
9 years, 8 months ago (2011-04-19 19:06:46 UTC) #4
tony
http://codereview.chromium.org/6877008/diff/1/base/string_util_unittest.cc File base/string_util_unittest.cc (left): http://codereview.chromium.org/6877008/diff/1/base/string_util_unittest.cc#oldcode887 base/string_util_unittest.cc:887: // are fewer inputs than outputs. On 2011/04/19 19:06:46, ...
9 years, 8 months ago (2011-04-19 19:21:48 UTC) #5
haraken1
tony wrote: > Evan is right, we should just add a new test, not modify ...
9 years, 8 months ago (2011-04-20 07:21:30 UTC) #6
tony
LGTM. Trying the commit queue...
9 years, 8 months ago (2011-04-20 17:08:49 UTC) #7
tony
Committed manually in r82405. Thanks!
9 years, 8 months ago (2011-04-20 23:54:56 UTC) #8
tony
Reverted in r82423 because lots of tests started to fail on windows: http://build.chromium.org/p/chromium/builders/Vista%20Tests%20%281%29/builds/3414
9 years, 8 months ago (2011-04-21 02:21:06 UTC) #9
haraken1
> http://build.chromium.org/p/chromium/builders/Vista%2520Tests%2520%25281%2529/builds/3414 I guess that the above problem is not the problem caused by our ...
9 years, 8 months ago (2011-04-21 18:58:30 UTC) #10
tony
On 2011/04/21 18:58:30, haraken wrote: > I guess that the above problem is not the ...
9 years, 8 months ago (2011-04-21 19:06:07 UTC) #11
haraken1
> Do you have a windows machine you can build and test on? Otherwise, if ...
9 years, 8 months ago (2011-04-21 20:16:03 UTC) #12
tony
Sent to the try bots as master#0aea5 .
9 years, 8 months ago (2011-04-21 21:58:43 UTC) #13
tony
On 2011/04/21 21:58:43, tony wrote: > Sent to the try bots as master#0aea5 . Err, ...
9 years, 8 months ago (2011-04-21 21:59:12 UTC) #14
haraken1
I am very sorry for this late reply... I added the check "i != format_string.end()" ...
9 years, 6 months ago (2011-06-07 13:33:51 UTC) #15
tony
Sending to the try bots. If it passes, I'll commit it for you.
9 years, 6 months ago (2011-06-07 17:21:25 UTC) #16
tony
9 years, 6 months ago (2011-06-07 20:23:34 UTC) #17
r88190

Powered by Google App Engine
This is Rietveld 408576698