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

Unified Diff: webkit/media/simple_data_source_unittest.cc

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test for streaming case to DownloadRateMonitor Created 9 years, 1 month 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: webkit/media/simple_data_source_unittest.cc
diff --git a/webkit/media/simple_data_source_unittest.cc b/webkit/media/simple_data_source_unittest.cc
index 62b933c31ed5e93b06245317d47337edc5e40998..0a26da55f6757b79a53959879fc781ebffbc1c20 100644
--- a/webkit/media/simple_data_source_unittest.cc
+++ b/webkit/media/simple_data_source_unittest.cc
@@ -84,7 +84,7 @@ class SimpleDataSourceTest : public testing::Test {
MessageLoop::current()->RunAllPending();
}
- void RequestSucceeded(bool is_loaded) {
+ void RequestSucceeded(bool is_local_source) {
WebURLResponse response(gurl_);
response.setExpectedContentLength(kDataSize);
@@ -97,7 +97,7 @@ class SimpleDataSourceTest : public testing::Test {
data_source_->didReceiveData(NULL, data_ + i, 1, 1);
}
- EXPECT_CALL(host_, SetLoaded(is_loaded));
+ EXPECT_CALL(host_, SetLocalSourceFromFilter(is_local_source));
InSequence s;
EXPECT_CALL(host_, SetTotalBytes(kDataSize));
@@ -197,7 +197,7 @@ TEST_F(SimpleDataSourceTest, InitializeData) {
data_source_->set_host(&host_);
data_source_->SetURLLoaderForTest(url_loader_);
- EXPECT_CALL(host_, SetLoaded(true));
+ EXPECT_CALL(host_, SetLocalSourceFromFilter(true));
EXPECT_CALL(host_, SetTotalBytes(sizeof(kDataUrlDecoded)));
EXPECT_CALL(host_, SetBufferedBytes(sizeof(kDataUrlDecoded)));

Powered by Google App Engine
This is Rietveld 408576698