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

Unified Diff: content/renderer/media/canvas_capture_handler_unittest.cc

Issue 1784603002: Fix timestamp sent from CanvasCaptureHandler & make thread checkers clear (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/renderer/media/canvas_capture_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/canvas_capture_handler_unittest.cc
diff --git a/content/renderer/media/canvas_capture_handler_unittest.cc b/content/renderer/media/canvas_capture_handler_unittest.cc
index 8c449a3c4c56b5dab28ed43fb83a4b83792ea3b4..e17ffc641a061a1f98f9d39fe789c4f77f60d83a 100644
--- a/content/renderer/media/canvas_capture_handler_unittest.cc
+++ b/content/renderer/media/canvas_capture_handler_unittest.cc
@@ -100,6 +100,8 @@ class CanvasCaptureHandlerTest : public TestWithParam<bool> {
else
EXPECT_EQ(media::PIXEL_FORMAT_YV12A, video_frame->format());
+ EXPECT_EQ(video_frame->timestamp().InMilliseconds(),
Lei Zhang 2016/03/10 21:44:02 This has been failing on memory.fyi bots, e.g. ht
+ (estimated_capture_time - base::TimeTicks()).InMilliseconds());
const gfx::Size& size = video_frame->coded_size();
EXPECT_EQ(kTestCanvasCaptureFrameWidth, size.width());
EXPECT_EQ(kTestCanvasCaptureFrameHeight, size.height());
« no previous file with comments | « content/renderer/media/canvas_capture_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698