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

Issue 1112003002: Use 64 bit shift when convert uint64_t to ByteVector (Closed)

Created:
5 years, 7 months ago by holte
Modified:
5 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use 64 bit shift when convert uint64_t to ByteVector Seperates this step out and adds a test for it. BUG=427616 Committed: https://crrev.com/d1fbbe8536b7965c6ea7e61296b0cbace12ec702 Cr-Commit-Position: refs/heads/master@{#327787}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use size_t #

Patch Set 3 : Remove cast for negative testing #

Patch Set 4 : Restore the cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -7 lines) Patch
M components/rappor/byte_vector_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/rappor/byte_vector_utils.cc View 1 3 1 chunk +11 lines, -0 lines 0 comments Download
M components/rappor/byte_vector_utils_unittest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M components/rappor/sample.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
Steven Holte
This works fine for me locally even without the cast, but it's generating warnings on ...
5 years, 7 months ago (2015-04-29 01:12:24 UTC) #2
Steven Holte
On 2015/04/29 01:12:24, Steven Holte wrote: > This works fine for me locally even without ...
5 years, 7 months ago (2015-04-29 01:13:20 UTC) #3
Alexei Svitkine (slow)
Have you confirmed that the test fails on Windows without the fix? https://codereview.chromium.org/1112003002/diff/1/components/rappor/byte_vector_utils.cc File components/rappor/byte_vector_utils.cc ...
5 years, 7 months ago (2015-04-29 15:01:07 UTC) #4
Steven Holte
I haven't tested pre-fix on windows, since I don't have windows machine handy. https://codereview.chromium.org/1112003002/diff/1/components/rappor/byte_vector_utils.cc File ...
5 years, 7 months ago (2015-04-29 18:18:56 UTC) #5
brucedawson
> This works fine for me locally even without the cast, but > it's generating ...
5 years, 7 months ago (2015-04-29 18:21:51 UTC) #7
Alexei Svitkine (slow)
You can always use try bots to test on platforms other than the ones that ...
5 years, 7 months ago (2015-04-29 18:24:03 UTC) #8
brucedawson
The /analyze warnings (which are what found the bug) are on a .fyi bot rather ...
5 years, 7 months ago (2015-04-29 18:27:49 UTC) #9
Alexei Svitkine (slow)
I meant trying the unit test without the fix on the bots - to check ...
5 years, 7 months ago (2015-04-29 18:30:14 UTC) #10
brucedawson
Gotcha. Yes, verifying that the test fails on all platforms would be good. It should. ...
5 years, 7 months ago (2015-04-29 18:41:47 UTC) #11
brucedawson
I added BUG=427616 to the description -- that's the /analyze blanket bug.
5 years, 7 months ago (2015-04-29 18:42:25 UTC) #12
chromium-reviews
It definitely does not fail on all platforms, since as I stated earlier it passes ...
5 years, 7 months ago (2015-04-29 19:14:47 UTC) #13
brucedawson
I saw that and I don't understand how that can be true. I hacked up ...
5 years, 7 months ago (2015-04-29 20:40:03 UTC) #14
Steven Holte
On 2015/04/29 20:40:03, brucedawson wrote: > I saw that and I don't understand how that ...
5 years, 7 months ago (2015-04-29 22:02:11 UTC) #15
Alexei Svitkine (slow)
lgtm
5 years, 7 months ago (2015-04-29 22:23:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1112003002/60001
5 years, 7 months ago (2015-04-30 19:54:15 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-04-30 21:07:31 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 21:09:33 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d1fbbe8536b7965c6ea7e61296b0cbace12ec702
Cr-Commit-Position: refs/heads/master@{#327787}

Powered by Google App Engine
This is Rietveld 408576698