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

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

Issue 2723793002: De-Element ScriptLoader (Closed)
Patch Set: ScriptLoaderClient->ScriptElementBase, pure virtual interface, add fixme Created 3 years, 9 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
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..fdaf1b70592f2deb4a0ef43421d1fd3065841797 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
@@ -177,7 +177,7 @@ class SubresourceIntegrityTest : public ::testing::Test {
CorsStatus corsStatus = WithCors) {
scriptElement->setAttribute(HTMLNames::integrityAttr, integrity);
EXPECT_TRUE(SubresourceIntegrity::CheckSubresourceIntegrity(
- *scriptElement, script, size, url,
+ String(integrity), scriptElement->document(), script, size, url,
*createTestResource(url, requestorUrl, corsStatus)));
}
@@ -189,7 +189,7 @@ class SubresourceIntegrityTest : public ::testing::Test {
CorsStatus corsStatus = WithCors) {
scriptElement->setAttribute(HTMLNames::integrityAttr, integrity);
EXPECT_FALSE(SubresourceIntegrity::CheckSubresourceIntegrity(
- *scriptElement, script, size, url,
+ String(integrity), scriptElement->document(), script, size, url,
*createTestResource(url, requestorUrl, corsStatus)));
}

Powered by Google App Engine
This is Rietveld 408576698