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

Side by Side Diff: media/base/android/mock_media_codec_bridge.cc

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase redux Created 4 years, 2 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
OLDNEW
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"
xhwang 2016/10/20 23:52:07 OOC, why do you need this?
dougsteed 2016/10/21 17:15:05 incomplete type problems otherwise.
7 #include "media/base/subsample_entry.h" 8 #include "media/base/subsample_entry.h"
8 9
9 using ::testing::_; 10 using ::testing::_;
10 using ::testing::Return; 11 using ::testing::Return;
11 12
12 namespace media { 13 namespace media {
13 14
14 MockMediaCodecBridge::MockMediaCodecBridge() { 15 MockMediaCodecBridge::MockMediaCodecBridge() {
15 ON_CALL(*this, DequeueInputBuffer(_, _)) 16 ON_CALL(*this, DequeueInputBuffer(_, _))
16 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_INPUT_AGAIN_LATER)); 17 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_INPUT_AGAIN_LATER));
17 ON_CALL(*this, DequeueOutputBuffer(_, _, _, _, _, _, _)) 18 ON_CALL(*this, DequeueOutputBuffer(_, _, _, _, _, _, _))
18 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_OUTPUT_AGAIN_LATER)); 19 .WillByDefault(Return(MEDIA_CODEC_DEQUEUE_OUTPUT_AGAIN_LATER));
19 } 20 }
20 21
21 MockMediaCodecBridge::~MockMediaCodecBridge() {} 22 MockMediaCodecBridge::~MockMediaCodecBridge() {}
22 23
23 } // namespace media 24 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698