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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc

Issue 1923133002: Replace the remaining scoped_ptr with unique_ptr in webrtc/modules/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Don't remove #include "scoped_ptr.h" from .h files Created 4 years, 8 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 #include <algorithm> 11 #include <algorithm>
12 #include <memory>
12 #include <vector> 13 #include <vector>
13 14
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webrtc/common_types.h" 17 #include "webrtc/common_types.h"
17 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 18 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h"
21 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" 22 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual void TearDown() { 169 virtual void TearDown() {
169 delete module1; 170 delete module1;
170 delete module2; 171 delete module2;
171 delete myRTCPFeedback1; 172 delete myRTCPFeedback1;
172 delete myRTCPFeedback2; 173 delete myRTCPFeedback2;
173 delete transport1; 174 delete transport1;
174 delete transport2; 175 delete transport2;
175 delete receiver; 176 delete receiver;
176 } 177 }
177 178
178 rtc::scoped_ptr<TestRtpFeedback> rtp_feedback1_; 179 std::unique_ptr<TestRtpFeedback> rtp_feedback1_;
179 rtc::scoped_ptr<TestRtpFeedback> rtp_feedback2_; 180 std::unique_ptr<TestRtpFeedback> rtp_feedback2_;
180 rtc::scoped_ptr<ReceiveStatistics> receive_statistics1_; 181 std::unique_ptr<ReceiveStatistics> receive_statistics1_;
181 rtc::scoped_ptr<ReceiveStatistics> receive_statistics2_; 182 std::unique_ptr<ReceiveStatistics> receive_statistics2_;
182 rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry1_; 183 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry1_;
183 rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry2_; 184 std::unique_ptr<RTPPayloadRegistry> rtp_payload_registry2_;
184 rtc::scoped_ptr<RtpReceiver> rtp_receiver1_; 185 std::unique_ptr<RtpReceiver> rtp_receiver1_;
185 rtc::scoped_ptr<RtpReceiver> rtp_receiver2_; 186 std::unique_ptr<RtpReceiver> rtp_receiver2_;
186 RtpRtcp* module1; 187 RtpRtcp* module1;
187 RtpRtcp* module2; 188 RtpRtcp* module2;
188 TestRtpReceiver* receiver; 189 TestRtpReceiver* receiver;
189 LoopBackTransport* transport1; 190 LoopBackTransport* transport1;
190 LoopBackTransport* transport2; 191 LoopBackTransport* transport2;
191 RtcpCallback* myRTCPFeedback1; 192 RtcpCallback* myRTCPFeedback1;
192 RtcpCallback* myRTCPFeedback2; 193 RtcpCallback* myRTCPFeedback2;
193 194
194 uint32_t test_ssrc; 195 uint32_t test_ssrc;
195 uint32_t test_timestamp; 196 uint32_t test_timestamp;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); 263 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC);
263 264
264 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); 265 EXPECT_EQ(0u, report_blocks[0].cumulativeLost);
265 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); 266 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR);
266 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); 267 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum);
267 EXPECT_EQ(0u, report_blocks[0].fractionLost); 268 EXPECT_EQ(0u, report_blocks[0].fractionLost);
268 } 269 }
269 270
270 } // namespace 271 } // namespace
271 } // namespace webrtc 272 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc ('k') | webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698