OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include "video_decode_accelerator.h" | 8 #include "video_decode_accelerator.h" |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~MockVideoDecodeAccelerator(); | 25 virtual ~MockVideoDecodeAccelerator(); |
26 | 26 |
27 MOCK_METHOD2(Initialize, bool(VideoCodecProfile profile, Client* client)); | 27 MOCK_METHOD2(Initialize, bool(VideoCodecProfile profile, Client* client)); |
28 MOCK_METHOD1(Decode, void(const BitstreamBuffer& bitstream_buffer)); | 28 MOCK_METHOD1(Decode, void(const BitstreamBuffer& bitstream_buffer)); |
29 MOCK_METHOD1(AssignPictureBuffers, | 29 MOCK_METHOD1(AssignPictureBuffers, |
30 void(const std::vector<PictureBuffer>& buffers)); | 30 void(const std::vector<PictureBuffer>& buffers)); |
31 MOCK_METHOD1(ReusePictureBuffer, void(int32 picture_buffer_id)); | 31 MOCK_METHOD1(ReusePictureBuffer, void(int32 picture_buffer_id)); |
32 MOCK_METHOD0(Flush, void()); | 32 MOCK_METHOD0(Flush, void()); |
33 MOCK_METHOD0(Reset, void()); | 33 MOCK_METHOD0(Reset, void()); |
34 MOCK_METHOD0(Destroy, void()); | 34 MOCK_METHOD0(Destroy, void()); |
35 MOCK_METHOD0(CanDecodeOnIOThread, bool()); | |
36 | 35 |
37 private: | 36 private: |
38 void DeleteThis(); | 37 void DeleteThis(); |
39 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator); | 38 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace media | 41 } // namespace media |
43 | 42 |
44 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ | 43 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |