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

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

Issue 11316293: Replace WaitableEvents and ConditionalVariables in VideoRendererBase tests with MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bustage Created 8 years 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
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"
11 #include "media/base/buffers.h" 11 #include "media/base/buffers.h"
12 #include "media/base/data_buffer.h" 12 #include "media/base/data_buffer.h"
13 #include "media/base/decoder_buffer.h" 13 #include "media/base/decoder_buffer.h"
14 #include "media/base/decrypt_config.h" 14 #include "media/base/decrypt_config.h"
15 #include "media/base/gmock_callback_support.h" 15 #include "media/base/gmock_callback_support.h"
16 #include "media/base/mock_callback.h"
17 #include "media/base/mock_filters.h" 16 #include "media/base/mock_filters.h"
17 #include "media/base/test_helpers.h"
18 #include "media/filters/decrypting_audio_decoder.h" 18 #include "media/filters/decrypting_audio_decoder.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 20
21 using ::testing::_; 21 using ::testing::_;
22 using ::testing::AtMost; 22 using ::testing::AtMost;
23 using ::testing::IsNull; 23 using ::testing::IsNull;
24 using ::testing::ReturnRef; 24 using ::testing::ReturnRef;
25 using ::testing::SaveArg; 25 using ::testing::SaveArg;
26 using ::testing::StrictMock; 26 using ::testing::StrictMock;
27 27
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 EXPECT_CALL(*demuxer_, Read(_)) 466 EXPECT_CALL(*demuxer_, Read(_))
467 .WillOnce(RunCallback<0>(DemuxerStream::kConfigChanged, 467 .WillOnce(RunCallback<0>(DemuxerStream::kConfigChanged,
468 scoped_refptr<DecoderBuffer>())); 468 scoped_refptr<DecoderBuffer>()));
469 469
470 // TODO(xhwang): Update this test when kConfigChanged is supported in 470 // TODO(xhwang): Update this test when kConfigChanged is supported in
471 // DecryptingAudioDecoder. 471 // DecryptingAudioDecoder.
472 ReadAndExpectFrameReadyWith(AudioDecoder::kDecodeError, NULL); 472 ReadAndExpectFrameReadyWith(AudioDecoder::kDecodeError, NULL);
473 } 473 }
474 474
475 } // namespace media 475 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/decrypting_demuxer_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698