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

Unified Diff: media/base/android/media_codec_util.h

Issue 1975013002: Disable various MediaSourcePlayerTests on unsupported devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_util.h
diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h
index 211d9f038bab66a82c83b25e896ba1a1e6f6e5b2..e1fcb1844b42b9669f8e988680ca7aea593daab7 100644
--- a/media/base/android/media_codec_util.h
+++ b/media/base/android/media_codec_util.h
@@ -27,6 +27,15 @@ namespace media {
} \
} while (0)
+// Helper macro to skip the test if VP8 decoding isn't supported.
+#define SKIP_TEST_IF_VP8_DECODER_IS_NOT_SUPPORTED() \
+ do { \
+ if (!MediaCodecUtil::IsVp8DecoderAvailable()) { \
+ VLOG(0) << "Could not run test - not supported on device."; \
+ return; \
+ } \
+ } while (0)
+
// Codec direction. Keep this in sync with MediaCodecUtil.java.
enum MediaCodecDirection {
MEDIA_CODEC_DECODER,
« no previous file with comments | « no previous file | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698