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

Issue 1348823004: test large inputs for sha1 and sha256, also remove unused import (Closed)

Created:
5 years, 3 months ago by sethladd
Modified:
5 years, 3 months ago
Reviewers:
nweiz, rmacnak
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/crypto.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Test large inputs for sha1 and sha256, also remove unused import. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/crypto/commit/85e581ea9a3b9fbb84711f7ce0bad21c2c3c2328

Patch Set 1 #

Total comments: 6

Patch Set 2 : tweaks from review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M lib/src/hash_base.dart View 1 chunk +0 lines, -1 line 0 comments Download
M test/sha1_test.dart View 1 2 chunks +5 lines, -0 lines 0 comments Download
M test/sha256_test.dart View 1 2 chunks +5 lines, -0 lines 0 comments Download
A test/very_long_input.dart View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
sethladd
5 years, 3 months ago (2015-09-17 21:15:29 UTC) #2
rmacnak
lgtm w/c https://codereview.chromium.org/1348823004/diff/1/test/sha1_test.dart File test/sha1_test.dart (right): https://codereview.chromium.org/1348823004/diff/1/test/sha1_test.dart#newcode25 test/sha1_test.dart:25: test('input length greater than 32 bits', () ...
5 years, 3 months ago (2015-09-17 21:21:31 UTC) #3
sethladd
https://codereview.chromium.org/1348823004/diff/1/test/sha1_test.dart File test/sha1_test.dart (right): https://codereview.chromium.org/1348823004/diff/1/test/sha1_test.dart#newcode25 test/sha1_test.dart:25: test('input length greater than 32 bits', () { On ...
5 years, 3 months ago (2015-09-17 21:30:52 UTC) #4
sethladd
Committed patchset #2 (id:20001) manually as 85e581ea9a3b9fbb84711f7ce0bad21c2c3c2328 (presubmit successful).
5 years, 3 months ago (2015-09-17 21:32:22 UTC) #5
nweiz
DBC As far as I can tell, these tests will take on the order of ...
5 years, 3 months ago (2015-09-21 21:34:21 UTC) #7
sethladd
I'm not familiar with how to write tests for our infrastructure that might take a ...
5 years, 3 months ago (2015-09-22 07:37:09 UTC) #8
nweiz
5 years, 3 months ago (2015-09-22 21:21:32 UTC) #9
Message was sent while issue was closed.
On 2015/09/22 07:37:09, sethladd wrote:
> I'm not familiar with how to write tests for our infrastructure that might
take
> a long time. Definitely open to ideas.

In general, we just don't write tests that take this long.

> (how did you calculate three hours for these tests? curious...)

I added some instrumentation to print out how many iterations were being done
per second (a little over 100000) and did the math.

Powered by Google App Engine
This is Rietveld 408576698