| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "media/gpu/android_video_decode_accelerator.h" | 5 #include "media/gpu/android_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 std::unique_ptr<VideoDecodeAccelerator> vda_; | 100 std::unique_ptr<VideoDecodeAccelerator> vda_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 TEST_F(AndroidVideoDecodeAcceleratorTest, ConfigureUnsupportedCodec) { | 103 TEST_F(AndroidVideoDecodeAcceleratorTest, ConfigureUnsupportedCodec) { |
| 104 ASSERT_FALSE(Initialize(VIDEO_CODEC_PROFILE_UNKNOWN)); | 104 ASSERT_FALSE(Initialize(VIDEO_CODEC_PROFILE_UNKNOWN)); |
| 105 } | 105 } |
| 106 | 106 |
| 107 TEST_F(AndroidVideoDecodeAcceleratorTest, ConfigureSupportedCodec) { | 107 TEST_F(AndroidVideoDecodeAcceleratorTest, ConfigureSupportedCodec) { |
| 108 if (!MediaCodecUtil::IsMediaCodecAvailable()) | 108 if (!MediaCodecUtil::IsMediaCodecAvailable()) |
| 109 return; | 109 return; |
| 110 ASSERT_TRUE(Initialize(VP8PROFILE_ANY)); | 110 // H264 is always supported by AVDA. |
| 111 ASSERT_TRUE(Initialize(H264PROFILE_BASELINE)); |
| 111 } | 112 } |
| 112 | 113 |
| 113 } // namespace media | 114 } // namespace media |
| 114 | |
| 115 int main(int argc, char** argv) { | |
| 116 testing::InitGoogleTest(&argc, argv); | |
| 117 return RUN_ALL_TESTS(); | |
| 118 } | |
| OLD | NEW |