| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
| 8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
| 9 #include "media/base/android/media_codec_audio_decoder.h" | 9 #include "media/base/android/media_codec_audio_decoder.h" |
| 10 #include "media/base/android/media_codec_bridge.h" | |
| 11 #include "media/base/android/media_codec_video_decoder.h" | 10 #include "media/base/android/media_codec_video_decoder.h" |
| 12 #include "media/base/android/media_statistics.h" | 11 #include "media/base/android/media_statistics.h" |
| 12 #include "media/base/android/sdk_media_codec_bridge.h" |
| 13 #include "media/base/android/test_data_factory.h" | 13 #include "media/base/android/test_data_factory.h" |
| 14 #include "media/base/android/test_statistics.h" | 14 #include "media/base/android/test_statistics.h" |
| 15 #include "media/base/timestamp_constants.h" | 15 #include "media/base/timestamp_constants.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "ui/gl/android/surface_texture.h" | 17 #include "ui/gl/android/surface_texture.h" |
| 18 | 18 |
| 19 namespace media { | 19 namespace media { |
| 20 | 20 |
| 21 // Helper macro to skip the test if MediaCodecBridge isn't available. | 21 // Helper macro to skip the test if MediaCodecBridge isn't available. |
| 22 #define SKIP_TEST_IF_MEDIA_CODEC_BRIDGE_IS_NOT_AVAILABLE() \ | 22 #define SKIP_TEST_IF_MEDIA_CODEC_BRIDGE_IS_NOT_AVAILABLE() \ |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 757 |
| 758 EXPECT_TRUE(decoder_->IsStopped()); | 758 EXPECT_TRUE(decoder_->IsStopped()); |
| 759 EXPECT_TRUE(decoder_->IsCompleted()); | 759 EXPECT_TRUE(decoder_->IsCompleted()); |
| 760 EXPECT_EQ(data_factory_->last_pts(), pts_stat_.max()); | 760 EXPECT_EQ(data_factory_->last_pts(), pts_stat_.max()); |
| 761 | 761 |
| 762 // Check that the reported video size is the one from the in-stream configs. | 762 // Check that the reported video size is the one from the in-stream configs. |
| 763 EXPECT_EQ(data_factory_->GetConfigs().video_size, video_size_); | 763 EXPECT_EQ(data_factory_->GetConfigs().video_size, video_size_); |
| 764 } | 764 } |
| 765 | 765 |
| 766 } // namespace media | 766 } // namespace media |
| OLD | NEW |