Commit 94dde4b7 authored by vrk@google.com's avatar vrk@google.com

Fix test_shell_test breakage due to missing SetBufferedBytes expectation

SetBufferedBytes may be called independent of having a valid total bytes size
for the media element. Update test to reflect this.

BUG=NONE
TEST=test_shell_tests
TBR=acolwell

Review URL: http://codereview.chromium.org/8566046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110743 0039d316-1c4b-4281-b951-d872f2087c98
parent cda2bc85
...@@ -192,13 +192,13 @@ class BufferedDataSourceTest : public testing::Test { ...@@ -192,13 +192,13 @@ class BufferedDataSourceTest : public testing::Test {
// Expected loaded or not. // Expected loaded or not.
EXPECT_CALL(host_, SetLoaded(loaded)); EXPECT_CALL(host_, SetLoaded(loaded));
if (instance_size != -1) { if (instance_size != -1)
EXPECT_CALL(host_, SetTotalBytes(instance_size)); EXPECT_CALL(host_, SetTotalBytes(instance_size));
if (loaded) if (loaded)
EXPECT_CALL(host_, SetBufferedBytes(instance_size)); EXPECT_CALL(host_, SetBufferedBytes(instance_size));
else else
EXPECT_CALL(host_, SetBufferedBytes(0)); EXPECT_CALL(host_, SetBufferedBytes(0));
}
if (!partial_response || instance_size == -1) if (!partial_response || instance_size == -1)
EXPECT_CALL(host_, SetStreaming(true)); EXPECT_CALL(host_, SetStreaming(true));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment