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

Unified Diff: Source/core/fetch/ResourceFetcherTest.cpp

Issue 983533005: Upgrade insecure request: Drop the reporting functionality. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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: Source/core/fetch/ResourceFetcherTest.cpp
diff --git a/Source/core/fetch/ResourceFetcherTest.cpp b/Source/core/fetch/ResourceFetcherTest.cpp
index f6b3a8f220fb7fb100d3ac4b0cdd84ccf942da7d..9f99afa7d141f77737684395f71a017805136f38 100644
--- a/Source/core/fetch/ResourceFetcherTest.cpp
+++ b/Source/core/fetch/ResourceFetcherTest.cpp
@@ -194,24 +194,6 @@ TEST_F(ResourceFetcherUpgradeTest, DoNotUpgradeInsecureResourceRequests)
expectUpgrade("ftp://example.test:1212/image.png", "ftp://example.test:1212/image.png");
}
-TEST_F(ResourceFetcherUpgradeTest, MonitorInsecureResourceRequests)
-{
- document->setSecurityOrigin(secureOrigin);
- document->setInsecureContentPolicy(SecurityContext::InsecureContentMonitor);
-
- expectUpgrade("http://example.test/image.png", "http://example.test/image.png");
- expectUpgrade("http://example.test:80/image.png", "http://example.test:80/image.png");
- expectUpgrade("http://example.test:1212/image.png", "http://example.test:1212/image.png");
-
- expectUpgrade("https://example.test/image.png", "https://example.test/image.png");
- expectUpgrade("https://example.test:80/image.png", "https://example.test:80/image.png");
- expectUpgrade("https://example.test:1212/image.png", "https://example.test:1212/image.png");
-
- expectUpgrade("ftp://example.test/image.png", "ftp://example.test/image.png");
- expectUpgrade("ftp://example.test:21/image.png", "ftp://example.test:21/image.png");
- expectUpgrade("ftp://example.test:1212/image.png", "ftp://example.test:1212/image.png");
-}
-
TEST_F(ResourceFetcherUpgradeTest, SendPreferHeader)
{
struct TestCase {
@@ -235,9 +217,6 @@ TEST_F(ResourceFetcherUpgradeTest, SendPreferHeader)
document->setInsecureContentPolicy(SecurityContext::InsecureContentUpgrade);
expectPreferHeader(test.toRequest, test.frameType, test.shouldPrefer);
-
- document->setInsecureContentPolicy(SecurityContext::InsecureContentMonitor);
- expectPreferHeader(test.toRequest, test.frameType, test.shouldPrefer);
}
}

Powered by Google App Engine
This is Rietveld 408576698