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

Unified Diff: media/filters/video_frame_stream_unittest.cc

Issue 16297002: Update media/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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
« no previous file with comments | « media/filters/video_frame_stream.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_stream_unittest.cc
diff --git a/media/filters/video_frame_stream_unittest.cc b/media/filters/video_frame_stream_unittest.cc
index 79a8d9fa3ddd2a141ea1db894733edc3867a1e37..92e7cfaa0fe318415834a513771cb4c29af031a9 100644
--- a/media/filters/video_frame_stream_unittest.cc
+++ b/media/filters/video_frame_stream_unittest.cc
@@ -88,7 +88,7 @@ class VideoFrameStreamTest : public testing::TestWithParam<bool> {
DCHECK(pending_decoder_read_);
ASSERT_EQ(VideoDecoder::kOk, status);
frame_read_ = frame;
- if (frame && !frame->IsEndOfStream())
+ if (frame.get() && !frame->IsEndOfStream())
num_decoded_frames_++;
pending_decoder_read_ = false;
}
@@ -255,7 +255,7 @@ TEST_P(VideoFrameStreamTest, ReadAllFrames) {
Initialize();
do {
ReadFrame();
- } while (frame_read_ && !frame_read_->IsEndOfStream());
+ } while (frame_read_.get() && !frame_read_->IsEndOfStream());
const int total_num_frames = kNumConfigs * kNumBuffersInOneConfig;
DCHECK_EQ(num_decoded_frames_, total_num_frames);
« no previous file with comments | « media/filters/video_frame_stream.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698