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

Unified Diff: content/browser/media/capture/video_capture_oracle_unittest.cc

Issue 1146723002: New FRAME_DURATION VideoFrameMetadata, with Cast Streaming use case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/media/capture/video_capture_oracle_unittest.cc
diff --git a/content/browser/media/capture/video_capture_oracle_unittest.cc b/content/browser/media/capture/video_capture_oracle_unittest.cc
index 456bc515aa87fe92b8fe5cd8801cda31a55b9d46..89af3aca8cf13a764c2de565909ab999c31503b7 100644
--- a/content/browser/media/capture/video_capture_oracle_unittest.cc
+++ b/content/browser/media/capture/video_capture_oracle_unittest.cc
@@ -144,8 +144,11 @@ TEST(VideoCaptureOracleTest, TransitionsSmoothlyBetweenSamplers) {
t);
if (require_oracle_says_sample)
ASSERT_TRUE(oracle_says_sample);
- if (!oracle_says_sample)
+ if (!oracle_says_sample) {
+ ASSERT_EQ(base::TimeDelta(), oracle.estimated_frame_duration());
continue;
+ }
+ ASSERT_LT(base::TimeDelta(), oracle.estimated_frame_duration());
const int frame_number = oracle.RecordCapture();

Powered by Google App Engine
This is Rietveld 408576698