Index: media/blink/test_response_generator.h |
diff --git a/media/blink/test_response_generator.h b/media/blink/test_response_generator.h |
index 7e3e98d910a1a43256d08c4d8f3a7c89311d2d5e..e5a1161d975f800e6a697c60791dc7458eb6e057 100644 |
--- a/media/blink/test_response_generator.h |
+++ b/media/blink/test_response_generator.h |
@@ -42,6 +42,18 @@ class TestResponseGenerator { |
// headers via |flags|. |
blink::WebURLResponse Generate206(int64 first_byte_offset, Flags flags); |
+ // Generates a regular HTTP 206 response starting from |first_byte_offset| |
+ // until |last_byte_offset|. |
+ blink::WebURLResponse GeneratePartial206(int64 first_byte_offset, |
+ int64 last_byte_offset); |
+ |
+ // Generates a custom HTTP 206 response starting from |first_byte_offset| |
+ // until |last_byte_offset|. You can tweak what gets included in the |
+ // headers via |flags|. |
+ blink::WebURLResponse GeneratePartial206(int64 first_byte_offset, |
+ int64 last_byte_offset, |
+ Flags flags); |
+ |
// Generates a regular HTTP 404 response. |
blink::WebURLResponse Generate404(); |