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/buffered_data_source_unittest.cc

Issue 8566046: Fix test_shell_test breakage due to missing SetBufferedBytes expectation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | 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 b7dcb90eafb8ff87ec16eed0920cce206e08f6e8..ce14c7abc03f5fc126a8230c894bd2c3df67803f 100644
--- a/webkit/media/buffered_data_source_unittest.cc
+++ b/webkit/media/buffered_data_source_unittest.cc
@@ -192,13 +192,13 @@ class BufferedDataSourceTest : public testing::Test {
// Expected loaded or not.
EXPECT_CALL(host_, SetLoaded(loaded));
- if (instance_size != -1) {
+ if (instance_size != -1)
EXPECT_CALL(host_, SetTotalBytes(instance_size));
- if (loaded)
- EXPECT_CALL(host_, SetBufferedBytes(instance_size));
- else
- EXPECT_CALL(host_, SetBufferedBytes(0));
- }
+
+ if (loaded)
+ EXPECT_CALL(host_, SetBufferedBytes(instance_size));
+ else
+ EXPECT_CALL(host_, SetBufferedBytes(0));
if (!partial_response || instance_size == -1)
EXPECT_CALL(host_, SetStreaming(true));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698