| Index: webrtc/api/jsepsessiondescription_unittest.cc
|
| diff --git a/webrtc/api/jsepsessiondescription_unittest.cc b/webrtc/api/jsepsessiondescription_unittest.cc
|
| index 3d8751373116c42bcdcf8fece530800719e6d880..7868beaad36ac3a96a16f72f18cd086598200d03 100644
|
| --- a/webrtc/api/jsepsessiondescription_unittest.cc
|
| +++ b/webrtc/api/jsepsessiondescription_unittest.cc
|
| @@ -109,7 +109,7 @@
|
| EXPECT_EQ(2u, jsep_desc_->number_of_mediasections());
|
| }
|
|
|
| -// Test that we can add a candidate to a session description without MID.
|
| +// Test that we can add a candidate to a session description.
|
| TEST_F(JsepSessionDescriptionTest, AddCandidateWithoutMid) {
|
| JsepIceCandidate jsep_candidate("", 0, candidate_);
|
| EXPECT_TRUE(jsep_desc_->AddCandidate(&jsep_candidate));
|
| @@ -125,12 +125,9 @@
|
| EXPECT_EQ(0u, jsep_desc_->candidates(1)->count());
|
| }
|
|
|
| -// Test that we can add and remove candidates to a session description with
|
| -// MID. Removing candidates requires MID (transport_name).
|
| -TEST_F(JsepSessionDescriptionTest, AddAndRemoveCandidatesWithMid) {
|
| +TEST_F(JsepSessionDescriptionTest, AddCandidateWithMid) {
|
| // mid and m-line index don't match, in this case mid is preferred.
|
| - std::string mid = "video";
|
| - JsepIceCandidate jsep_candidate(mid, 0, candidate_);
|
| + JsepIceCandidate jsep_candidate("video", 0, candidate_);
|
| EXPECT_TRUE(jsep_desc_->AddCandidate(&jsep_candidate));
|
| EXPECT_EQ(0u, jsep_desc_->candidates(0)->count());
|
| const IceCandidateCollection* ice_candidates = jsep_desc_->candidates(1);
|
| @@ -143,12 +140,6 @@
|
| EXPECT_TRUE(ice_candidate->candidate().IsEquivalent(candidate_));
|
| // The mline index should have been updated according to mid.
|
| EXPECT_EQ(1, ice_candidate->sdp_mline_index());
|
| -
|
| - std::vector<cricket::Candidate> candidates(1, candidate_);
|
| - candidates[0].set_transport_name(mid);
|
| - EXPECT_EQ(1u, jsep_desc_->RemoveCandidates(candidates));
|
| - EXPECT_EQ(0u, jsep_desc_->candidates(0)->count());
|
| - EXPECT_EQ(0u, jsep_desc_->candidates(1)->count());
|
| }
|
|
|
| TEST_F(JsepSessionDescriptionTest, AddCandidateAlreadyHasUfrag) {
|
|
|