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

Unified Diff: media/renderers/video_renderer_impl_unittest.cc

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix html viewer. Created 5 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 | « media/renderers/video_renderer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/video_renderer_impl_unittest.cc
diff --git a/media/renderers/video_renderer_impl_unittest.cc b/media/renderers/video_renderer_impl_unittest.cc
index fdac65ba4ed6b4fed71cbbfbb074e455183fa2f2..f7dcb10d6ce8855a8a3a16899b7ec5f9675128e8 100644
--- a/media/renderers/video_renderer_impl_unittest.cc
+++ b/media/renderers/video_renderer_impl_unittest.cc
@@ -677,6 +677,7 @@ TEST_F(VideoRendererImplTest, RenderingStartedThenStopped) {
event.RunAndWait();
Mock::VerifyAndClearExpectations(&mock_cb_);
EXPECT_EQ(0u, last_pipeline_statistics_.video_frames_dropped);
+ EXPECT_EQ(460800, last_pipeline_statistics_.video_memory_usage);
}
// Consider the case that rendering is faster than we setup the test event.
@@ -704,6 +705,7 @@ TEST_F(VideoRendererImplTest, RenderingStartedThenStopped) {
// reported
EXPECT_EQ(0u, last_pipeline_statistics_.video_frames_dropped);
EXPECT_EQ(4u, last_pipeline_statistics_.video_frames_decoded);
+ EXPECT_EQ(460800, last_pipeline_statistics_.video_memory_usage);
AdvanceTimeInMs(30);
WaitForEnded();
« no previous file with comments | « media/renderers/video_renderer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698