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

Unified Diff: media/cast/video_sender/video_sender_unittest.cc

Issue 134943002: Fix memory leak in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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/cast/video_sender/external_video_encoder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/video_sender_unittest.cc
diff --git a/media/cast/video_sender/video_sender_unittest.cc b/media/cast/video_sender/video_sender_unittest.cc
index 0f0852df6ce83fe6f310a5daa1550d8ba9085535..42c25d2dfd1a2a263b4b577cf59577c53f2b8347 100644
--- a/media/cast/video_sender/video_sender_unittest.cc
+++ b/media/cast/video_sender/video_sender_unittest.cc
@@ -129,6 +129,10 @@ TEST_F(VideoSenderTest, ExternalEncoder) {
video_sender_->InsertRawVideoFrame(video_frame, capture_time);
task_runner_->RunTasks();
+
+ // We need to run the task to cleanup the GPU instance.
+ video_sender_.reset(NULL);
+ task_runner_->RunTasks();
}
TEST_F(VideoSenderTest, RtcpTimer) {
« no previous file with comments | « media/cast/video_sender/external_video_encoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698