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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_format_vp8_test_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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 11
12 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8_test_helper.h" 12 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8_test_helper.h"
13 13
14 #include "webrtc/test/gtest.h" 14 #include "webrtc/test/gtest.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 namespace test { 18 namespace test {
19 19
20 constexpr RtpPacketToSend::ExtensionManager* kNoExtensions = nullptr; 20 constexpr RtpPacketToSend::ExtensionManager* kNoExtensions = nullptr;
21 21
22 RtpFormatVp8TestHelper::RtpFormatVp8TestHelper(const RTPVideoHeaderVP8* hdr) 22 RtpFormatVp8TestHelper::RtpFormatVp8TestHelper(const RTPVideoHeaderVP8* hdr)
23 : packet_(kNoExtensions), 23 : packet_(kNoExtensions),
24 payload_data_(NULL), 24 payload_data_(nullptr),
25 data_ptr_(NULL), 25 data_ptr_(nullptr),
26 fragmentation_(NULL), 26 fragmentation_(nullptr),
27 hdr_info_(hdr), 27 hdr_info_(hdr),
28 payload_start_(0), 28 payload_start_(0),
29 payload_size_(0), 29 payload_size_(0),
30 sloppy_partitioning_(false), 30 sloppy_partitioning_(false),
31 inited_(false) {} 31 inited_(false) {}
32 32
33 RtpFormatVp8TestHelper::~RtpFormatVp8TestHelper() { 33 RtpFormatVp8TestHelper::~RtpFormatVp8TestHelper() {
34 delete fragmentation_; 34 delete fragmentation_;
35 delete [] payload_data_; 35 delete [] payload_data_;
36 } 36 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool frag_start) { 241 bool frag_start) {
242 EXPECT_EQ(expect_bytes, packet_.payload_size()); 242 EXPECT_EQ(expect_bytes, packet_.payload_size());
243 CheckHeader(frag_start); 243 CheckHeader(frag_start);
244 CheckPayload(); 244 CheckPayload();
245 CheckLast(last); 245 CheckLast(last);
246 } 246 }
247 247
248 } // namespace test 248 } // namespace test
249 249
250 } // namespace webrtc 250 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698