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

Unified Diff: media/filters/audio_renderer_algorithm_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/filters/audio_renderer_algorithm.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm_unittest.cc
diff --git a/media/filters/audio_renderer_algorithm_unittest.cc b/media/filters/audio_renderer_algorithm_unittest.cc
index e92223cd2bb3b6b45695147b4a7a5fbf86f1e439..986d6b5d8da887d24210c1813bf665ef0fa29f1e 100644
--- a/media/filters/audio_renderer_algorithm_unittest.cc
+++ b/media/filters/audio_renderer_algorithm_unittest.cc
@@ -216,6 +216,9 @@ class AudioRendererAlgorithmTest : public testing::Test {
FillAlgorithmQueue();
}
+ EXPECT_EQ(algorithm_.frames_buffered() * channels_ * sizeof(float),
+ static_cast<size_t>(algorithm_.GetMemoryUsage()));
+
int frames_consumed =
ComputeConsumedFrames(initial_frames_enqueued, initial_frames_buffered);
« no previous file with comments | « media/filters/audio_renderer_algorithm.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698