| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 #include "content/renderer/media/rtc_video_decoder.h" | 9 #include "content/renderer/media/rtc_video_decoder.h" |
| 10 #include "media/base/gmock_callback_support.h" | 10 #include "media/base/gmock_callback_support.h" |
| 11 #include "media/filters/gpu_video_decoder.h" | |
| 12 #include "media/filters/mock_gpu_video_decoder_factories.h" | 11 #include "media/filters/mock_gpu_video_decoder_factories.h" |
| 13 #include "media/video/mock_video_decode_accelerator.h" | 12 #include "media/video/mock_video_decode_accelerator.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 using ::testing::_; | 15 using ::testing::_; |
| 17 using ::testing::Invoke; | 16 using ::testing::Invoke; |
| 18 using ::testing::Return; | 17 using ::testing::Return; |
| 19 using ::testing::SaveArg; | 18 using ::testing::SaveArg; |
| 20 using ::testing::WithArgs; | 19 using ::testing::WithArgs; |
| 21 | 20 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, 0)); | 166 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, 0)); |
| 168 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, | 167 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, |
| 169 RTCVideoDecoder::ID_HALF - 2)); | 168 RTCVideoDecoder::ID_HALF - 2)); |
| 170 EXPECT_TRUE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, | 169 EXPECT_TRUE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, |
| 171 RTCVideoDecoder::ID_HALF + 2)); | 170 RTCVideoDecoder::ID_HALF + 2)); |
| 172 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, | 171 EXPECT_FALSE(rtc_decoder_->IsBufferAfterReset(RTCVideoDecoder::ID_LAST, |
| 173 RTCVideoDecoder::ID_LAST)); | 172 RTCVideoDecoder::ID_LAST)); |
| 174 } | 173 } |
| 175 | 174 |
| 176 } // content | 175 } // content |
| OLD | NEW |