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

Unified Diff: webkit/media/buffered_data_source_unittest.cc

Issue 10829155: Report that we're no longer downloading when the resource loader has finished loading. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: add tests 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/buffered_data_source_unittest.cc
diff --git a/webkit/media/buffered_data_source_unittest.cc b/webkit/media/buffered_data_source_unittest.cc
index af1a863f8bcc7392399aa9da1418d22045612ff4..10d584c8db77a1481ec324badb098d106a73093a 100644
--- a/webkit/media/buffered_data_source_unittest.cc
+++ b/webkit/media/buffered_data_source_unittest.cc
@@ -591,4 +591,24 @@ TEST_F(BufferedDataSourceTest, File_Read) {
Stop();
}
+TEST_F(BufferedDataSourceTest, Http_FinishLoading) {
+ InitializeWith206Response();
+
+ EXPECT_TRUE(data_source_->downloading());
+ FinishLoading();
+ EXPECT_FALSE(data_source_->downloading());
+
+ Stop();
+}
+
+TEST_F(BufferedDataSourceTest, File_FinishLoading) {
+ InitializeWithFileResponse();
+
+ EXPECT_FALSE(data_source_->downloading());
+ FinishLoading();
+ EXPECT_FALSE(data_source_->downloading());
+
+ Stop();
+}
+
} // namespace webkit_media
« no previous file with comments | « webkit/media/buffered_data_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698