diff options
Diffstat (limited to 'chromium/media/base/test_helpers.h')
-rw-r--r-- | chromium/media/base/test_helpers.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/chromium/media/base/test_helpers.h b/chromium/media/base/test_helpers.h index bffe5960363..4fd250ca230 100644 --- a/chromium/media/base/test_helpers.h +++ b/chromium/media/base/test_helpers.h @@ -328,7 +328,14 @@ MATCHER_P2(AudioNonKeyframe, pts_microseconds, dts_microseconds, "") { base::NumberToString(pts_microseconds) + "us and DTS " + base::NumberToString(dts_microseconds) + "us indicated the frame is not a random access point (key " - "frame). All audio frames are expected to be key frames."); + "frame). All audio frames are expected to be key frames for " + "the current audio codec."); +} + +MATCHER(AudioNonKeyframeOutOfOrder, "") { + return CONTAINS_STRING(arg, + "Dependent audio frame with invalid decreasing " + "presentation timestamp detected."); } MATCHER_P2(SkippingSpliceAtOrBefore, @@ -451,6 +458,20 @@ MATCHER_P3(DroppedFrameCheckAppendWindow, base::NumberToString(append_window_end_us) + "us"); } +MATCHER_P3(DroppedAppendWindowUnusedPreroll, + pts_us, + delta_us, + next_pts_us, + "") { + return CONTAINS_STRING( + arg, + "Partial append window trimming dropping unused audio preroll buffer " + "with PTS " + + base::NumberToString(pts_us) + "us that ends too far (" + + base::NumberToString(delta_us) + "us) from next buffer with PTS " + + base::NumberToString(next_pts_us) + "us"); +} + } // namespace media #endif // MEDIA_BASE_TEST_HELPERS_H_ |