OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ |
| 6 #define MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ |
| 7 |
| 8 #include "media/video/video_encode_accelerator.h" |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 |
| 13 namespace media { |
| 14 |
| 15 class MockVideoEncodeAccelerator : public VideoEncodeAccelerator { |
| 16 public: |
| 17 MockVideoEncodeAccelerator(); |
| 18 virtual ~MockVideoEncodeAccelerator(); |
| 19 |
| 20 MOCK_METHOD0(GetSupportedProfiles, |
| 21 VideoEncodeAccelerator::SupportedProfiles()); |
| 22 MOCK_METHOD5(Initialize, |
| 23 bool(VideoPixelFormat input_format, |
| 24 const gfx::Size& input_visible_size, |
| 25 VideoCodecProfile output_profile, |
| 26 uint32_t initial_bitrate, |
| 27 VideoEncodeAccelerator::Client* client)); |
| 28 MOCK_METHOD2(Encode, |
| 29 void(const scoped_refptr<VideoFrame>& frame, |
| 30 bool force_keyframe)); |
| 31 MOCK_METHOD1(UseOutputBitstreamBuffer, void(const BitstreamBuffer& buffer)); |
| 32 MOCK_METHOD2(RequestEncodingParametersChange, |
| 33 void(uint32_t bitrate, uint32_t framerate)); |
| 34 MOCK_METHOD0(Destroy, void()); |
| 35 |
| 36 private: |
| 37 void DeleteThis(); |
| 38 DISALLOW_COPY_AND_ASSIGN(MockVideoEncodeAccelerator); |
| 39 }; |
| 40 |
| 41 } // namespace media |
| 42 |
| 43 #endif // MEDIA_VIDEO_MOCK_VIDEO_ENCODE_ACCELERATOR_H_ |
OLD | NEW |