Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: media/gpu/android_video_decode_accelerator_unittest.cc

Issue 2481563002: Add AVDA unittests to media_unittests (Closed)
Patch Set: move it Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/gpu/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « media/gpu/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698