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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc

Issue 1839603002: Remove webrtc::ScopedVector (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 <map> 11 #include <map>
12 #include <set> 12 #include <set>
13 13
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 #include "webrtc/common_types.h" 17 #include "webrtc/common_types.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 18 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" 20 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h"
22 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h"
23 #include "webrtc/system_wrappers/include/scoped_vector.h"
24 #include "webrtc/test/rtcp_packet_parser.h" 23 #include "webrtc/test/rtcp_packet_parser.h"
25 24
26 using ::testing::_; 25 using ::testing::_;
27 using ::testing::ElementsAre; 26 using ::testing::ElementsAre;
28 using ::testing::NiceMock; 27 using ::testing::NiceMock;
29 using ::testing::Return; 28 using ::testing::Return;
30 using ::testing::SaveArg; 29 using ::testing::SaveArg;
31 30
32 namespace webrtc { 31 namespace webrtc {
33 namespace { 32 namespace {
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 EXPECT_EQ(6U, receiver_.RtcpSent().unique_nack_requests); 542 EXPECT_EQ(6U, receiver_.RtcpSent().unique_nack_requests);
544 EXPECT_THAT(receiver_.LastNackListSent(), ElementsAre(11, 18, 20, 21)); 543 EXPECT_THAT(receiver_.LastNackListSent(), ElementsAre(11, 18, 20, 21));
545 544
546 // Send module receives the request. 545 // Send module receives the request.
547 EXPECT_EQ(2U, sender_.RtcpReceived().nack_packets); 546 EXPECT_EQ(2U, sender_.RtcpReceived().nack_packets);
548 EXPECT_EQ(8U, sender_.RtcpReceived().nack_requests); 547 EXPECT_EQ(8U, sender_.RtcpReceived().nack_requests);
549 EXPECT_EQ(6U, sender_.RtcpReceived().unique_nack_requests); 548 EXPECT_EQ(6U, sender_.RtcpReceived().unique_nack_requests);
550 EXPECT_EQ(75, sender_.RtcpReceived().UniqueNackRequestsInPercent()); 549 EXPECT_EQ(75, sender_.RtcpReceived().UniqueNackRequestsInPercent());
551 } 550 }
552 } // namespace webrtc 551 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/three_band_filter_bank.cc ('k') | webrtc/system_wrappers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698