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

Unified Diff: webrtc/video/payload_router_unittest.cc

Issue 1686323003: Use std::vector in the PayloadRouter interface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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/video/payload_router_unittest.cc
diff --git a/webrtc/video/payload_router_unittest.cc b/webrtc/video/payload_router_unittest.cc
index 8c22f2fd5cc1d210f3f0607babe8b900d5f424f7..2bc096dbaab40d6eee42f11c5e43456377d1af00 100644
--- a/webrtc/video/payload_router_unittest.cc
+++ b/webrtc/video/payload_router_unittest.cc
@@ -8,9 +8,6 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-
-#include <list>
-
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/base/scoped_ptr.h"
@@ -35,7 +32,7 @@ class PayloadRouterTest : public ::testing::Test {
TEST_F(PayloadRouterTest, SendOnOneModule) {
MockRtpRtcp rtp;
- std::list<RtpRtcp*> modules(1, &rtp);
+ std::vector<RtpRtcp*> modules(1, &rtp);
payload_router_->SetSendingRtpModules(modules);
@@ -82,7 +79,7 @@ TEST_F(PayloadRouterTest, SendOnOneModule) {
TEST_F(PayloadRouterTest, SendSimulcast) {
MockRtpRtcp rtp_1;
MockRtpRtcp rtp_2;
- std::list<RtpRtcp*> modules;
+ std::vector<RtpRtcp*> modules;
modules.push_back(&rtp_1);
modules.push_back(&rtp_2);
@@ -147,7 +144,7 @@ TEST_F(PayloadRouterTest, MaxPayloadLength) {
MockRtpRtcp rtp_1;
MockRtpRtcp rtp_2;
- std::list<RtpRtcp*> modules;
+ std::vector<RtpRtcp*> modules;
modules.push_back(&rtp_1);
modules.push_back(&rtp_2);
payload_router_->SetSendingRtpModules(modules);
@@ -175,7 +172,7 @@ TEST_F(PayloadRouterTest, MaxPayloadLength) {
TEST_F(PayloadRouterTest, SetTargetSendBitrates) {
MockRtpRtcp rtp_1;
MockRtpRtcp rtp_2;
- std::list<RtpRtcp*> modules;
+ std::vector<RtpRtcp*> modules;
modules.push_back(&rtp_1);
modules.push_back(&rtp_2);
payload_router_->SetSendingRtpModules(modules);

Powered by Google App Engine
This is Rietveld 408576698