OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" |
6 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
8 #include "content/child/child_process.h" | 9 #include "content/child/child_process.h" |
9 #include "content/renderer/media/media_stream_video_renderer_sink.h" | 10 #include "content/renderer/media/media_stream_video_renderer_sink.h" |
10 #include "content/renderer/media/mock_media_stream_registry.h" | 11 #include "content/renderer/media/mock_media_stream_registry.h" |
11 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
12 #include "media/renderers/gpu_video_accelerator_factories.h" | 13 #include "media/renderers/gpu_video_accelerator_factories.h" |
13 #include "media/renderers/mock_gpu_memory_buffer_video_frame_pool.h" | 14 #include "media/renderers/mock_gpu_memory_buffer_video_frame_pool.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ASSERT_EQ(1u, frame_ready_cbs_.size()); | 149 ASSERT_EQ(1u, frame_ready_cbs_.size()); |
149 | 150 |
150 EXPECT_CALL(*this, RepaintCallback(video_frame)).Times(1); | 151 EXPECT_CALL(*this, RepaintCallback(video_frame)).Times(1); |
151 frame_ready_cbs_[0].Run(); | 152 frame_ready_cbs_[0].Run(); |
152 message_loop_.RunUntilIdle(); | 153 message_loop_.RunUntilIdle(); |
153 | 154 |
154 media_stream_video_renderer_sink_->Stop(); | 155 media_stream_video_renderer_sink_->Stop(); |
155 } | 156 } |
156 | 157 |
157 } // namespace content | 158 } // namespace content |
OLD | NEW |