OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/renderer/media/rtc_video_decoder.h" | 5 #include "content/renderer/media/rtc_video_decoder.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "media/base/data_buffer.h" | 13 #include "media/base/data_buffer.h" |
13 #include "media/base/filters.h" | 14 #include "media/base/filters.h" |
14 #include "media/base/limits.h" | 15 #include "media/base/limits.h" |
15 #include "media/base/mock_callback.h" | 16 #include "media/base/mock_callback.h" |
16 #include "media/base/mock_filter_host.h" | 17 #include "media/base/mock_filter_host.h" |
17 #include "media/base/mock_filters.h" | 18 #include "media/base/mock_filters.h" |
18 #include "media/base/mock_task.h" | 19 #include "media/base/mock_task.h" |
19 #include "media/base/video_frame.h" | 20 #include "media/base/video_frame.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 EXPECT_CALL(host_, | 221 EXPECT_CALL(host_, |
221 SetVideoSize(new_width, new_height)).WillRepeatedly(Return()); | 222 SetVideoSize(new_width, new_height)).WillRepeatedly(Return()); |
222 | 223 |
223 decoder_->SetSize(new_width, new_height, new_reserved); | 224 decoder_->SetSize(new_width, new_height, new_reserved); |
224 | 225 |
225 EXPECT_EQ(new_width, decoder_->width()); | 226 EXPECT_EQ(new_width, decoder_->width()); |
226 EXPECT_EQ(new_height, decoder_->height()); | 227 EXPECT_EQ(new_height, decoder_->height()); |
227 | 228 |
228 message_loop_.RunAllPending(); | 229 message_loop_.RunAllPending(); |
229 } | 230 } |
OLD | NEW |