From b8b6fbb7a5d2f5a14f7f6f81c253747aa28e4c7f Mon Sep 17 00:00:00 2001 From: danilchap Date: Thu, 10 Dec 2015 05:05:27 -0800 Subject: [PATCH] lint build/include errors fixed in rtp_rtcp module BUG=webrtc:5277 R=mflodman Review URL: https://codereview.webrtc.org/1505993003 Cr-Commit-Position: refs/heads/master@{#10971} --- webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h | 2 ++ webrtc/modules/rtp_rtcp/include/rtp_rtcp.h | 1 + webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h | 4 ++++ webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.h | 2 +- webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h | 1 + webrtc/modules/rtp_rtcp/source/rtcp_packet.cc | 2 ++ webrtc/modules/rtp_rtcp/source/rtcp_packet.h | 2 +- .../source/rtcp_packet/extended_jitter_report.cc | 2 +- webrtc/modules/rtp_rtcp/source/rtcp_receiver.h | 2 +- webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h | 2 ++ webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc | 9 ++++----- webrtc/modules/rtp_rtcp/source/rtcp_sender.cc | 1 + webrtc/modules/rtp_rtcp/source/rtcp_sender.h | 1 + webrtc/modules/rtp_rtcp/source/rtcp_utility.cc | 3 +-- webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc | 2 ++ webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h | 2 ++ webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc | 3 +++ webrtc/modules/rtp_rtcp/source/rtp_sender.cc | 1 + webrtc/modules/rtp_rtcp/source/rtp_sender.h | 5 +++-- webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc | 6 ++++-- webrtc/modules/rtp_rtcp/source/rtp_utility.cc | 2 +- webrtc/modules/rtp_rtcp/source/rtp_utility.h | 4 +++- webrtc/modules/rtp_rtcp/source/tmmbr_help.cc | 4 +++- webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc | 2 +- webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc | 3 ++- 25 files changed, 48 insertions(+), 20 deletions(-) diff --git a/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h b/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h index c2f467af35..1e2ae0db84 100644 --- a/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h +++ b/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h @@ -11,6 +11,8 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_PAYLOAD_REGISTRY_H_ #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_PAYLOAD_REGISTRY_H_ +#include + #include "webrtc/base/scoped_ptr.h" #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h" #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" diff --git a/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h b/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h index 39aeba2f47..a65f573337 100644 --- a/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h +++ b/webrtc/modules/rtp_rtcp/include/rtp_rtcp.h @@ -12,6 +12,7 @@ #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ #include +#include #include #include "webrtc/modules/include/module.h" diff --git a/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h b/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h index ca5434ee6d..04abb31bfe 100644 --- a/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h +++ b/webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h @@ -11,6 +11,10 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ #define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ +#include +#include +#include + #include "testing/gmock/include/gmock/gmock.h" #include "webrtc/modules/include/module.h" diff --git a/webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.h b/webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.h index 53ef2a61f4..28276afb72 100644 --- a/webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.h +++ b/webrtc/modules/rtp_rtcp/source/h264_bitstream_parser.h @@ -11,8 +11,8 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ -#include #include +#include namespace rtc { class BitBuffer; diff --git a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h index 0cd80125da..b3ef287a1d 100644 --- a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h +++ b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h @@ -14,6 +14,7 @@ #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" #include +#include #include "webrtc/base/scoped_ptr.h" #include "webrtc/modules/rtp_rtcp/source/bitrate.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc index e31f7487f3..cae479e39d 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc @@ -10,6 +10,8 @@ #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" +#include + #include "webrtc/base/checks.h" #include "webrtc/base/logging.h" #include "webrtc/modules/rtp_rtcp/source/byte_io.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h index 5f9e8a8927..039d02d36b 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h @@ -17,10 +17,10 @@ #include #include "webrtc/base/scoped_ptr.h" +#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rrtr.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" -#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "webrtc/typedefs.h" namespace webrtc { diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_jitter_report.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_jitter_report.cc index dfdf232102..030f9f81fa 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_jitter_report.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_jitter_report.cc @@ -12,8 +12,8 @@ #include "webrtc/base/checks.h" #include "webrtc/base/logging.h" -#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" #include "webrtc/modules/rtp_rtcp/source/byte_io.h" +#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" using webrtc::RTCPUtility::RtcpCommonHeader; diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h b/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h index fc43de5e70..a22fd81b85 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h @@ -12,8 +12,8 @@ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ #include -#include #include +#include #include "webrtc/base/thread_annotations.h" #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h index a697fd2e30..a792841962 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h @@ -11,6 +11,8 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ +#include +#include #include "webrtc/base/constructormagic.h" #include "webrtc/base/scoped_ptr.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc index c27dfa5f9c..4baf6f63c8 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc @@ -15,22 +15,21 @@ #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" -// Note: This file has no directory. Lint warning must be ignored. #include "webrtc/common_types.h" #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h" #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h" #include "webrtc/modules/rtp_rtcp/source/byte_io.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" -#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" -#include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" -#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" -#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_jitter_report.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/pli.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" +#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" +#include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" +#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" +#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" namespace webrtc { diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc index 9f3e66e58d..ddf24ab786 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc @@ -16,6 +16,7 @@ #include // min #include // max +#include #include "webrtc/base/checks.h" #include "webrtc/base/logging.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_sender.h b/webrtc/modules/rtp_rtcp/source/rtcp_sender.h index 7bf1ec883c..fcb9012887 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_sender.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_sender.h @@ -15,6 +15,7 @@ #include #include #include +#include #include "webrtc/base/scoped_ptr.h" #include "webrtc/base/thread_annotations.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_utility.cc b/webrtc/modules/rtp_rtcp/source/rtcp_utility.cc index d2b80438cc..eb44a870ba 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_utility.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_utility.cc @@ -8,9 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include "webrtc/base/checks.h" #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" -#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" #include #include // ceil @@ -19,6 +17,7 @@ #include "webrtc/base/checks.h" #include "webrtc/base/logging.h" #include "webrtc/modules/rtp_rtcp/source/byte_io.h" +#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" namespace webrtc { diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc b/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc index aa941d63ff..49f9d8530a 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc @@ -13,6 +13,8 @@ #include #include #include // memset + +#include #include #include diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h index ada66673ad..a65289c708 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h +++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h @@ -12,6 +12,8 @@ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ #include +#include +#include #include #include "webrtc/base/scoped_ptr.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc index 2576e321e8..f975ededdc 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc @@ -8,6 +8,9 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include +#include + #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc index d004cd8d4f..152293a564 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc @@ -11,6 +11,7 @@ #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" #include // srand +#include #include #include "webrtc/base/checks.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.h b/webrtc/modules/rtp_rtcp/source/rtp_sender.h index ec13f44ef5..30ac20489c 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_sender.h +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.h @@ -10,10 +10,11 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ -#include -#include +#include #include +#include +#include #include "webrtc/base/thread_annotations.h" #include "webrtc/common_types.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc index dcae547b1c..80967b2966 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc @@ -12,9 +12,11 @@ * This file includes unit tests for the RTPSender. */ +#include +#include + #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" - #include "webrtc/base/buffer.h" #include "webrtc/base/scoped_ptr.h" #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" @@ -24,8 +26,8 @@ #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" #include "webrtc/modules/rtp_rtcp/source/rtp_sender_video.h" -#include "webrtc/system_wrappers/include/stl_util.h" #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" +#include "webrtc/system_wrappers/include/stl_util.h" #include "webrtc/test/mock_transport.h" #include "webrtc/typedefs.h" diff --git a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc index e32fc988be..fcd43ad197 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc @@ -17,7 +17,7 @@ #if defined(_WIN32) // Order for these headers are important #include // timeval -#include // FILETIME +#include // FILETIME NOLINT(build/include_alpha) #include // timeGetTime #elif ((defined WEBRTC_LINUX) || (defined WEBRTC_MAC)) #include // gettimeofday diff --git a/webrtc/modules/rtp_rtcp/source/rtp_utility.h b/webrtc/modules/rtp_rtcp/source/rtp_utility.h index 1c615e66e7..7582f3a98a 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.h +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.h @@ -13,8 +13,10 @@ #include // size_t, ptrdiff_t -#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" +#include + #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" +#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h" #include "webrtc/typedefs.h" diff --git a/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc b/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc index fb1ed625ed..f994ff7049 100644 --- a/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc +++ b/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc @@ -11,8 +11,10 @@ #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" #include -#include #include + +#include + #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h" namespace webrtc { diff --git a/webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc b/webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc index 68472856ce..d67d78d67a 100644 --- a/webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc +++ b/webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc @@ -17,7 +17,7 @@ #include #ifdef MATLAB -#include "engine.h" +#include "engine.h" // NOLINT(build/include) #endif #include "webrtc/system_wrappers/include/critical_section_wrapper.h" diff --git a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc index 0270e55802..d245d103b8 100644 --- a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc +++ b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc @@ -9,11 +9,12 @@ */ #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" -#include "webrtc/test/null_transport.h" #include #include +#include "webrtc/test/null_transport.h" + using namespace webrtc; namespace webrtc {