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

Side by Side Diff: talk/app/webrtc/objctests/RTCPeerConnectionTest.mm

Issue 1350523003: TransportController refactoring. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing Mac test. Created 5 years, 3 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 2013 Google Inc. 3 * Copyright 2013 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init]; 175 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init];
176 [pcAnswer createAnswerWithDelegate:sdpObserver constraints:constraints]; 176 [pcAnswer createAnswerWithDelegate:sdpObserver constraints:constraints];
177 [sdpObserver wait]; 177 [sdpObserver wait];
178 EXPECT_TRUE(sdpObserver.success); 178 EXPECT_TRUE(sdpObserver.success);
179 RTCSessionDescription* answerSDP = sdpObserver.sessionDescription; 179 RTCSessionDescription* answerSDP = sdpObserver.sessionDescription;
180 EXPECT_EQ([@"answer" compare:answerSDP.type options:NSCaseInsensitiveSearch], 180 EXPECT_EQ([@"answer" compare:answerSDP.type options:NSCaseInsensitiveSearch],
181 NSOrderedSame); 181 NSOrderedSame);
182 EXPECT_GT([answerSDP.description length], 0); 182 EXPECT_GT([answerSDP.description length], 0);
183 183
184 [offeringExpectations expectICECandidates:2]; 184 [offeringExpectations expectICECandidates:2];
185 [answeringExpectations expectICECandidates:2]; 185 // It's possible to only have 1 ICE candidate for the answerer, since we use
186 // BUNDLE and rtcp-mux by default, and don't provide any ICE servers in this
187 // test.
188 [answeringExpectations expectICECandidates:1];
186 189
187 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init]; 190 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init];
188 [answeringExpectations expectSignalingChange:RTCSignalingStable]; 191 [answeringExpectations expectSignalingChange:RTCSignalingStable];
189 [pcAnswer setLocalDescriptionWithDelegate:sdpObserver 192 [pcAnswer setLocalDescriptionWithDelegate:sdpObserver
190 sessionDescription:answerSDP]; 193 sessionDescription:answerSDP];
191 [sdpObserver wait]; 194 [sdpObserver wait];
192 EXPECT_TRUE(sdpObserver.sessionDescription == NULL); 195 EXPECT_TRUE(sdpObserver.sessionDescription == NULL);
193 196
194 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init]; 197 sdpObserver = [[RTCSessionDescriptionSyncObserver alloc] init];
195 [offeringExpectations expectSignalingChange:RTCSignalingHaveLocalOffer]; 198 [offeringExpectations expectSignalingChange:RTCSignalingHaveLocalOffer];
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // factory outlives RTCPeerConnection:dealloc. 319 // factory outlives RTCPeerConnection:dealloc.
317 // See https://code.google.com/p/webrtc/issues/detail?id=3100. 320 // See https://code.google.com/p/webrtc/issues/detail?id=3100.
318 RTCPeerConnectionFactory* factory = [[RTCPeerConnectionFactory alloc] init]; 321 RTCPeerConnectionFactory* factory = [[RTCPeerConnectionFactory alloc] init];
319 @autoreleasepool { 322 @autoreleasepool {
320 RTCPeerConnectionTest* pcTest = [[RTCPeerConnectionTest alloc] init]; 323 RTCPeerConnectionTest* pcTest = [[RTCPeerConnectionTest alloc] init];
321 [pcTest testCompleteSessionWithFactory:factory]; 324 [pcTest testCompleteSessionWithFactory:factory];
322 } 325 }
323 rtc::CleanupSSL(); 326 rtc::CleanupSSL();
324 } 327 }
325 } 328 }
OLDNEW
« no previous file with comments | « talk/app/webrtc/objctests/RTCPeerConnectionSyncObserver.m ('k') | talk/app/webrtc/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698