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

Unified Diff: chrome/browser/resource_dispatcher_host_uitest.cc

Issue 12982: Disable the content sniffing algorithm if the server instructs us to do so wi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | « chrome/browser/resource_dispatcher_host.cc ('k') | chrome/test/data/nosniff-test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resource_dispatcher_host_uitest.cc
===================================================================
--- chrome/browser/resource_dispatcher_host_uitest.cc (revision 6417)
+++ chrome/browser/resource_dispatcher_host_uitest.cc (working copy)
@@ -50,6 +50,10 @@
L"Content Sniffer Test 0");
}
+TEST_F(ResourceDispatcherTest, RespectNoSniffDirective) {
+ CheckTitleTest(L"nosniff-test.html", L"");
+}
+
TEST_F(ResourceDispatcherTest, DoNotSniffHTMLFromTextPlain) {
CheckTitleTest(L"content-sniffer-test1.html", L"");
}
« no previous file with comments | « chrome/browser/resource_dispatcher_host.cc ('k') | chrome/test/data/nosniff-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698