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

Unified Diff: media/blink/multibuffer_data_source_unittest.cc

Issue 2115483003: Revert of Fix MultibufferDataSource::GetSize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 c9be9cb0c0bf79e533c6105008d5baf5614d203b..deb759d4e5817d1d217ec7bbbd2e786c00c42234 100644
--- a/media/blink/multibuffer_data_source_unittest.cc
+++ b/media/blink/multibuffer_data_source_unittest.cc
@@ -9,7 +9,6 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
-#include "base/strings/string_number_conversions.h"
#include "media/base/media_log.h"
#include "media/base/mock_filters.h"
#include "media/base/test_helpers.h"
@@ -1426,26 +1425,4 @@
Stop();
}
-TEST_F(MultibufferDataSourceTest, FileSizeLessThanBlockSize) {
- Initialize(kHttpUrl, true);
- GURL gurl(kHttpUrl);
- blink::WebURLResponse response(gurl);
- response.setHTTPStatusCode(200);
- response.setHTTPHeaderField(
- WebString::fromUTF8("Content-Length"),
- WebString::fromUTF8(base::Int64ToString(kDataSize / 2)));
- response.setExpectedContentLength(kDataSize / 2);
- Respond(response);
- EXPECT_CALL(host_, AddBufferedByteRange(0, kDataSize / 2));
- EXPECT_CALL(host_, SetTotalBytes(kDataSize / 2));
- EXPECT_CALL(host_, AddBufferedByteRange(0, kDataSize * 2));
- ReceiveData(kDataSize / 2);
- FinishLoading();
-
- int64_t len = 0;
- EXPECT_TRUE(data_source_->GetSize(&len));
- EXPECT_EQ(kDataSize / 2, len);
- Stop();
-}
-
} // namespace media
« 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