Simple lint fixes

BUG=webrtc:5583

Review URL: https://codereview.webrtc.org/1919133002

Cr-Commit-Position: refs/heads/master@{#12506}
This commit is contained in:
terelius
2016-04-26 05:28:11 -07:00
committed by Commit bot
parent b67aba81e5
commit 8c011e5ae6
15 changed files with 44 additions and 40 deletions

View File

@ -101,4 +101,4 @@ rtc::Thread *AudioMonitor::monitor_thread() {
return monitoring_thread_; return monitoring_thread_;
} }
} } // namespace cricket

View File

@ -8,10 +8,12 @@
* 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.
*/ */
#ifndef TALK_SESSION_MEDIA_AUDIOMONITOR_H_ #ifndef WEBRTC_PC_AUDIOMONITOR_H_
#define TALK_SESSION_MEDIA_AUDIOMONITOR_H_ #define WEBRTC_PC_AUDIOMONITOR_H_
#include <vector> #include <vector>
#include <utility>
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
#include "webrtc/base/thread.h" #include "webrtc/base/thread.h"
#include "webrtc/p2p/base/port.h" #include "webrtc/p2p/base/port.h"
@ -53,6 +55,6 @@ class AudioMonitor : public rtc::MessageHandler,
bool monitoring_; bool monitoring_;
}; };
} } // namespace cricket
#endif // TALK_SESSION_MEDIA_AUDIOMONITOR_H_ #endif // WEBRTC_PC_AUDIOMONITOR_H_

View File

@ -8,8 +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.
*/ */
#ifndef TALK_SESSION_MEDIA_BUNDLEFILTER_H_ #ifndef WEBRTC_PC_BUNDLEFILTER_H_
#define TALK_SESSION_MEDIA_BUNDLEFILTER_H_ #define WEBRTC_PC_BUNDLEFILTER_H_
#include <stdint.h> #include <stdint.h>
@ -51,4 +51,4 @@ class BundleFilter {
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_ #endif // WEBRTC_PC_BUNDLEFILTER_H_

View File

@ -10,6 +10,8 @@
#include "webrtc/pc/currentspeakermonitor.h" #include "webrtc/pc/currentspeakermonitor.h"
#include <vector>
#include "webrtc/base/logging.h" #include "webrtc/base/logging.h"
#include "webrtc/media/base/streamparams.h" #include "webrtc/media/base/streamparams.h"
#include "webrtc/pc/audiomonitor.h" #include "webrtc/pc/audiomonitor.h"

View File

@ -11,8 +11,8 @@
// CurrentSpeakerMonitor monitors the audio levels for a session and determines // CurrentSpeakerMonitor monitors the audio levels for a session and determines
// which participant is currently speaking. // which participant is currently speaking.
#ifndef TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ #ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_
#define TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ #define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_
#include <map> #include <map>
@ -45,7 +45,7 @@ class AudioSourceContext {
// It's recommended that the audio monitor be started with a 100 ms period. // It's recommended that the audio monitor be started with a 100 ms period.
class CurrentSpeakerMonitor : public sigslot::has_slots<> { class CurrentSpeakerMonitor : public sigslot::has_slots<> {
public: public:
CurrentSpeakerMonitor(AudioSourceContext* audio_source_context); explicit CurrentSpeakerMonitor(AudioSourceContext* audio_source_context);
~CurrentSpeakerMonitor(); ~CurrentSpeakerMonitor();
void Start(); void Start();
@ -90,6 +90,6 @@ class CurrentSpeakerMonitor : public sigslot::has_slots<> {
uint32_t min_time_between_switches_; uint32_t min_time_between_switches_;
}; };
} } // namespace cricket
#endif // TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ #endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_

View File

@ -8,8 +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.
*/ */
#ifndef TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ #ifndef WEBRTC_PC_EXTERNALHMAC_H_
#define TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ #define WEBRTC_PC_EXTERNALHMAC_H_
// External libsrtp HMAC auth module which implements methods defined in // External libsrtp HMAC auth module which implements methods defined in
// auth_type_t. // auth_type_t.
@ -72,4 +72,4 @@ err_status_t external_hmac_compute(ExternalHmacContext* state,
err_status_t external_crypto_init(); err_status_t external_crypto_init();
#endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH)
#endif // TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ #endif // WEBRTC_PC_EXTERNALHMAC_H_

View File

@ -88,4 +88,4 @@ void MediaMonitor::PollMediaChannel() {
worker_thread_->PostDelayed(rate_, this, MSG_MONITOR_POLL); worker_thread_->PostDelayed(rate_, this, MSG_MONITOR_POLL);
} }
} } // namespace cricket

View File

@ -10,8 +10,8 @@
// Class to collect statistics from a media channel // Class to collect statistics from a media channel
#ifndef TALK_SESSION_MEDIA_MEDIAMONITOR_H_ #ifndef WEBRTC_PC_MEDIAMONITOR_H_
#define TALK_SESSION_MEDIA_MEDIAMONITOR_H_ #define WEBRTC_PC_MEDIAMONITOR_H_
#include "webrtc/base/criticalsection.h" #include "webrtc/base/criticalsection.h"
#include "webrtc/base/sigslot.h" #include "webrtc/base/sigslot.h"
@ -79,4 +79,4 @@ typedef MediaMonitorT<DataMediaChannel, DataMediaInfo> DataMediaMonitor;
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_MEDIAMONITOR_H_ #endif // WEBRTC_PC_MEDIAMONITOR_H_

View File

@ -46,7 +46,7 @@ void GetSupportedCryptoSuiteNames(void (*func)(std::vector<int>*),
} }
#endif #endif
} }
} } // namespace
namespace cricket { namespace cricket {

View File

@ -10,8 +10,8 @@
// Types and classes used in media session descriptions. // Types and classes used in media session descriptions.
#ifndef TALK_SESSION_MEDIA_MEDIASESSION_H_ #ifndef WEBRTC_PC_MEDIASESSION_H_
#define TALK_SESSION_MEDIA_MEDIASESSION_H_ #define WEBRTC_PC_MEDIASESSION_H_
#include <algorithm> #include <algorithm>
#include <map> #include <map>
@ -544,4 +544,4 @@ void GetDefaultSrtpCryptoSuiteNames(
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ #endif // WEBRTC_PC_MEDIASESSION_H_

View File

@ -8,8 +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.
*/ */
#ifndef TALK_SESSION_MEDIA_MEDIASINK_H_ #ifndef WEBRTC_PC_MEDIASINK_H_
#define TALK_SESSION_MEDIA_MEDIASINK_H_ #define WEBRTC_PC_MEDIASINK_H_
namespace cricket { namespace cricket {
@ -28,4 +28,4 @@ class MediaSinkInterface {
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_MEDIASINK_H_ #endif // WEBRTC_PC_MEDIASINK_H_

View File

@ -8,8 +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.
*/ */
#ifndef TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ #ifndef WEBRTC_PC_RTCPMUXFILTER_H_
#define TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ #define WEBRTC_PC_RTCPMUXFILTER_H_
#include "webrtc/base/basictypes.h" #include "webrtc/base/basictypes.h"
#include "webrtc/p2p/base/sessiondescription.h" #include "webrtc/p2p/base/sessiondescription.h"
@ -69,4 +69,4 @@ class RtcpMuxFilter {
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ #endif // WEBRTC_PC_RTCPMUXFILTER_H_

View File

@ -8,8 +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.
*/ */
#ifndef TALK_SESSION_MEDIA_SRTPFILTER_H_ #ifndef WEBRTC_PC_SRTPFILTER_H_
#define TALK_SESSION_MEDIA_SRTPFILTER_H_ #define WEBRTC_PC_SRTPFILTER_H_
#include <list> #include <list>
#include <map> #include <map>
@ -310,4 +310,4 @@ class SrtpStat {
} // namespace cricket } // namespace cricket
#endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ #endif // WEBRTC_PC_SRTPFILTER_H_

View File

@ -8,9 +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.
*/ */
#ifndef _VOICECHANNEL_H_ #ifndef WEBRTC_PC_VOICECHANNEL_H_
#define _VOICECHANNEL_H_ #define WEBRTC_PC_VOICECHANNEL_H_
#include "webrtc/pc/channel.h" #include "webrtc/pc/channel.h"
#endif // _VOICECHANNEL_H_ #endif // WEBRTC_PC_VOICECHANNEL_H_