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

Issue 184233009: Extend SplitStringIntoKeyValuePairs unit tests. (Closed)

Created:
6 years, 9 months ago by pneubeck (no reviews)
Modified:
6 years, 9 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, erikwright+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

Extend SplitStringIntoKeyValuePairs unit tests. Extends the unit tests about corner cases to ensure that changes to the implementation don't break these. Test cases of the internal helper function SplitStringIntoKeyValues are merged into tests of the public function SplitStringIntoKeyValuesPairs. This removes redundancy in the tests and improves coverage of SplitStringIntoKeyValuesPairs. The helper function is removed from the public header. BUG=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255758

Patch Set 1 #

Total comments: 9

Patch Set 2 : Remove the helper function in this CL. #

Patch Set 3 : Test handling of newline char. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -91 lines) Patch
M base/strings/string_split.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M base/strings/string_split_unittest.cc View 1 2 2 chunks +94 lines, -86 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
pneubeck (no reviews)
please review, thanks! This prepares for the next CL https://codereview.chromium.org/184233010/ .
6 years, 9 months ago (2014-03-05 22:30:48 UTC) #1
willchan no longer on Chromium
I'm at IETF in London and then go on vacation next week. Can you send ...
6 years, 9 months ago (2014-03-06 00:54:27 UTC) #2
pneubeck (no reviews)
Please take a look, thanks!
6 years, 9 months ago (2014-03-06 02:05:19 UTC) #3
Mark Mentovai
https://codereview.chromium.org/184233009/diff/1/base/strings/string_split_unittest.cc File base/strings/string_split_unittest.cc (left): https://codereview.chromium.org/184233009/diff/1/base/strings/string_split_unittest.cc#oldcode32 base/strings/string_split_unittest.cc:32: class SplitStringIntoKeyValuesTest : public testing::Test { This change gets ...
6 years, 9 months ago (2014-03-06 17:44:31 UTC) #4
pneubeck (no reviews)
https://codereview.chromium.org/184233009/diff/1/base/strings/string_split_unittest.cc File base/strings/string_split_unittest.cc (left): https://codereview.chromium.org/184233009/diff/1/base/strings/string_split_unittest.cc#oldcode32 base/strings/string_split_unittest.cc:32: class SplitStringIntoKeyValuesTest : public testing::Test { On 2014/03/06 17:44:31, ...
6 years, 9 months ago (2014-03-06 18:33:21 UTC) #5
Mark Mentovai
LGTM, then. It would be nice if at some point after you document and clean ...
6 years, 9 months ago (2014-03-06 19:19:04 UTC) #6
pneubeck (no reviews)
On 2014/03/06 19:19:04, Mark Mentovai wrote: > LGTM, then. It would be nice if at ...
6 years, 9 months ago (2014-03-06 19:22:53 UTC) #7
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 9 months ago (2014-03-06 19:22:57 UTC) #8
Mark Mentovai
Yeah, never woulda let that fly on initial review, but since as you point out ...
6 years, 9 months ago (2014-03-06 19:27:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/184233009/40001
6 years, 9 months ago (2014-03-06 19:31:37 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 19:47:14 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 19:47:15 UTC) #12
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 9 months ago (2014-03-06 19:47:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/184233009/40001
6 years, 9 months ago (2014-03-06 19:52:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/184233009/40001
6 years, 9 months ago (2014-03-06 21:03:14 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 21:29:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 21:29:17 UTC) #17
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 9 months ago (2014-03-07 20:29:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/184233009/40001
6 years, 9 months ago (2014-03-07 20:33:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/184233009/40001
6 years, 9 months ago (2014-03-08 10:55:43 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-08 11:52:49 UTC) #21
Message was sent while issue was closed.
Change committed as 255758

Powered by Google App Engine
This is Rietveld 408576698