| Index: media/filters/pipeline_controller_unittest.cc
|
| diff --git a/media/filters/pipeline_controller_unittest.cc b/media/filters/pipeline_controller_unittest.cc
|
| index 6a7d2e998416089ea1177b21e49163c6d7542e6a..1167e6ef6669a845408dfd9793389d210d530f05 100644
|
| --- a/media/filters/pipeline_controller_unittest.cc
|
| +++ b/media/filters/pipeline_controller_unittest.cc
|
| @@ -39,6 +39,8 @@ class PipelineControllerTest : public ::testing::Test, public Pipeline::Client {
|
| base::Unretained(this)),
|
| base::Bind(&PipelineControllerTest::OnSuspended,
|
| base::Unretained(this)),
|
| + base::Bind(&PipelineControllerTest::OnResumed,
|
| + base::Unretained(this)),
|
| base::Bind(&PipelineControllerTest::OnError,
|
| base::Unretained(this))) {}
|
|
|
| @@ -118,6 +120,7 @@ class PipelineControllerTest : public ::testing::Test, public Pipeline::Client {
|
| }
|
|
|
| void OnSuspended() { was_suspended_ = true; }
|
| + void OnResumed() { was_resumed_ = true; }
|
|
|
| // Pipeline::Client overrides
|
| void OnError(PipelineStatus status) override { NOTREACHED(); }
|
| @@ -140,6 +143,7 @@ class PipelineControllerTest : public ::testing::Test, public Pipeline::Client {
|
| bool was_seeked_ = false;
|
| bool last_seeked_time_updated_ = false;
|
| bool was_suspended_ = false;
|
| + bool was_resumed_ = false;
|
| base::TimeDelta last_resume_time_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PipelineControllerTest);
|
| @@ -166,6 +170,7 @@ TEST_F(PipelineControllerTest, SuspendResume) {
|
| EXPECT_FALSE(pipeline_controller_.IsStable());
|
|
|
| Complete(ResumePipeline());
|
| + EXPECT_TRUE(was_resumed_);
|
| EXPECT_TRUE(pipeline_controller_.IsStable());
|
|
|
| // |was_seeked_| should not be affected by Suspend()/Resume() at all.
|
|
|