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

Unified Diff: media/blink/multibuffer_data_source_unittest.cc

Issue 2455693004: Media: fail properly on 404 after redirect (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | media/blink/resource_multibuffer_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/multibuffer_data_source_unittest.cc
diff --git a/media/blink/multibuffer_data_source_unittest.cc b/media/blink/multibuffer_data_source_unittest.cc
index c44edce39a67d9fad2b799c304c90f7cb0077869..a1c4df82bd7376cc1cc235e838bc6c497fe528ce 100644
--- a/media/blink/multibuffer_data_source_unittest.cc
+++ b/media/blink/multibuffer_data_source_unittest.cc
@@ -1431,6 +1431,19 @@ TEST_F(MultibufferDataSourceTest, Http_RangeNotSatisfiableAfterRedirect) {
Stop();
}
+TEST_F(MultibufferDataSourceTest, Http_404AfterRedirect) {
+ Initialize(kHttpUrl, false);
+
+ // Server responds with a redirect.
+ blink::WebURLRequest request((GURL(kHttpDifferentPathUrl)));
+ blink::WebURLResponse response((GURL(kHttpUrl)));
+ response.setHTTPStatusCode(307);
+ data_provider()->willFollowRedirect(request, response);
+
+ Respond(response_generator_->Generate404());
+ Stop();
+}
+
TEST_F(MultibufferDataSourceTest, LengthKnownAtEOF) {
Initialize(kHttpUrl, true);
// Server responds without content-length.
« no previous file with comments | « no previous file | media/blink/resource_multibuffer_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698