Commit 7f437453 authored by xhwang's avatar xhwang Committed by Commit bot

Expect InitSegmentReceived() in PipelineIntegrationTest.Encrypted* tests.

This is a follow up of 37e3ddb2, which introduced the InitSegmentReceived()
call.

Since StartPipelineWithEncryptedMedia() also uses MockMediaSource, we should
also expect InitSegmentReceived() to be called. Otherwise, we'll receive
warnings about uninterested mock calls of InitSegmentReceived().

BUG=249428
TEST=This fixes expectations in existing tests.

Review URL: https://codereview.chromium.org/588573003

Cr-Commit-Position: refs/heads/master@{#296099}
parent 41febd92
......@@ -577,6 +577,7 @@ class PipelineIntegrationTest
void StartPipelineWithEncryptedMedia(
MockMediaSource* source,
FakeEncryptedMedia* encrypted_media) {
EXPECT_CALL(*source, InitSegmentReceived()).Times(AtLeast(1));
EXPECT_CALL(*this, OnMetadata(_))
.Times(AtMost(1))
.WillRepeatedly(SaveArg<0>(&metadata_));
......
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