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

Issue 182253007: base::Hash: Minor improvements to documentation and testing. (Closed)

Created:
6 years, 9 months ago by Matt Giuca
Modified:
6 years, 9 months ago
Reviewers:
brettw, Noel Gordon
CC:
chromium-reviews, erikwright+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

base::Hash: Minor improvements to documentation and testing. Renamed the char* argument to 'data' and the string argument to 'str'. Cleaned up the comments on the char* overload (avoid using string-specific terms and mentioning null byte). Mentioned that this algorithm is also in Blink. Added a test case testing that null bytes cause the hash to change. BUG=347393 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255269

Patch Set 1 #

Patch Set 2 : Added a comment that this algorithm is also in Blink. #

Total comments: 2

Patch Set 3 : s/Add/Insert/. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M base/hash.h View 1 chunk +6 lines, -7 lines 0 comments Download
M base/hash.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/hash_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Matt Giuca
Making a few fixes to https://codereview.chromium.org/181643004/ as suggested by Noel. Brett: For OWNERS. Thanks.
6 years, 9 months ago (2014-03-05 04:31:23 UTC) #1
Noel Gordon
Thanks Matt, LGTM https://codereview.chromium.org/182253007/diff/20001/base/hash_unittest.cc File base/hash_unittest.cc (right): https://codereview.chromium.org/182253007/diff/20001/base/hash_unittest.cc#newcode28 base/hash_unittest.cc:28: // Add a null byte. nit: ...
6 years, 9 months ago (2014-03-05 04:47:00 UTC) #2
Matt Giuca
https://codereview.chromium.org/182253007/diff/20001/base/hash_unittest.cc File base/hash_unittest.cc (right): https://codereview.chromium.org/182253007/diff/20001/base/hash_unittest.cc#newcode28 base/hash_unittest.cc:28: // Add a null byte. On 2014/03/05 04:47:01, Noel ...
6 years, 9 months ago (2014-03-05 04:49:17 UTC) #3
brettw
lgtm
6 years, 9 months ago (2014-03-05 21:01:52 UTC) #4
Noel Gordon
The CQ bit was checked by noel@chromium.org
6 years, 9 months ago (2014-03-05 22:00:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/182253007/40001
6 years, 9 months ago (2014-03-05 22:00:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/182253007/40001
6 years, 9 months ago (2014-03-06 00:04:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/182253007/40001
6 years, 9 months ago (2014-03-06 02:46:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/182253007/40001
6 years, 9 months ago (2014-03-06 03:12:55 UTC) #9
commit-bot: I haz the power
Change committed as 255269
6 years, 9 months ago (2014-03-06 05:57:03 UTC) #10
Noel Gordon
¯\(ツ)/¯
6 years, 9 months ago (2014-03-06 06:31:59 UTC) #11
Matt Giuca
6 years, 9 months ago (2014-03-06 07:42:15 UTC) #12
Message was sent while issue was closed.
On 2014/03/06 06:31:59, Noel Gordon (Google) wrote:
> ¯\(ツ)/¯

+1

Powered by Google App Engine
This is Rietveld 408576698