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> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "media/base/bitstream_buffer.h" | 13 #include "media/base/bitstream_buffer.h" |
13 #include "media/base/video_decoder_config.h" | 14 #include "media/base/video_decoder_config.h" |
14 #include "media/video/picture.h" | 15 #include "media/video/picture.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 | 17 |
17 namespace media { | 18 namespace media { |
18 | 19 |
19 // Remember to use the default action of Destroy() when using EXPECT_CALL. | 20 // Remember to use the default action of Destroy() when using EXPECT_CALL. |
20 // Otherwise, the mock will be leaked and the test runner will complain. | 21 // Otherwise, the mock will be leaked and the test runner will complain. |
21 class MockVideoDecodeAccelerator : public VideoDecodeAccelerator { | 22 class MockVideoDecodeAccelerator : public VideoDecodeAccelerator { |
(...skipping 12 matching lines...) Expand all Loading... |
34 MOCK_METHOD0(CanDecodeOnIOThread, bool()); | 35 MOCK_METHOD0(CanDecodeOnIOThread, bool()); |
35 | 36 |
36 private: | 37 private: |
37 void DeleteThis(); | 38 void DeleteThis(); |
38 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator); | 39 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator); |
39 }; | 40 }; |
40 | 41 |
41 } // namespace media | 42 } // namespace media |
42 | 43 |
43 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ | 44 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |