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

Unified Diff: media/base/test_helpers.h

Issue 2343543002: MSE: Replace crossfade splicing overlap trimming. (Closed)
Patch Set: Feedback Created 4 years, 2 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/blink/webmediaplayer_impl.cc » ('j') | media/filters/chunk_demuxer_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.h
diff --git a/media/base/test_helpers.h b/media/base/test_helpers.h
index c97e9a7dc5991a5127c4f1338a152dffd6db2e49..58944fed088e830fa336009fe1c0a4ecfe4050f9 100644
--- a/media/base/test_helpers.h
+++ b/media/base/test_helpers.h
@@ -242,6 +242,18 @@ MATCHER(WebMClusterBeforeFirstInfo, "") {
return CONTAINS_STRING(arg, "Found Cluster element before Info.");
}
+MATCHER_P3(TrimmedSpliceOverlap,
+ splice_time_us,
+ overlapped_start_us,
+ trim_duration_us,
+ "") {
+ return CONTAINS_STRING(
+ arg, "Audio buffer splice at PTS=" + base::IntToString(splice_time_us) +
+ "us. Trimmed tail of overlapped buffer (PTS=" +
+ base::IntToString(overlapped_start_us) + "us) by " +
+ base::IntToString(trim_duration_us));
+}
+
} // namespace media
#endif // MEDIA_BASE_TEST_HELPERS_H_
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/filters/chunk_demuxer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698