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

Unified Diff: webkit/media/test_response_generator.h

Issue 10698139: Write file:// tests for BufferedDataSource and fix some bugs as a result. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: what the Created 8 years, 5 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 | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/test_response_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/test_response_generator.h
diff --git a/webkit/media/test_response_generator.h b/webkit/media/test_response_generator.h
index d912d88715f54004712b7c6dd8a40cb478a9895f..f73e94bcb81fc0b0b04d7d74164226add15ed5cd 100644
--- a/webkit/media/test_response_generator.h
+++ b/webkit/media/test_response_generator.h
@@ -45,6 +45,13 @@ class TestResponseGenerator {
// Generates a regular HTTP 404 response.
WebKit::WebURLResponse Generate404();
+ // Generates a file:// response starting from |first_byte_offset| until the
+ // end of the resource.
+ //
+ // If |first_byte_offset| is negative a response containing no content length
+ // will be returned.
+ WebKit::WebURLResponse GenerateFileResponse(int64 first_byte_offset);
+
const GURL& gurl() { return gurl_; }
int64 content_length() { return content_length_; }
« no previous file with comments | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/test_response_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698