OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
9 #include "base/waitable_event.h" | |
10 #include "media/base/pipeline_impl.h" | 9 #include "media/base/pipeline_impl.h" |
11 #include "media/base/media_format.h" | 10 #include "media/base/media_format.h" |
12 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
13 #include "media/base/factory.h" | 12 #include "media/base/factory.h" |
14 #include "media/base/filter_host.h" | 13 #include "media/base/filter_host.h" |
15 #include "media/base/mock_filters.h" | 14 #include "media/base/mock_filters.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 | 16 |
18 using ::testing::DoAll; | 17 using ::testing::DoAll; |
19 using ::testing::InSequence; | 18 using ::testing::InSequence; |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 612 |
614 EXPECT_CALL(*mocks_->audio_renderer(), HasEnded()) | 613 EXPECT_CALL(*mocks_->audio_renderer(), HasEnded()) |
615 .WillOnce(Return(true)); | 614 .WillOnce(Return(true)); |
616 EXPECT_CALL(*mocks_->video_renderer(), HasEnded()) | 615 EXPECT_CALL(*mocks_->video_renderer(), HasEnded()) |
617 .WillOnce(Return(true)); | 616 .WillOnce(Return(true)); |
618 EXPECT_CALL(callbacks_, OnEnded()); | 617 EXPECT_CALL(callbacks_, OnEnded()); |
619 host->NotifyEnded(); | 618 host->NotifyEnded(); |
620 } | 619 } |
621 | 620 |
622 } // namespace media | 621 } // namespace media |
OLD | NEW |