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

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

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: OnOverlayTransition => OnSurfaceTransition Created 3 years, 7 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 #ifndef MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_
7 7
8 #include "base/memory/weak_ptr.h"
DaleCurtis 2017/04/27 22:01:11 Drop.
liberato (no reviews please) 2017/04/27 23:17:05 Done.
8 #include "media/base/android/media_codec_bridge.h" 9 #include "media/base/android/media_codec_bridge.h"
10 #include "media/base/android/test_destruction_observable.h"
9 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace media { 14 namespace media {
13 15
14 class MockMediaCodecBridge : public MediaCodecBridge { 16 class MockMediaCodecBridge : public MediaCodecBridge,
17 public DestructionObservable {
15 public: 18 public:
16 MockMediaCodecBridge(); 19 MockMediaCodecBridge();
17 ~MockMediaCodecBridge() override; 20 ~MockMediaCodecBridge() override;
18 MOCK_METHOD0(Stop, void()); 21 MOCK_METHOD0(Stop, void());
19 MOCK_METHOD0(Flush, MediaCodecStatus()); 22 MOCK_METHOD0(Flush, MediaCodecStatus());
20 MOCK_METHOD1(GetOutputSize, MediaCodecStatus(gfx::Size* size)); 23 MOCK_METHOD1(GetOutputSize, MediaCodecStatus(gfx::Size* size));
21 MOCK_METHOD1(GetOutputSamplingRate, MediaCodecStatus(int* sampling_rate)); 24 MOCK_METHOD1(GetOutputSamplingRate, MediaCodecStatus(int* sampling_rate));
22 MOCK_METHOD1(GetOutputChannelCount, MediaCodecStatus(int* channel_count)); 25 MOCK_METHOD1(GetOutputChannelCount, MediaCodecStatus(int* channel_count));
23 MOCK_METHOD4(QueueInputBuffer, 26 MOCK_METHOD4(QueueInputBuffer,
24 MediaCodecStatus(int index, 27 MediaCodecStatus(int index,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 MOCK_METHOD0(GetName, std::string()); 59 MOCK_METHOD0(GetName, std::string());
57 MOCK_METHOD1(SetSurface, bool(jobject surface)); 60 MOCK_METHOD1(SetSurface, bool(jobject surface));
58 MOCK_METHOD2(SetVideoBitrate, void(int bps, int frame_rate)); 61 MOCK_METHOD2(SetVideoBitrate, void(int bps, int frame_rate));
59 MOCK_METHOD0(RequestKeyFrameSoon, void()); 62 MOCK_METHOD0(RequestKeyFrameSoon, void());
60 MOCK_METHOD0(IsAdaptivePlaybackSupported, bool()); 63 MOCK_METHOD0(IsAdaptivePlaybackSupported, bool());
61 }; 64 };
62 65
63 } // namespace media 66 } // namespace media
64 67
65 #endif // MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_ 68 #endif // MEDIA_BASE_ANDROID_MOCK_MEDIA_CODEC_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698