commit | 19c4025a0a39c42f89812a0ce77a5426290942f4 | [log] [tgz] |
---|---|---|
author | Prashant Malani <pmalani@google.com> | Tue Sep 29 18:33:39 2015 -0700 |
committer | Prashant Malani <pmalani@google.com> | Wed Sep 30 11:36:25 2015 -0700 |
tree | 435fe48bad4bc5e9e3af5cc3c409eb423462fff6 | |
parent | d28c39a0e1cead0e1afeb567265da4554de766cd [diff] |
cts: Check for video codec on some MediaRecorder Tests Some of the tests assume the presence of a video codec. This is not always true. So, on such devices, those tests are skipped. Bug: 24345197 Change-Id: Ia9403f817a44250f4a0b57b9aa4d389635358f36
diff --git a/tests/tests/media/src/android/media/cts/MediaRecorderTest.java b/tests/tests/media/src/android/media/cts/MediaRecorderTest.java index cb217b2..4c90e56 100644 --- a/tests/tests/media/src/android/media/cts/MediaRecorderTest.java +++ b/tests/tests/media/src/android/media/cts/MediaRecorderTest.java
@@ -890,6 +890,12 @@ boolean success = false; Surface surface = null; int noOfFailure = 0; + + if (!hasH264()) { + MediaUtils.skipTest("no codecs"); + return true; + } + try { if (persistent) { surface = MediaCodec.createPersistentInputSurface();