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

Unified Diff: content/browser/renderer_host/media/video_capture_device_client_unittest.cc

Issue 1983193002: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve Comments 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
Index: content/browser/renderer_host/media/video_capture_device_client_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_device_client_unittest.cc b/content/browser/renderer_host/media/video_capture_device_client_unittest.cc
index 5d1d3a685d539f12b8431a355323d0c7be5eeba0..b59470dd128e991aead9060eab66ef608cc805db 100644
--- a/content/browser/renderer_host/media/video_capture_device_client_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_device_client_unittest.cc
@@ -87,7 +87,7 @@ TEST_F(VideoCaptureDeviceClientTest, Minimal) {
.Times(1);
device_client_->OnIncomingCapturedData(data, kScratchpadSizeInBytes,
kFrameFormat, 0 /*clockwise rotation*/,
- base::TimeTicks());
+ base::TimeTicks(), base::TimeDelta());
base::RunLoop().RunUntilIdle();
Mock::VerifyAndClearExpectations(controller_.get());
}
@@ -109,7 +109,7 @@ TEST_F(VideoCaptureDeviceClientTest, FailsSilentlyGivenInvalidFrameFormat) {
.Times(0);
device_client_->OnIncomingCapturedData(data, kScratchpadSizeInBytes,
kFrameFormat, 0 /*clockwise rotation*/,
- base::TimeTicks());
+ base::TimeTicks(), base::TimeDelta());
base::RunLoop().RunUntilIdle();
Mock::VerifyAndClearExpectations(controller_.get());
}
@@ -130,10 +130,10 @@ TEST_F(VideoCaptureDeviceClientTest, DropsFrameIfNoBuffer) {
// Pass two frames. The second will be dropped.
device_client_->OnIncomingCapturedData(data, kScratchpadSizeInBytes,
kFrameFormat, 0 /*clockwise rotation*/,
- base::TimeTicks());
+ base::TimeTicks(), base::TimeDelta());
device_client_->OnIncomingCapturedData(data, kScratchpadSizeInBytes,
kFrameFormat, 0 /*clockwise rotation*/,
- base::TimeTicks());
+ base::TimeTicks(), base::TimeDelta());
base::RunLoop().RunUntilIdle();
Mock::VerifyAndClearExpectations(controller_.get());
}
@@ -178,7 +178,8 @@ TEST_F(VideoCaptureDeviceClientTest, DataCaptureGoodPixelFormats) {
.Times(1);
device_client_->OnIncomingCapturedData(
data, params.requested_format.ImageAllocationSize(),
- params.requested_format, 0 /* clockwise_rotation */, base::TimeTicks());
+ params.requested_format, 0 /* clockwise_rotation */, base::TimeTicks(),
+ base::TimeDelta());
base::RunLoop().RunUntilIdle();
Mock::VerifyAndClearExpectations(controller_.get());
}
@@ -223,7 +224,8 @@ TEST_F(VideoCaptureDeviceClientTest, CheckRotationsAndCrops) {
.WillOnce(SaveArg<0>(&coded_size));
device_client_->OnIncomingCapturedData(
data, params.requested_format.ImageAllocationSize(),
- params.requested_format, size_and_rotation.rotation, base::TimeTicks());
+ params.requested_format, size_and_rotation.rotation, base::TimeTicks(),
+ base::TimeDelta());
base::RunLoop().RunUntilIdle();
EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width());

Powered by Google App Engine
This is Rietveld 408576698