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 13240b7772aa8e63bed6741e4015ba30f6c19c49..107899563276f8149824eef68d47103cba462738 100644 |
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp |
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp |
@@ -297,17 +297,17 @@ TEST_F(SubresourceIntegrityTest, Parsing) { |
expectEmptyParseResult("ni:///sha256-abcdefg"); |
expectEmptyParseResult("notsha256atall-abcdefg"); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
- expectParse("sha-256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ "sha-256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
- expectParse(" sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE= ", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ " sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE= ", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
expectParse( |
"sha384-XVVXBGoYw6AJOh9J-Z8pBDMVVPfkBpngexkA7JqZu8d5GENND6TEIup_tA1v5GPr", |
@@ -414,32 +414,32 @@ TEST_F(SubresourceIntegrityTest, Parsing) { |
invalidSha256AndValidSha256, |
WTF_ARRAY_LENGTH(invalidSha256AndValidSha256)); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
expectParse( |
"sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar?baz=foz", |
"BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
expectParse( |
"sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar?baz=foz", |
"BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar?", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
- expectParse("sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo:bar", |
- "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", |
- HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo=bar?", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
+ expectParse( |
+ "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=?foo:bar", |
+ "BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=", HashAlgorithmSha256); |
} |
TEST_F(SubresourceIntegrityTest, ParsingBase64) { |