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

Unified Diff: content/child/webcrypto/test/rsa_oaep_unittest.cc

Issue 654403002: Convert ARRAYSIZE_UNSAFE -> arraysize in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/test/aes_kw_unittest.cc ('k') | content/child/webcrypto/test/rsa_ssa_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/test/rsa_oaep_unittest.cc
diff --git a/content/child/webcrypto/test/rsa_oaep_unittest.cc b/content/child/webcrypto/test/rsa_oaep_unittest.cc
index 2c0976a2c13baadd00baf5f5f423a60c3d887b8b..f6bec71e4588506ad5f9618d7409f7698982e530 100644
--- a/content/child/webcrypto/test/rsa_oaep_unittest.cc
+++ b/content/child/webcrypto/test/rsa_oaep_unittest.cc
@@ -152,7 +152,7 @@ TEST(WebCryptoRsaOaepTest, ExportPublicJwk) {
{blink::WebCryptoAlgorithmIdSha256, "RSA-OAEP-256"},
{blink::WebCryptoAlgorithmIdSha384, "RSA-OAEP-384"},
{blink::WebCryptoAlgorithmIdSha512, "RSA-OAEP-512"}};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestData); ++i) {
+ for (size_t i = 0; i < arraysize(kTestData); ++i) {
const TestData& test_data = kTestData[i];
SCOPED_TRACE(test_data.expected_jwk_alg);
@@ -589,8 +589,7 @@ TEST(WebCryptoRsaOaepTest, ImportExportJwkRsaPublicKey) {
{blink::WebCryptoAlgorithmIdSha512,
blink::WebCryptoKeyUsageEncrypt, "RSA-OAEP-512"}};
- for (size_t test_index = 0; test_index < ARRAYSIZE_UNSAFE(kTests);
- ++test_index) {
+ for (size_t test_index = 0; test_index < arraysize(kTests); ++test_index) {
SCOPED_TRACE(test_index);
const TestCase& test = kTests[test_index];
« no previous file with comments | « content/child/webcrypto/test/aes_kw_unittest.cc ('k') | content/child/webcrypto/test/rsa_ssa_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698