Index: content/browser/loader/mime_type_resource_handler_unittest.cc |
diff --git a/content/browser/loader/mime_type_resource_handler_unittest.cc b/content/browser/loader/mime_type_resource_handler_unittest.cc |
index 1b4004adc58952c29fc42d77a506127d8b5108f3..43005adc5c71a288b22193bf99b2efdff1a325ad 100644 |
--- a/content/browser/loader/mime_type_resource_handler_unittest.cc |
+++ b/content/browser/loader/mime_type_resource_handler_unittest.cc |
@@ -318,6 +318,14 @@ TEST_F(MimeTypeResourceHandlerTest, StreamHandling) { |
EXPECT_FALSE( |
TestStreamIsIntercepted(allow_download, must_download, resource_type)); |
+ // Plugin resource request with download not allowed. Stream shouldn't be |
+ // intercepted. |
+ allow_download = false; |
+ must_download = false; |
+ resource_type = RESOURCE_TYPE_PLUGIN_RESOURCE; |
+ EXPECT_FALSE( |
+ TestStreamIsIntercepted(allow_download, must_download, resource_type)); |
+ |
// Object request with download not allowed. Stream should be intercepted. |
allow_download = false; |
must_download = false; |