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

Unified Diff: media/base/test_helpers.h

Issue 2343543002: MSE: Replace crossfade splicing overlap trimming. (Closed)
Patch Set: Merge and feedback. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
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..833c0466d5c16409a01e5b27ab9c8137a1d9732b 100644
--- a/media/base/test_helpers.h
+++ b/media/base/test_helpers.h
@@ -194,13 +194,6 @@ MATCHER_P2(UnexpectedTrack, track_type, id, "") {
" track track_id=" + id);
}
-MATCHER_P2(GeneratedSplice, duration_microseconds, time_microseconds, "") {
- return CONTAINS_STRING(arg, "Generated splice of overlap duration " +
- base::IntToString(duration_microseconds) +
- "us into new buffer at " +
- base::IntToString(time_microseconds) + "us.");
-}
-
MATCHER_P2(SkippingSpliceAtOrBefore,
new_microseconds,
existing_microseconds,
@@ -242,6 +235,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698