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

Side by Side Diff: media/cast/video_sender/mock_video_encoder_controller.h

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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
16 MOCK_METHOD1(SetBitRate, void(int new_bit_rate)); 19 MOCK_METHOD1(SetBitRate, void(int new_bit_rate));
17 20
18 MOCK_METHOD1(SkipNextFrame, void(bool skip_next_frame)); 21 MOCK_METHOD1(SkipNextFrame, void(bool skip_next_frame));
19 22
20 MOCK_METHOD0(GenerateKeyFrame, void()); 23 MOCK_METHOD0(GenerateKeyFrame, void());
21 24
22 MOCK_METHOD1(LatestFrameIdToReference, void(uint8 frame_id)); 25 MOCK_METHOD1(LatestFrameIdToReference, void(uint8 frame_id));
23 26
24 MOCK_CONST_METHOD0(NumberOfSkippedFrames, int()); 27 MOCK_CONST_METHOD0(NumberOfSkippedFrames, int());
25 }; 28 };
26 29
27 } // namespace cast 30 } // namespace cast
28 } // namespace media 31 } // namespace media
29 32
30 #endif // MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_ 33 #endif // MEDIA_CAST_VIDEO_SENDER_MOCK_VIDEO_ENCODER_CONTROLLER_H_
31 34
OLDNEW
« no previous file with comments | « media/cast/video_sender/codecs/vp8/vp8_encoder.cc ('k') | media/cast/video_sender/mock_video_encoder_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698