OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_loop.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "media/base/data_buffer.h" | 13 #include "media/base/data_buffer.h" |
14 #include "media/base/filters.h" | |
15 #include "media/base/limits.h" | 14 #include "media/base/limits.h" |
16 #include "media/base/mock_callback.h" | 15 #include "media/base/mock_callback.h" |
17 #include "media/base/mock_filters.h" | 16 #include "media/base/mock_filters.h" |
18 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "third_party/libjingle/source/talk/session/phone/videoframe.h" | 19 #include "third_party/libjingle/source/talk/session/phone/videoframe.h" |
21 | 20 |
22 using ::testing::_; | 21 using ::testing::_; |
23 using ::testing::AnyNumber; | 22 using ::testing::AnyNumber; |
24 using ::testing::DoAll; | 23 using ::testing::DoAll; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 297 |
299 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk, _)).Times(2); | 298 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk, _)).Times(2); |
300 decoder_->Read(read_cb_); | 299 decoder_->Read(read_cb_); |
301 EXPECT_FALSE(decoder_->shutting_down_); | 300 EXPECT_FALSE(decoder_->shutting_down_); |
302 decoder_->PrepareForShutdownHack(); | 301 decoder_->PrepareForShutdownHack(); |
303 EXPECT_TRUE(decoder_->shutting_down_); | 302 EXPECT_TRUE(decoder_->shutting_down_); |
304 decoder_->Read(read_cb_); | 303 decoder_->Read(read_cb_); |
305 | 304 |
306 message_loop_.RunAllPending(); | 305 message_loop_.RunAllPending(); |
307 } | 306 } |
308 | |
OLD | NEW |