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_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ | 5 #ifndef MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ |
6 #define MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ | 6 #define MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ |
7 | 7 |
8 #include "media/cast/cast_config.h" | 8 #include "media/cast/cast_config.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace media { | 11 namespace media { |
12 namespace cast { | 12 namespace cast { |
13 | 13 |
14 class MockVideoEncoderController : public VideoEncoderController { | 14 class MockVideoEncoderController : public VideoEncoderController { |
15 public: | 15 public: |
16 MockVideoEncoderController(); | |
17 virtual ~MockVideoEncoderController(); | |
18 | |
19 MOCK_METHOD1(SetBitRate, void(int new_bit_rate)); | 16 MOCK_METHOD1(SetBitRate, void(int new_bit_rate)); |
20 | 17 |
21 MOCK_METHOD1(SkipNextFrame, void(bool skip_next_frame)); | 18 MOCK_METHOD1(SkipNextFrame, void(bool skip_next_frame)); |
22 | 19 |
23 MOCK_METHOD0(GenerateKeyFrame, void()); | 20 MOCK_METHOD0(GenerateKeyFrame, void()); |
24 | 21 |
25 MOCK_METHOD1(LatestFrameIdToReference, void(uint8 frame_id)); | 22 MOCK_METHOD1(LatestFrameIdToReference, void(uint8 frame_id)); |
26 | 23 |
27 MOCK_CONST_METHOD0(NumberOfSkippedFrames, int()); | 24 MOCK_CONST_METHOD0(NumberOfSkippedFrames, int()); |
28 }; | 25 }; |
29 | 26 |
30 } // namespace cast | 27 } // namespace cast |
31 } // namespace media | 28 } // namespace media |
32 | 29 |
33 #endif // MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ | 30 #endif // MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ |
34 | 31 |
OLD | NEW |