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

Unified Diff: talk/app/webrtc/peerconnectionendtoend_unittest.cc

Issue 1303393002: Reland "Remove GICE (gone forever!) and PORTALLOCATOR_ENABLE_SHARED_UFRAG (enabled forever)." becau… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add memcheck suppression 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/app/webrtc/peerconnection.cc ('k') | talk/app/webrtc/webrtcsdp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/peerconnectionendtoend_unittest.cc
diff --git a/talk/app/webrtc/peerconnectionendtoend_unittest.cc b/talk/app/webrtc/peerconnectionendtoend_unittest.cc
index 7800a6724a14dcc08ca26771594b8c5113d73cf6..ceabf04cf08378330cf2b481e6bfb9c5fad8a52f 100644
--- a/talk/app/webrtc/peerconnectionendtoend_unittest.cc
+++ b/talk/app/webrtc/peerconnectionendtoend_unittest.cc
@@ -48,8 +48,6 @@ using webrtc::PeerConnectionInterface;
namespace {
-const char kExternalGiceUfrag[] = "1234567890123456";
-const char kExternalGicePwd[] = "123456789012345678901234";
const size_t kMaxWait = 10000;
void RemoveLinesFromSdp(const std::string& line_start,
@@ -98,24 +96,6 @@ void UseExternalSdes(std::string* sdp) {
InjectAfter("a=mid:data\r\n", kDataSdes, sdp);
}
-void UseGice(std::string* sdp) {
- InjectAfter("t=0 0\r\n", "a=ice-options:google-ice\r\n", sdp);
-
- std::string ufragline = "a=ice-ufrag:";
- std::string pwdline = "a=ice-pwd:";
- RemoveLinesFromSdp(ufragline, sdp);
- RemoveLinesFromSdp(pwdline, sdp);
- ufragline.append(kExternalGiceUfrag);
- ufragline.append("\r\n");
- pwdline.append(kExternalGicePwd);
- pwdline.append("\r\n");
- const std::string ufrag_pwd = ufragline + pwdline;
-
- InjectAfter("a=mid:audio\r\n", ufrag_pwd, sdp);
- InjectAfter("a=mid:video\r\n", ufrag_pwd, sdp);
- InjectAfter("a=mid:data\r\n", ufrag_pwd, sdp);
-}
-
void RemoveBundle(std::string* sdp) {
RemoveLinesFromSdp("a=group:BUNDLE", sdp);
}
@@ -179,37 +159,6 @@ class PeerConnectionEndToEndTest
callee_->WaitForConnection();
}
- void SetupLegacySdpConverter() {
- caller_->SignalOnSdpCreated.connect(
- this, &PeerConnectionEndToEndTest::ConvertToLegacySdp);
- callee_->SignalOnSdpCreated.connect(
- this, &PeerConnectionEndToEndTest::ConvertToLegacySdp);
- }
-
- void ConvertToLegacySdp(std::string* sdp) {
- UseExternalSdes(sdp);
- UseGice(sdp);
- RemoveBundle(sdp);
- LOG(LS_INFO) << "ConvertToLegacySdp: " << *sdp;
- }
-
- void SetupGiceConverter() {
- caller_->SignalOnIceCandidateCreated.connect(
- this, &PeerConnectionEndToEndTest::AddGiceCredsToCandidate);
- callee_->SignalOnIceCandidateCreated.connect(
- this, &PeerConnectionEndToEndTest::AddGiceCredsToCandidate);
- }
-
- void AddGiceCredsToCandidate(std::string* sdp) {
- std::string gice_creds = " username ";
- gice_creds.append(kExternalGiceUfrag);
- gice_creds.append(" password ");
- gice_creds.append(kExternalGicePwd);
- gice_creds.append("\r\n");
- Replace("\r\n", gice_creds, sdp);
- LOG(LS_INFO) << "AddGiceCredsToCandidate: " << *sdp;
- }
-
void OnCallerAddedDataChanel(DataChannelInterface* dc) {
caller_signaled_data_channels_.push_back(dc);
}
@@ -281,8 +230,6 @@ TEST_F(PeerConnectionEndToEndTest, DISABLED_CallWithLegacySdp) {
pc_constraints.AddMandatory(MediaConstraintsInterface::kEnableDtlsSrtp,
false);
CreatePcs(&pc_constraints);
- SetupLegacySdpConverter();
- SetupGiceConverter();
GetAndAddUserMedia();
Negotiate();
WaitForCallEstablished();
« no previous file with comments | « talk/app/webrtc/peerconnection.cc ('k') | talk/app/webrtc/webrtcsdp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698