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

Unified Diff: content/browser/loader/mime_type_resource_handler_unittest.cc

Issue 1515703005: WebRequest API: add more resource types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace == with && 2x Created 5 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
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;
« no previous file with comments | « chrome/test/data/extensions/api_test/webrequest/test_types.js ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698