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

Side by Side Diff: content/renderer/media/capture_video_decoder_unittest.cc

Issue 10825194: Change Deryptor::DecryptStatus and VideoDecoder::DecoderStatus to *::Status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "content/common/child_process.h" 6 #include "content/common/child_process.h"
7 #include "content/renderer/media/capture_video_decoder.h" 7 #include "content/renderer/media/capture_video_decoder.h"
8 #include "content/renderer/media/video_capture_impl.h" 8 #include "content/renderer/media/video_capture_impl.h"
9 #include "content/renderer/media/video_capture_impl_manager.h" 9 #include "content/renderer/media/video_capture_impl_manager.h"
10 #include "media/base/limits.h" 10 #include "media/base/limits.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 buffer->height = size.height(); 152 buffer->height = size.height();
153 int length = buffer->width * buffer->height * 3 / 2; 153 int length = buffer->width * buffer->height * 3 / 2;
154 buffer->memory_pointer = new uint8[length]; 154 buffer->memory_pointer = new uint8[length];
155 buffer->buffer_size = length; 155 buffer->buffer_size = length;
156 156
157 EXPECT_CALL(*vc_impl_, FeedBuffer(_)) 157 EXPECT_CALL(*vc_impl_, FeedBuffer(_))
158 .WillOnce(DeleteDataBuffer()); 158 .WillOnce(DeleteDataBuffer());
159 decoder_->OnBufferReady(vc_impl_.get(), buffer); 159 decoder_->OnBufferReady(vc_impl_.get(), buffer);
160 } 160 }
161 161
162 MOCK_METHOD2(FrameReady, void(media::VideoDecoder::DecoderStatus status, 162 MOCK_METHOD2(FrameReady, void(media::VideoDecoder::Status status,
163 const scoped_refptr<media::VideoFrame>&)); 163 const scoped_refptr<media::VideoFrame>&));
164 164
165 // Fixture members. 165 // Fixture members.
166 scoped_refptr<CaptureVideoDecoder> decoder_; 166 scoped_refptr<CaptureVideoDecoder> decoder_;
167 scoped_refptr<MockVideoCaptureImplManager> vc_manager_; 167 scoped_refptr<MockVideoCaptureImplManager> vc_manager_;
168 scoped_ptr<ChildProcess> child_process_; 168 scoped_ptr<ChildProcess> child_process_;
169 scoped_ptr<MockVideoCaptureImpl> vc_impl_; 169 scoped_ptr<MockVideoCaptureImpl> vc_impl_;
170 media::MockStatisticsCB statistics_cb_object_; 170 media::MockStatisticsCB statistics_cb_object_;
171 scoped_ptr<MessageLoop> message_loop_; 171 scoped_ptr<MessageLoop> message_loop_;
172 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 172 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk, 220 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk,
221 HasSize(0, 0))).Times(2); 221 HasSize(0, 0))).Times(2);
222 decoder_->Read(read_cb_); 222 decoder_->Read(read_cb_);
223 decoder_->PrepareForShutdownHack(); 223 decoder_->PrepareForShutdownHack();
224 decoder_->Read(read_cb_); 224 decoder_->Read(read_cb_);
225 message_loop_->RunAllPending(); 225 message_loop_->RunAllPending();
226 226
227 Stop(); 227 Stop();
228 } 228 }
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698