Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Unified Diff: webrtc/test/rtp_file_writer.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/layer_filtering_transport.cc ('k') | webrtc/tools/agc/agc_harness.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/rtp_file_writer.cc
diff --git a/webrtc/test/rtp_file_writer.cc b/webrtc/test/rtp_file_writer.cc
index 90c46beb48565a81fb02160dd70696ff4274fb19..793e51a55eea95553dd54e09a096e115eddfcd31 100644
--- a/webrtc/test/rtp_file_writer.cc
+++ b/webrtc/test/rtp_file_writer.cc
@@ -28,7 +28,7 @@ static const char kFirstLine[] = "#!rtpplay1.0 0.0.0.0/0\n";
class RtpDumpWriter : public RtpFileWriter {
public:
explicit RtpDumpWriter(FILE* file) : file_(file) {
- CHECK(file_ != NULL);
+ RTC_CHECK(file_ != NULL);
Init();
}
virtual ~RtpDumpWriter() {
@@ -40,12 +40,12 @@ class RtpDumpWriter : public RtpFileWriter {
bool WritePacket(const RtpPacket* packet) override {
uint16_t len = static_cast<uint16_t>(packet->length + kPacketHeaderSize);
- CHECK_GE(packet->original_length, packet->length);
+ RTC_CHECK_GE(packet->original_length, packet->length);
uint16_t plen = static_cast<uint16_t>(packet->original_length);
uint32_t offset = packet->time_ms;
- CHECK(WriteUint16(len));
- CHECK(WriteUint16(plen));
- CHECK(WriteUint32(offset));
+ RTC_CHECK(WriteUint16(len));
+ RTC_CHECK(WriteUint16(plen));
+ RTC_CHECK(WriteUint32(offset));
return fwrite(packet->data, sizeof(uint8_t), packet->length, file_) ==
packet->length;
}
@@ -54,11 +54,11 @@ class RtpDumpWriter : public RtpFileWriter {
bool Init() {
fprintf(file_, "%s", kFirstLine);
- CHECK(WriteUint32(0));
- CHECK(WriteUint32(0));
- CHECK(WriteUint32(0));
- CHECK(WriteUint16(0));
- CHECK(WriteUint16(0));
+ RTC_CHECK(WriteUint32(0));
+ RTC_CHECK(WriteUint32(0));
+ RTC_CHECK(WriteUint32(0));
+ RTC_CHECK(WriteUint16(0));
+ RTC_CHECK(WriteUint16(0));
return true;
}
« no previous file with comments | « webrtc/test/layer_filtering_transport.cc ('k') | webrtc/tools/agc/agc_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698