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

Issue 2003693002: Simplify validity detection in SafeNumerics tests (Closed)

Created:
4 years, 7 months ago by jschuh
Modified:
4 years, 7 months ago
Reviewers:
brucedawson
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify validity detection in SafeNumerics tests Intrinsics don't identify overflow direction, and we're not relying on it anyway. So, it's easiest to remove it piece by piece. BUG=613003 Committed: https://crrev.com/819c82686cc9d3ffb14db3f9926f92dcb50ab910 Cr-Commit-Position: refs/heads/master@{#395224}

Patch Set 1 #

Total comments: 2

Patch Set 2 : macros #

Total comments: 2

Patch Set 3 : oops #

Patch Set 4 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -81 lines) Patch
M base/numerics/safe_numerics_unittest.cc View 1 2 3 12 chunks +59 lines, -81 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
jschuh
This is a mostly mechanical change that alters the tests so that I can change ...
4 years, 7 months ago (2016-05-20 20:38:18 UTC) #2
brucedawson
https://codereview.chromium.org/2003693002/diff/1/base/numerics/safe_numerics_unittest.cc File base/numerics/safe_numerics_unittest.cc (right): https://codereview.chromium.org/2003693002/diff/1/base/numerics/safe_numerics_unittest.cc#newcode66 base/numerics/safe_numerics_unittest.cc:66: EXPECT_EQ(expected, CheckedNumeric<Dst>(actual).IsValid()) \ Now that expected has only two ...
4 years, 7 months ago (2016-05-20 21:00:57 UTC) #3
jschuh
https://codereview.chromium.org/2003693002/diff/1/base/numerics/safe_numerics_unittest.cc File base/numerics/safe_numerics_unittest.cc (right): https://codereview.chromium.org/2003693002/diff/1/base/numerics/safe_numerics_unittest.cc#newcode66 base/numerics/safe_numerics_unittest.cc:66: EXPECT_EQ(expected, CheckedNumeric<Dst>(actual).IsValid()) \ On 2016/05/20 21:00:57, brucedawson wrote: > ...
4 years, 7 months ago (2016-05-20 21:19:05 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003693002/20001
4 years, 7 months ago (2016-05-20 21:20:02 UTC) #6
brucedawson
https://codereview.chromium.org/2003693002/diff/20001/base/numerics/safe_numerics_unittest.cc File base/numerics/safe_numerics_unittest.cc (right): https://codereview.chromium.org/2003693002/diff/20001/base/numerics/safe_numerics_unittest.cc#newcode94 base/numerics/safe_numerics_unittest.cc:94: TEST_EXPECTED_VALIDITY( Your search/replace missed a bunch of these, that ...
4 years, 7 months ago (2016-05-20 21:28:58 UTC) #7
jschuh
Regex search and replace in MSVS is a damn lie!!! https://codereview.chromium.org/2003693002/diff/20001/base/numerics/safe_numerics_unittest.cc File base/numerics/safe_numerics_unittest.cc (right): https://codereview.chromium.org/2003693002/diff/20001/base/numerics/safe_numerics_unittest.cc#newcode94 ...
4 years, 7 months ago (2016-05-20 21:56:48 UTC) #8
brucedawson
Needs a run through git cl format, but after that if the tests pass then ...
4 years, 7 months ago (2016-05-20 23:43:43 UTC) #10
jschuh
On 2016/05/20 23:43:43, brucedawson wrote: > Needs a run through git cl format, but after ...
4 years, 7 months ago (2016-05-20 23:52:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003693002/60001
4 years, 7 months ago (2016-05-20 23:53:26 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-21 01:39:15 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-21 01:40:58 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/819c82686cc9d3ffb14db3f9926f92dcb50ab910
Cr-Commit-Position: refs/heads/master@{#395224}

Powered by Google App Engine
This is Rietveld 408576698