| 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 <deque> | 5 #include <deque> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "content/renderer/media/rtc_video_decoder.h" | 10 #include "content/renderer/media/rtc_video_decoder.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 using ::testing::AnyNumber; | 22 using ::testing::AnyNumber; |
| 23 using ::testing::DoAll; | 23 using ::testing::DoAll; |
| 24 using ::testing::Message; | 24 using ::testing::Message; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| 26 using ::testing::ReturnNull; | 26 using ::testing::ReturnNull; |
| 27 using ::testing::SetArgumentPointee; | 27 using ::testing::SetArgumentPointee; |
| 28 using ::testing::StrictMock; | 28 using ::testing::StrictMock; |
| 29 using ::testing::WithArg; | 29 using ::testing::WithArg; |
| 30 using ::testing::Invoke; | 30 using ::testing::Invoke; |
| 31 using media::Limits; | 31 using media::Limits; |
| 32 using media::MediaFormat; | |
| 33 using media::MockStatisticsCallback; | 32 using media::MockStatisticsCallback; |
| 34 using media::MockVideoRenderer; | 33 using media::MockVideoRenderer; |
| 35 using media::MockFilterHost; | 34 using media::MockFilterHost; |
| 36 using media::NewExpectedCallback; | 35 using media::NewExpectedCallback; |
| 37 using media::PipelineStatistics; | 36 using media::PipelineStatistics; |
| 38 using media::PIPELINE_OK; | 37 using media::PIPELINE_OK; |
| 39 using media::StatisticsCallback; | 38 using media::StatisticsCallback; |
| 40 | 39 |
| 41 class RTCVideoDecoderTest : public testing::Test { | 40 class RTCVideoDecoderTest : public testing::Test { |
| 42 protected: | 41 protected: |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 EXPECT_CALL(host_, | 155 EXPECT_CALL(host_, |
| 157 SetVideoSize(new_width, new_height)).WillRepeatedly(Return()); | 156 SetVideoSize(new_width, new_height)).WillRepeatedly(Return()); |
| 158 | 157 |
| 159 decoder_->SetSize(new_width, new_height, new_reserved); | 158 decoder_->SetSize(new_width, new_height, new_reserved); |
| 160 | 159 |
| 161 EXPECT_EQ(new_width, decoder_->width()); | 160 EXPECT_EQ(new_width, decoder_->width()); |
| 162 EXPECT_EQ(new_height, decoder_->height()); | 161 EXPECT_EQ(new_height, decoder_->height()); |
| 163 | 162 |
| 164 message_loop_.RunAllPending(); | 163 message_loop_.RunAllPending(); |
| 165 } | 164 } |
| OLD | NEW |