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

Side by Side Diff: talk/session/media/mediasession_unittest.cc

Issue 1308753003: Revert "Reland "Remove GICE (gone forever!) and PORTALLOCATOR_ENABLE_SHARED_UFRAG (enabled forever)… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 const std::string current_video_ufrag = "current_video_ufrag"; 283 const std::string current_video_ufrag = "current_video_ufrag";
284 const std::string current_video_pwd = "current_video_pwd"; 284 const std::string current_video_pwd = "current_video_pwd";
285 const std::string current_data_ufrag = "current_data_ufrag"; 285 const std::string current_data_ufrag = "current_data_ufrag";
286 const std::string current_data_pwd = "current_data_pwd"; 286 const std::string current_data_pwd = "current_data_pwd";
287 rtc::scoped_ptr<SessionDescription> current_desc; 287 rtc::scoped_ptr<SessionDescription> current_desc;
288 rtc::scoped_ptr<SessionDescription> desc; 288 rtc::scoped_ptr<SessionDescription> desc;
289 if (has_current_desc) { 289 if (has_current_desc) {
290 current_desc.reset(new SessionDescription()); 290 current_desc.reset(new SessionDescription());
291 EXPECT_TRUE(current_desc->AddTransportInfo( 291 EXPECT_TRUE(current_desc->AddTransportInfo(
292 TransportInfo("audio", 292 TransportInfo("audio",
293 TransportDescription(current_audio_ufrag, 293 TransportDescription("",
294 current_audio_ufrag,
294 current_audio_pwd)))); 295 current_audio_pwd))));
295 EXPECT_TRUE(current_desc->AddTransportInfo( 296 EXPECT_TRUE(current_desc->AddTransportInfo(
296 TransportInfo("video", 297 TransportInfo("video",
297 TransportDescription(current_video_ufrag, 298 TransportDescription("",
299 current_video_ufrag,
298 current_video_pwd)))); 300 current_video_pwd))));
299 EXPECT_TRUE(current_desc->AddTransportInfo( 301 EXPECT_TRUE(current_desc->AddTransportInfo(
300 TransportInfo("data", 302 TransportInfo("data",
301 TransportDescription(current_data_ufrag, 303 TransportDescription("",
304 current_data_ufrag,
302 current_data_pwd)))); 305 current_data_pwd))));
303 } 306 }
304 if (offer) { 307 if (offer) {
305 desc.reset(f1_.CreateOffer(options, current_desc.get())); 308 desc.reset(f1_.CreateOffer(options, current_desc.get()));
306 } else { 309 } else {
307 rtc::scoped_ptr<SessionDescription> offer; 310 rtc::scoped_ptr<SessionDescription> offer;
308 offer.reset(f1_.CreateOffer(options, NULL)); 311 offer.reset(f1_.CreateOffer(options, NULL));
309 desc.reset(f1_.CreateAnswer(offer.get(), options, current_desc.get())); 312 desc.reset(f1_.CreateAnswer(offer.get(), options, current_desc.get()));
310 } 313 }
311 ASSERT_TRUE(desc.get() != NULL); 314 ASSERT_TRUE(desc.get() != NULL);
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 offer.reset(f1_.CreateOffer(options, NULL)); 2306 offer.reset(f1_.CreateOffer(options, NULL));
2304 ASSERT_TRUE(offer.get() != NULL); 2307 ASSERT_TRUE(offer.get() != NULL);
2305 audio_content = offer->GetContentByName("audio"); 2308 audio_content = offer->GetContentByName("audio");
2306 EXPECT_TRUE(VerifyNoCNCodecs(audio_content)); 2309 EXPECT_TRUE(VerifyNoCNCodecs(audio_content));
2307 rtc::scoped_ptr<SessionDescription> answer( 2310 rtc::scoped_ptr<SessionDescription> answer(
2308 f1_.CreateAnswer(offer.get(), options, NULL)); 2311 f1_.CreateAnswer(offer.get(), options, NULL));
2309 ASSERT_TRUE(answer.get() != NULL); 2312 ASSERT_TRUE(answer.get() != NULL);
2310 audio_content = answer->GetContentByName("audio"); 2313 audio_content = answer->GetContentByName("audio");
2311 EXPECT_TRUE(VerifyNoCNCodecs(audio_content)); 2314 EXPECT_TRUE(VerifyNoCNCodecs(audio_content));
2312 } 2315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698