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/mock_gpu_video_accelerator_factories.h" | 11 #include "media/renderers/mock_gpu_video_accelerator_factories.h" |
12 #include "media/video/mock_video_decode_accelerator.h" | 12 #include "media/video/mock_video_decode_accelerator.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using ::testing::_; | 15 using ::testing::_; |
16 using ::testing::Invoke; | 16 using ::testing::Invoke; |
17 using ::testing::Return; | 17 using ::testing::Return; |
18 using ::testing::SaveArg; | 18 using ::testing::SaveArg; |
19 using ::testing::WithArgs; | 19 using ::testing::WithArgs; |
20 | 20 |
21 namespace content { | 21 namespace content { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 EXPECT_FALSE(rtc_decoder_->IsFirstBufferAfterReset(RTCVideoDecoder::ID_LAST, | 221 EXPECT_FALSE(rtc_decoder_->IsFirstBufferAfterReset(RTCVideoDecoder::ID_LAST, |
222 RTCVideoDecoder::ID_LAST)); | 222 RTCVideoDecoder::ID_LAST)); |
223 EXPECT_TRUE( | 223 EXPECT_TRUE( |
224 rtc_decoder_->IsFirstBufferAfterReset(0, RTCVideoDecoder::ID_LAST)); | 224 rtc_decoder_->IsFirstBufferAfterReset(0, RTCVideoDecoder::ID_LAST)); |
225 EXPECT_FALSE( | 225 EXPECT_FALSE( |
226 rtc_decoder_->IsFirstBufferAfterReset(1, RTCVideoDecoder::ID_LAST)); | 226 rtc_decoder_->IsFirstBufferAfterReset(1, RTCVideoDecoder::ID_LAST)); |
227 } | 227 } |
228 | 228 |
229 } // content | 229 } // content |
OLD | NEW |