Remove webrtc::ProtoString.

Bug: None
Change-Id: If99a977532eda41eada25f57ff0ff6fe17085986
Reviewed-on: https://webrtc-review.googlesource.com/c/122581
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26726}
This commit is contained in:
Mirko Bonadei
2019-02-16 09:59:29 +01:00
committed by Commit Bot
parent eaf6a8cbc8
commit e45c688e67
11 changed files with 29 additions and 37 deletions

View File

@ -9,8 +9,9 @@
*/
#include "rtc_tools/network_tester/packet_logger.h"
#include <string>
#include "rtc_base/checks.h"
#include "rtc_base/protobuf_utils.h"
namespace webrtc {
@ -31,7 +32,7 @@ void PacketLogger::LogPacket(const NetworkTesterPacket& packet) {
// | Size of the next | proto | Size of the next | ... | proto |
// | proto message | message | proto message | | message |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
ProtoString packet_data;
std::string packet_data;
packet.SerializeToString(&packet_data);
RTC_DCHECK_LE(packet_data.length(), 255);
RTC_DCHECK_GE(packet_data.length(), 0);