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

Unified Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp

Issue 1406183010: Replace ARRAY_SIZE with WTF_ARRAY_LENGTH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
index cda218a4bfcd3c3ff4005afe9a03ac9d6abca1b2..4e327b9449a82f641d035f6154b2c962cae00d6a 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
@@ -316,7 +316,7 @@ TEST_F(SubresourceIntegrityTest, Parsing)
expectParseMultipleHashes(
"sha384-XVVXBGoYw6AJOh9J+Z8pBDMVVPfkBpngexkA7JqZu8d5GENND6TEIup/tA1v5GPr sha512-tbUPioKbVBplr0b1ucnWB57SJWt4x9dOE0Vy2mzCXvH3FepqDZ+07yMK81ytlg0MPaIrPAjcHqba5csorDWtKg==",
kValidSha384AndSha512,
- ARRAY_SIZE(kValidSha384AndSha512));
+ WTF_ARRAY_LENGTH(kValidSha384AndSha512));
const IntegrityMetadata kValidSha256AndSha256[] = {
{"BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256},
@@ -325,7 +325,7 @@ TEST_F(SubresourceIntegrityTest, Parsing)
expectParseMultipleHashes(
"sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE= sha256-deadbeef",
kValidSha256AndSha256,
- ARRAY_SIZE(kValidSha256AndSha256));
+ WTF_ARRAY_LENGTH(kValidSha256AndSha256));
const IntegrityMetadata kValidSha256AndInvalidSha256[] = {
{"BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256}
@@ -333,7 +333,7 @@ TEST_F(SubresourceIntegrityTest, Parsing)
expectParseMultipleHashes(
"sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE= sha256-!!!!",
kValidSha256AndInvalidSha256,
- ARRAY_SIZE(kValidSha256AndInvalidSha256));
+ WTF_ARRAY_LENGTH(kValidSha256AndInvalidSha256));
const IntegrityMetadata kInvalidSha256AndValidSha256[] = {
{"BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256}
@@ -341,7 +341,7 @@ TEST_F(SubresourceIntegrityTest, Parsing)
expectParseMultipleHashes(
"sha256-!!! sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=",
kInvalidSha256AndValidSha256,
- ARRAY_SIZE(kInvalidSha256AndValidSha256));
+ WTF_ARRAY_LENGTH(kInvalidSha256AndValidSha256));
expectParse(
"sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar",

Powered by Google App Engine
This is Rietveld 408576698