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

Unified Diff: webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. Created 3 years, 10 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/congestion_controller/delay_based_bwe_unittest_helper.cc
diff --git a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc
index 9aafc7b51607d551b982384761c616a5ca25c4a4..e90acbc84fc2bd7ced2a7fb95795b9ed2876f4b8 100644
--- a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc
+++ b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc
@@ -51,7 +51,7 @@ int64_t RtpStream::GenerateFrame(int64_t time_now_us,
if (time_now_us < next_rtp_time_) {
return next_rtp_time_;
}
- RTC_CHECK(packets != NULL);
+ RTC_CHECK(packets != nullptr);
size_t bits_per_frame = (bitrate_bps_ + fps_ / 2) / fps_;
size_t n_packets =
std::max<size_t>((bits_per_frame + 4 * kMtu) / (8 * kMtu), 1u);
@@ -126,7 +126,7 @@ void StreamGenerator::SetBitrateBps(int bitrate_bps) {
// it possible to simulate different types of channels.
int64_t StreamGenerator::GenerateFrame(std::vector<PacketInfo>* packets,
int64_t time_now_us) {
- RTC_CHECK(packets != NULL);
+ RTC_CHECK(packets != nullptr);
RTC_CHECK(packets->empty());
RTC_CHECK_GT(capacity_, 0);
auto it =

Powered by Google App Engine
This is Rietveld 408576698