OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } connectedHandler:^{ | 271 } connectedHandler:^{ |
272 [answererConnectionExpectation fulfill]; | 272 [answererConnectionExpectation fulfill]; |
273 }]; | 273 }]; |
274 // TODO(tkchin): Figure out why DTLS-SRTP constraint causes thread assertion | 274 // TODO(tkchin): Figure out why DTLS-SRTP constraint causes thread assertion |
275 // crash in Debug. | 275 // crash in Debug. |
276 answerer.defaultPeerConnectionConstraints = | 276 answerer.defaultPeerConnectionConstraints = |
277 [[RTCMediaConstraints alloc] init]; | 277 [[RTCMediaConstraints alloc] init]; |
278 weakAnswerer = answerer; | 278 weakAnswerer = answerer; |
279 | 279 |
280 // Kick off connection. | 280 // Kick off connection. |
281 [caller connectToRoomWithId:roomId options:nil]; | 281 [caller connectToRoomWithId:roomId isLoopback:NO isAudioOnly:NO]; |
282 [answerer connectToRoomWithId:roomId options:nil]; | 282 [answerer connectToRoomWithId:roomId isLoopback:NO isAudioOnly:NO]; |
283 [self waitForExpectationsWithTimeout:20 handler:^(NSError *error) { | 283 [self waitForExpectationsWithTimeout:20 handler:^(NSError *error) { |
284 if (error) { | 284 if (error) { |
285 NSLog(@"Expectations error: %@", error); | 285 NSLog(@"Expectations error: %@", error); |
286 } | 286 } |
287 }]; | 287 }]; |
288 } | 288 } |
289 | 289 |
290 @end | 290 @end |
291 | 291 |
292 @interface ARDSDPUtilsTest : ARDTestCase | 292 @interface ARDSDPUtilsTest : ARDTestCase |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 } | 328 } |
329 | 329 |
330 TEST_F(SignalingTest, SDPTest) { | 330 TEST_F(SignalingTest, SDPTest) { |
331 @autoreleasepool { | 331 @autoreleasepool { |
332 ARDSDPUtilsTest *test = [[ARDSDPUtilsTest alloc] init]; | 332 ARDSDPUtilsTest *test = [[ARDSDPUtilsTest alloc] init]; |
333 [test testPreferVideoCodec]; | 333 [test testPreferVideoCodec]; |
334 } | 334 } |
335 } | 335 } |
336 | 336 |
337 | 337 |
OLD | NEW |