OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/base/android/mock_media_codec_bridge.h" | 5 #include "media/base/android/mock_media_codec_bridge.h" |
6 | 6 |
7 #include "media/base/encryption_scheme.h" | 7 #include "media/base/encryption_scheme.h" |
8 #include "media/base/subsample_entry.h" | 8 #include "media/base/subsample_entry.h" |
9 | 9 |
10 using ::testing::_; | 10 using ::testing::_; |
11 using ::testing::Return; | 11 using ::testing::Return; |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 MockMediaCodecBridge::MockMediaCodecBridge() { | 15 MockMediaCodecBridge::MockMediaCodecBridge() { |
16 ON_CALL(*this, DequeueInputBuffer(_, _)) | 16 ON_CALL(*this, DequeueInputBuffer(_, _)) |
17 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_INPUT_AGAIN_LATER)); | 17 .WillByDefault(Return(MEDIA_CODEC_TRY_AGAIN_LATER)); |
18 ON_CALL(*this, DequeueOutputBuffer(_, _, _, _, _, _, _)) | 18 ON_CALL(*this, DequeueOutputBuffer(_, _, _, _, _, _, _)) |
19 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_OUTPUT_AGAIN_LATER)); | 19 .WillByDefault(Return(MEDIA_CODEC_TRY_AGAIN_LATER)); |
20 } | 20 } |
21 | 21 |
22 MockMediaCodecBridge::~MockMediaCodecBridge() {} | |
23 | |
24 } // namespace media | 22 } // namespace media |
OLD | NEW |