Unverified 提交 ecf5b788 authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi 提交者: GitHub

Move header includes (#608)

上级 8d41bbae
......@@ -129,7 +129,7 @@
[
'libwebrtc',
'../../include',
'../json/single_include/nlohmann'
'../json/single_include'
],
'conditions':
[
......
......@@ -3,7 +3,7 @@
#include "common.hpp"
#include "Channel/ChannelSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
namespace Channel
......
......@@ -2,7 +2,7 @@
#define MS_CHANNEL_REQUEST_HPP
#include "common.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -4,7 +4,7 @@
#include "common.hpp"
#include "Channel/ChannelRequest.hpp"
#include "handles/UnixStreamSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
namespace Channel
{
......
......@@ -2,7 +2,7 @@
#define MS_PAYLOAD_CHANNEL_NOTIFICATION_HPP
#include "common.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -3,7 +3,7 @@
#include "common.hpp"
#include "PayloadChannel/PayloadChannelSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
namespace PayloadChannel
......
......@@ -2,7 +2,7 @@
#define MS_PAYLOAD_CHANNEL_REQUEST_HPP
#include "common.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -5,7 +5,7 @@
#include "PayloadChannel/Notification.hpp"
#include "PayloadChannel/PayloadChannelRequest.hpp"
#include "handles/UnixStreamSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
namespace PayloadChannel
{
......
......@@ -3,7 +3,7 @@
#include "RTC/RtpObserver.hpp"
#include "handles/Timer.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <unordered_map>
using json = nlohmann::json;
......
......@@ -14,7 +14,7 @@
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamSend.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_set>
#include <vector>
......
......@@ -5,7 +5,7 @@
#include "Channel/ChannelRequest.hpp"
#include "PayloadChannel/PayloadChannelRequest.hpp"
#include "RTC/SctpDictionaries.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
namespace RTC
......
......@@ -4,7 +4,7 @@
#include "common.hpp"
#include "Channel/ChannelRequest.hpp"
#include "RTC/SctpDictionaries.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
namespace RTC
......
......@@ -4,7 +4,7 @@
#include "common.hpp"
#include "RTC/TcpServer.hpp"
#include "RTC/UdpSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
using json = nlohmann::json;
......
......@@ -2,7 +2,7 @@
#define MS_RTC_PARAMETERS_HPP
#include "common.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
#include <vector>
......
......@@ -3,8 +3,8 @@
#include "common.hpp"
#include "Settings.hpp"
#include <json.hpp>
#include <uv.h>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
#include <vector>
......
......@@ -12,8 +12,8 @@
#include "RTC/RtpHeaderExtensionIds.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStreamRecv.hpp"
#include <json.hpp>
#include <map>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
......
......@@ -13,7 +13,7 @@
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/Transport.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
#include <unordered_set>
......
......@@ -3,8 +3,8 @@
#include "common.hpp"
#include "RTC/Parameters.hpp"
#include <json.hpp>
#include <map>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
#include <vector>
......
......@@ -4,7 +4,7 @@
#include "common.hpp"
#include "RTC/Producer.hpp"
#include "RTC/RtpPacket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -4,8 +4,8 @@
#include "common.hpp"
#include "Utils.hpp"
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include <json.hpp>
#include <map>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
......
......@@ -12,7 +12,7 @@
#include "RTC/RTCP/SenderReport.hpp"
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtxStream.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
......
......@@ -8,7 +8,7 @@
#include "RTC/RTCP/SenderReport.hpp"
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpPacket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
using json = nlohmann::json;
......
......@@ -5,8 +5,8 @@
#include "Utils.hpp"
#include "RTC/DataConsumer.hpp"
#include "RTC/DataProducer.hpp"
#include <json.hpp>
#include <usrsctp.h>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
......
......@@ -2,7 +2,7 @@
#define MS_RTC_SCTP_DICTIONARIES_HPP
#include "common.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
using json = nlohmann::json;
......
......@@ -3,7 +3,7 @@
#include "common.hpp"
#include "RTC/DataProducer.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <unordered_map>
using json = nlohmann::json;
......
......@@ -26,7 +26,7 @@
#include "RTC/TransportCongestionControlClient.hpp"
#include "RTC/TransportCongestionControlServer.hpp"
#include "handles/Timer.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -5,7 +5,7 @@
#include "Utils.hpp"
#include "RTC/TcpConnection.hpp"
#include "RTC/UdpSocket.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
using json = nlohmann::json;
......
......@@ -2,10 +2,10 @@
#define MS_UTILS_HPP
#include "common.hpp"
#include <json.hpp>
#include <openssl/hmac.h>
#include <cmath>
#include <cstring> // std::memcmp(), std::memcpy()
#include <nlohmann/json.hpp>
#include <string>
#ifdef _WIN32
#include <ws2ipdef.h>
......
......@@ -9,7 +9,7 @@
#include "PayloadChannel/PayloadChannelSocket.hpp"
#include "RTC/Router.hpp"
#include "handles/SignalsHandler.hpp"
#include <json.hpp>
#include <nlohmann/json.hpp>
#include <string>
#include <unordered_map>
......
......@@ -240,7 +240,7 @@
'include_dirs':
[
'include',
'deps/json/single_include/nlohmann'
'deps/json/single_include'
],
'conditions':
[
......@@ -389,7 +389,7 @@
'include_dirs':
[
'test/include',
'deps/catch/single_include/catch2'
'deps/catch2/single_include'
],
'xcode_settings':
{
......
......@@ -127,7 +127,7 @@ function get_catch()
{
GIT_REPO="https://github.com/catchorg/Catch2.git"
GIT_TAG="v2.13.5"
DEST="deps/catch"
DEST="deps/catch2"
get_dep "${GIT_REPO}" "${GIT_TAG}" "${DEST}"
}
......
......@@ -5,11 +5,11 @@
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include <json.hpp>
#include <cctype> // isprint()
#include <cerrno>
#include <iterator> // std::ostream_iterator
#include <mutex>
#include <nlohmann/json.hpp>
#include <sstream> // std::ostringstream
extern "C"
{
......
#include "common.hpp"
#include "RTC/Codecs/VP8.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC;
......
#include "common.hpp"
#include "RTC/RTCP/Bye.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
#include <string>
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsAfb.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsFir.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsLei.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsPli.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsRemb.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsRpsi.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsSli.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsTst.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsVbcm.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackRtpEcn.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackRtpNack.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackRtpSrReq.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackRtpTllei.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/FeedbackRtpTmmb.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "Logger.hpp"
#include "RTC/RTCP/FeedbackRtpTransport.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/Packet.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/ReceiverReport.hpp"
#include "RTC/RTCP/SenderReport.hpp" // sizeof(SenderReport::Header)
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/Sdes.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
#include <string>
......
#include "common.hpp"
#include "RTC/RTCP/SenderReport.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "RTC/RTCP/XrDelaySinceLastRr.hpp"
#include "RTC/RTCP/XrReceiverReferenceTime.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp
using namespace RTC::RTCP;
......
#include "common.hpp"
#include "DepLibUV.hpp"
#include "RTC/KeyFrameRequestManager.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace RTC;
......
......@@ -3,7 +3,7 @@
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/NackGenerator.hpp"
#include "RTC/RtpPacket.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <vector>
using namespace RTC;
......
#include "common.hpp"
#include "DepLibUV.hpp"
#include "RTC/RateCalculator.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <vector>
using namespace RTC;
......@@ -90,8 +90,8 @@ SCENARIO("Bitrate calculator", "[rtp][bitrate]")
{ 999, 2, 56 },
{ 1001, 1, 24 }, // merged inside 999
{ 1001, 1, 32 }, // merged inside 999
{ 2000, 1, 8 } // it will erase the item with timestamp=999,
// removing also the next two samples.
{ 2000, 1, 8 } // it will erase the item with timestamp=999,
// removing also the next two samples.
// The end estimation will include only the last sample.
};
// clang-format on
......
#include "common.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <regex>
static const std::regex ScalabilityModeRegex(
......
#include "common.hpp"
#include "helpers.hpp"
#include "RTC/RtpPacket.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memset()
#include <string>
#include <vector>
......
......@@ -3,7 +3,7 @@
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamRecv.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <vector>
using namespace RTC;
......
......@@ -3,7 +3,7 @@
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamSend.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <vector>
using namespace RTC;
......
#include "common.hpp"
#include "RTC/SeqManager.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <string>
#include <vector>
......@@ -417,7 +417,7 @@ SCENARIO("SeqManager", "[rtc]")
{ 0, 5, false, false },
{ 1, 6, false, false },
{ 2, 7, false, false },
{ 3, 8, false, false }
{ 3, 8, false, false }
};
// clang-format on
......
#include "common.hpp"
#include "RTC/TrendCalculator.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace RTC;
......
#include "common.hpp"
#include "Utils.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace Utils;
......
#include "common.hpp"
#include "MediaSoupErrors.hpp"
#include "Utils.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memset()
#ifdef _WIN32
#include <winsock2.h>
......
#include "common.hpp"
#include "Utils.hpp"
#include <json.hpp>
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <nlohmann/json.hpp>
using namespace Utils;
using json = nlohmann::json;
......
#include "common.hpp"
#include "Utils.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstring> // std::memcmp()
using namespace Utils;
......
#include "common.hpp"
#include "DepLibUV.hpp"
#include "Utils.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
using namespace Utils;
......
......@@ -8,7 +8,7 @@
#include "LogLevel.hpp"
#include "Settings.hpp"
#include "Utils.hpp"
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <cstdlib> // std::getenv()
int main(int argc, char* argv[])
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论