Enable cpplint in media/

Bug: webrtc:5584
Change-Id: I2fd1395d35596d9002e19cc90fcda3a5d4cde9e7
Reviewed-on: https://webrtc-review.googlesource.com/16564
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20504}
This commit is contained in:
Steve Anton
2017-10-31 09:53:08 -07:00
committed by Commit Bot
parent 7995d8cdde
commit e78bcb97c3
42 changed files with 84 additions and 41 deletions

View File

@ -30,7 +30,7 @@ class AdaptedVideoTrackSource
protected:
// Allows derived classes to initialize |video_adapter_| with a custom
// alignment.
AdaptedVideoTrackSource(int required_alignment);
explicit AdaptedVideoTrackSource(int required_alignment);
// Checks the apply_rotation() flag. If the frame needs rotation, and it is a
// plain memory frame, it is rotated. Subclasses producing native frames must
// handle apply_rotation() themselves.

View File

@ -229,9 +229,9 @@ TEST(CodecTest, TestIntersectFeedbackParams) {
const FeedbackParam b3("b", "3");
const FeedbackParam c3("c", "3");
TestCodec c1;
c1.AddFeedbackParam(a1); // Only match with c2.
c1.AddFeedbackParam(b2); // Same param different values.
c1.AddFeedbackParam(c3); // Not in c2.
c1.AddFeedbackParam(a1); // Only match with c2.
c1.AddFeedbackParam(b2); // Same param different values.
c1.AddFeedbackParam(c3); // Not in c2.
TestCodec c2;
c2.AddFeedbackParam(a1);
c2.AddFeedbackParam(b3);

View File

@ -11,6 +11,8 @@
#ifndef MEDIA_BASE_DEVICE_H_
#define MEDIA_BASE_DEVICE_H_
#include <string>
#include "rtc_base/stringencode.h"
namespace cricket {

View File

@ -16,6 +16,8 @@
#include <memory>
#include <set>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "api/call/audio_sink.h"
@ -948,8 +950,6 @@ inline FakeVideoMediaChannel::~FakeVideoMediaChannel() {
class FakeDataEngine : public DataEngineInterface {
public:
FakeDataEngine(){};
virtual DataMediaChannel* CreateChannel(const MediaConfig& config) {
FakeDataMediaChannel* ch = new FakeDataMediaChannel(this, DataOptions());
channels_.push_back(ch);

View File

@ -12,6 +12,7 @@
#define MEDIA_BASE_FAKENETWORKINTERFACE_H_
#include <map>
#include <set>
#include <vector>
#include "media/base/mediachannel.h"

View File

@ -11,6 +11,7 @@
#ifndef MEDIA_BASE_MEDIACHANNEL_H_
#define MEDIA_BASE_MEDIACHANNEL_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
@ -1223,7 +1224,7 @@ class DataMediaChannel : public MediaChannel {
};
DataMediaChannel() {}
DataMediaChannel(const MediaConfig& config) : MediaChannel(config) {}
explicit DataMediaChannel(const MediaConfig& config) : MediaChannel(config) {}
virtual ~DataMediaChannel() {}
virtual bool SetSendParameters(const DataSendParameters& params) = 0;

View File

@ -16,6 +16,8 @@
#endif
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "api/audio_codecs/audio_decoder_factory.h"

View File

@ -10,6 +10,8 @@
#include "media/base/rtpdataengine.h"
#include <map>
#include "media/base/codec.h"
#include "media/base/mediaconstants.h"
#include "media/base/rtputils.h"

View File

@ -11,6 +11,7 @@
#ifndef MEDIA_BASE_RTPDATAENGINE_H_
#define MEDIA_BASE_RTPDATAENGINE_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
@ -61,7 +62,7 @@ class RtpClock {
class RtpDataMediaChannel : public DataMediaChannel {
public:
RtpDataMediaChannel(const MediaConfig& config);
explicit RtpDataMediaChannel(const MediaConfig& config);
virtual ~RtpDataMediaChannel();
virtual bool SetSendParameters(const DataSendParameters& params);

View File

@ -114,7 +114,7 @@ void UpdateRtpAuthTag(uint8_t* rtp,
memcpy(auth_tag, output, tag_length);
}
}
} // namespace
bool GetUint8(const void* data, size_t offset, int* value) {
if (!data || !value) {

View File

@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include <vector>
#include "media/base/rtputils.h"
#include "media/base/fakertp.h"
#include "rtc_base/asyncpacketsocket.h"

View File

@ -14,6 +14,7 @@
#include <cmath>
#include <cstdlib>
#include <limits>
#include <utility>
#include "api/optional.h"
#include "media/base/mediaconstants.h"

View File

@ -10,6 +10,7 @@
#include <limits.h> // For INT_MAX
#include <limits>
#include <memory>
#include <string>
#include <vector>

View File

@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include <limits>
#include "media/base/videobroadcaster.h"
#include "api/video/i420_buffer.h"
#include "api/video/video_frame.h"

View File

@ -10,7 +10,7 @@
// Common definition for video, including fourcc and VideoFormat.
#ifndef MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT
#ifndef MEDIA_BASE_VIDEOCOMMON_H_
#define MEDIA_BASE_VIDEOCOMMON_H_
#include <stdint.h>
@ -226,4 +226,4 @@ struct VideoFormat : VideoFormatPod {
} // namespace cricket
#endif // MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT
#endif // MEDIA_BASE_VIDEOCOMMON_H_

View File

@ -26,7 +26,7 @@ class VideoSinkInterface {
// Should be called by the source when it discards the frame due to rate
// limiting.
virtual void OnDiscardedFrame(){};
virtual void OnDiscardedFrame() {}
};
} // namespace rtc

View File

@ -11,6 +11,8 @@
#ifndef MEDIA_BASE_VIDEOSOURCEINTERFACE_H_
#define MEDIA_BASE_VIDEOSOURCEINTERFACE_H_
#include <limits>
#include "api/optional.h"
#include "media/base/videosinkinterface.h"