Replace std:remove on vector::erase in streamparams_unittest.cc

Replace std:remove on vector::erase to actually remove object from
the vector.

Change-Id: I1eae7a038769ca4eb45a2f9238ca7aa86b3c38a4
Bug: webrtc:9405
Reviewed-on: https://webrtc-review.googlesource.com/83342
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23604}
This commit is contained in:
Artem Titov
2018-06-13 22:52:46 +02:00
committed by Commit Bot
parent aeb0a6475b
commit f7d7e90c5e

View File

@ -308,7 +308,9 @@ TEST(StreamParams, TestIsSimulcastStream_InvalidStreams) {
cricket::StreamParams stream2;
stream2.add_ssrc(13);
EXPECT_TRUE(stream2.AddFidSsrc(13, 14));
std::remove(stream2.ssrcs.begin(), stream2.ssrcs.end(), 13u);
stream2.ssrcs.erase(
std::remove(stream2.ssrcs.begin(), stream2.ssrcs.end(), 13u),
stream2.ssrcs.end());
EXPECT_FALSE(cricket::IsSimulcastStream(stream2));
// stream3 has two SIM groups.