OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |