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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/input_audio_file.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
Index: webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc b/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
index e2ec419b24d828b2fd1ff1af50ccb0f27906d22d..76f31096db1d0bd276d374dcad122fd85ac796e3 100644
--- a/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
@@ -45,16 +45,18 @@ bool InputAudioFile::Seek(int samples) {
}
// Find file boundaries.
const long current_pos = ftell(fp_);
- CHECK_NE(EOF, current_pos) << "Error returned when getting file position.";
- CHECK_EQ(0, fseek(fp_, 0, SEEK_END)); // Move to end of file.
+ RTC_CHECK_NE(EOF, current_pos)
+ << "Error returned when getting file position.";
+ RTC_CHECK_EQ(0, fseek(fp_, 0, SEEK_END)); // Move to end of file.
const long file_size = ftell(fp_);
- CHECK_NE(EOF, file_size) << "Error returned when getting file position.";
+ RTC_CHECK_NE(EOF, file_size) << "Error returned when getting file position.";
// Find new position.
long new_pos = current_pos + sizeof(int16_t) * samples; // Samples to bytes.
- CHECK_GE(new_pos, 0) << "Trying to move to before the beginning of the file";
+ RTC_CHECK_GE(new_pos, 0)
+ << "Trying to move to before the beginning of the file";
new_pos = new_pos % file_size; // Wrap around the end of the file.
// Move to new position relative to the beginning of the file.
- CHECK_EQ(0, fseek(fp_, new_pos, SEEK_SET));
+ RTC_CHECK_EQ(0, fseek(fp_, new_pos, SEEK_SET));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698