Enable cpplint for webrtc/audio and webrtc/call, and fix all uncovered cpplint errors.
BUG=webrtc:5268,webrtc:5273 TESTED=Fixed issues reported by: find webrtc/audio -type f -name *.cc -o -name *.h | xargs cpplint.py find webrtc/call -type f -name *.cc -o -name *.h | xargs cpplint.py followed by 'git cl presubmit'. R=kjellander@webrtc.org, pbos@webrtc.org Review URL: https://codereview.webrtc.org/1483323002 . Cr-Commit-Position: refs/heads/master@{#10853}
This commit is contained in:
@ -16,6 +16,8 @@ import sys
|
|||||||
|
|
||||||
# Directories that will be scanned by cpplint by the presubmit script.
|
# Directories that will be scanned by cpplint by the presubmit script.
|
||||||
CPPLINT_DIRS = [
|
CPPLINT_DIRS = [
|
||||||
|
'webrtc/audio',
|
||||||
|
'webrtc/call',
|
||||||
'webrtc/video_engine',
|
'webrtc/video_engine',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
|
||||||
#include "webrtc/audio/audio_receive_stream.h"
|
#include "webrtc/audio/audio_receive_stream.h"
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
|
||||||
#include "webrtc/audio/audio_send_stream.h"
|
#include "webrtc/audio/audio_send_stream.h"
|
||||||
|
@ -126,7 +126,7 @@ class Call : public webrtc::Call, public PacketReceiver,
|
|||||||
Call::Config config_;
|
Call::Config config_;
|
||||||
rtc::ThreadChecker configuration_thread_checker_;
|
rtc::ThreadChecker configuration_thread_checker_;
|
||||||
|
|
||||||
bool network_enabled_;
|
bool network_enabled_;
|
||||||
|
|
||||||
rtc::scoped_ptr<RWLockWrapper> receive_crit_;
|
rtc::scoped_ptr<RWLockWrapper> receive_crit_;
|
||||||
// Audio and Video receive streams are owned by the client that creates them.
|
// Audio and Video receive streams are owned by the client that creates them.
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#ifdef ENABLE_RTC_EVENT_LOG
|
#ifdef ENABLE_RTC_EVENT_LOG
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "testing/gtest/include/gtest/gtest.h"
|
#include "testing/gtest/include/gtest/gtest.h"
|
||||||
|
Reference in New Issue
Block a user