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

Side by Side Diff: media/filters/decrypting_video_decoder_unittest.cc

Issue 14348007: Reland: Remove reference counting from media::VideoDecoder and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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 | « media/filters/decrypting_video_decoder.cc ('k') | media/filters/ffmpeg_video_decoder.h » ('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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 decoder_->Stop(NewExpectedClosure()); 228 decoder_->Stop(NewExpectedClosure());
229 message_loop_.RunUntilIdle(); 229 message_loop_.RunUntilIdle();
230 } 230 }
231 231
232 MOCK_METHOD1(RequestDecryptorNotification, void(const DecryptorReadyCB&)); 232 MOCK_METHOD1(RequestDecryptorNotification, void(const DecryptorReadyCB&));
233 233
234 MOCK_METHOD2(FrameReady, void(VideoDecoder::Status, 234 MOCK_METHOD2(FrameReady, void(VideoDecoder::Status,
235 const scoped_refptr<VideoFrame>&)); 235 const scoped_refptr<VideoFrame>&));
236 236
237 MessageLoop message_loop_; 237 MessageLoop message_loop_;
238 scoped_refptr<DecryptingVideoDecoder> decoder_; 238 scoped_ptr<DecryptingVideoDecoder> decoder_;
239 scoped_ptr<StrictMock<MockDecryptor> > decryptor_; 239 scoped_ptr<StrictMock<MockDecryptor> > decryptor_;
240 scoped_refptr<StrictMock<MockDemuxerStream> > demuxer_; 240 scoped_refptr<StrictMock<MockDemuxerStream> > demuxer_;
241 MockStatisticsCB statistics_cb_; 241 MockStatisticsCB statistics_cb_;
242 VideoDecoderConfig config_; 242 VideoDecoderConfig config_;
243 243
244 DemuxerStream::ReadCB pending_demuxer_read_cb_; 244 DemuxerStream::ReadCB pending_demuxer_read_cb_;
245 Decryptor::DecoderInitCB pending_init_cb_; 245 Decryptor::DecoderInitCB pending_init_cb_;
246 Decryptor::NewKeyCB key_added_cb_; 246 Decryptor::NewKeyCB key_added_cb_;
247 Decryptor::VideoDecodeCB pending_video_decode_cb_; 247 Decryptor::VideoDecodeCB pending_video_decode_cb_;
248 248
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 // Test stopping after the decoder has been stopped. 707 // Test stopping after the decoder has been stopped.
708 TEST_F(DecryptingVideoDecoderTest, Stop_AfterStop) { 708 TEST_F(DecryptingVideoDecoderTest, Stop_AfterStop) {
709 Initialize(); 709 Initialize();
710 EnterNormalDecodingState(); 710 EnterNormalDecodingState();
711 Stop(); 711 Stop();
712 Stop(); 712 Stop();
713 } 713 }
714 714
715 } // namespace media 715 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | media/filters/ffmpeg_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698