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

Issue 816403002: [WebCrypto] Cleanup in LoadTestKeys() in ecdh unit tests (Closed)

Created:
6 years ago by Habib Virji
Modified:
5 years, 11 months ago
Reviewers:
eroman
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebCrypto] Cleanup in LoadTestKeys() in ecdh unit tests Introduced property in the ecdh.json to track the data to be used for P-521 tests in ecdh_unittest. In ecdh_unittest.cc, it does not rely on the position of data, but relies on the property value, if the value is true it uses that test for loading test keys. BUG=443009 R=eroman Committed: https://crrev.com/1031ecd676e38ba05656aecfb9f8af8903c900fa Cr-Commit-Position: refs/heads/master@{#309907}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added return type to LoadTestKeys #

Total comments: 6

Patch Set 3 : Code review comments addressed #

Total comments: 2

Patch Set 4 : Moved condition out of the loop #

Patch Set 5 : Windows build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -15 lines) Patch
M content/child/webcrypto/test/ecdh_unittest.cc View 1 2 3 4 8 chunks +27 lines, -14 lines 0 comments Download
M content/test/data/webcrypto/ecdh.json View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (3 generated)
Habib Virji
Instead of relying on the position, it instead uses the special parameter in json structure ...
6 years ago (2014-12-22 15:46:37 UTC) #1
eroman
Spelling error in the changelist description. https://codereview.chromium.org/816403002/diff/1/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/1/content/child/webcrypto/test/ecdh_unittest.cc#newcode134 content/child/webcrypto/test/ecdh_unittest.cc:134: const base::DictionaryValue* test; ...
6 years ago (2014-12-22 17:56:07 UTC) #2
Habib Virji
https://codereview.chromium.org/816403002/diff/1/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/1/content/child/webcrypto/test/ecdh_unittest.cc#newcode134 content/child/webcrypto/test/ecdh_unittest.cc:134: const base::DictionaryValue* test; On 2014/12/22 17:56:07, eroman wrote: > ...
6 years ago (2014-12-23 10:59:05 UTC) #3
eroman
looksgood after addressing these comments. https://codereview.chromium.org/816403002/diff/20001/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/20001/content/child/webcrypto/test/ecdh_unittest.cc#newcode130 content/child/webcrypto/test/ecdh_unittest.cc:130: blink::WebCryptoKey* private_key) { run ...
5 years, 11 months ago (2014-12-29 18:01:04 UTC) #4
Habib Virji
Thanks updated. https://codereview.chromium.org/816403002/diff/20001/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/20001/content/child/webcrypto/test/ecdh_unittest.cc#newcode130 content/child/webcrypto/test/ecdh_unittest.cc:130: blink::WebCryptoKey* private_key) { On 2014/12/29 18:01:04, eroman ...
5 years, 11 months ago (2014-12-30 17:22:48 UTC) #5
eroman
https://codereview.chromium.org/816403002/diff/40001/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/40001/content/child/webcrypto/test/ecdh_unittest.cc#newcode143 content/child/webcrypto/test/ecdh_unittest.cc:143: else if (!valid_p521_keys && tests->GetSize() == test_index + 1) ...
5 years, 11 months ago (2014-12-30 17:41:48 UTC) #6
Habib Virji
https://codereview.chromium.org/816403002/diff/40001/content/child/webcrypto/test/ecdh_unittest.cc File content/child/webcrypto/test/ecdh_unittest.cc (right): https://codereview.chromium.org/816403002/diff/40001/content/child/webcrypto/test/ecdh_unittest.cc#newcode143 content/child/webcrypto/test/ecdh_unittest.cc:143: else if (!valid_p521_keys && tests->GetSize() == test_index + 1) ...
5 years, 11 months ago (2014-12-31 09:38:24 UTC) #7
eroman
lgtm
5 years, 11 months ago (2014-12-31 19:46:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/816403002/60001
5 years, 11 months ago (2014-12-31 19:46:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/105741)
5 years, 11 months ago (2014-12-31 20:24:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/816403002/80001
5 years, 11 months ago (2015-01-05 10:20:01 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-05 11:18:08 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-05 11:19:15 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1031ecd676e38ba05656aecfb9f8af8903c900fa
Cr-Commit-Position: refs/heads/master@{#309907}

Powered by Google App Engine
This is Rietveld 408576698