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

Side by Side Diff: webrtc/sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm

Issue 2688943003: Add the URL attribute to cricket::Candiate. (Objc wrapper) (Closed)
Patch Set: Fix the format. Created 3 years, 10 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 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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 14 matching lines...) Expand all
25 25
26 @implementation RTCIceCandidateTest 26 @implementation RTCIceCandidateTest
27 27
28 - (void)testCandidate { 28 - (void)testCandidate {
29 NSString *sdp = @"candidate:4025901590 1 udp 2122265343 " 29 NSString *sdp = @"candidate:4025901590 1 udp 2122265343 "
30 "fdff:2642:12a6:fe38:c001:beda:fcf9:51aa " 30 "fdff:2642:12a6:fe38:c001:beda:fcf9:51aa "
31 "59052 typ host generation 0"; 31 "59052 typ host generation 0";
32 32
33 RTCIceCandidate *candidate = [[RTCIceCandidate alloc] initWithSdp:sdp 33 RTCIceCandidate *candidate = [[RTCIceCandidate alloc] initWithSdp:sdp
34 sdpMLineIndex:0 34 sdpMLineIndex:0
35 sdpMid:@"audio"]; 35 sdpMid:@"audio"
36 serverUrl:@"server url "];
36 37
37 std::unique_ptr<webrtc::IceCandidateInterface> nativeCandidate = 38 std::unique_ptr<webrtc::IceCandidateInterface> nativeCandidate =
38 candidate.nativeCandidate; 39 candidate.nativeCandidate;
39 EXPECT_EQ("audio", nativeCandidate->sdp_mid()); 40 EXPECT_EQ("audio", nativeCandidate->sdp_mid());
40 EXPECT_EQ(0, nativeCandidate->sdp_mline_index()); 41 EXPECT_EQ(0, nativeCandidate->sdp_mline_index());
41 42
42 std::string sdpString; 43 std::string sdpString;
43 nativeCandidate->ToString(&sdpString); 44 nativeCandidate->ToString(&sdpString);
44 EXPECT_EQ(sdp.stdString, sdpString); 45 EXPECT_EQ(sdp.stdString, sdpString);
45 } 46 }
(...skipping 21 matching lines...) Expand all
67 [test testCandidate]; 68 [test testCandidate];
68 } 69 }
69 } 70 }
70 71
71 TEST(RTCIceCandidateTest, InitFromCandidateTest) { 72 TEST(RTCIceCandidateTest, InitFromCandidateTest) {
72 @autoreleasepool { 73 @autoreleasepool {
73 RTCIceCandidateTest *test = [[RTCIceCandidateTest alloc] init]; 74 RTCIceCandidateTest *test = [[RTCIceCandidateTest alloc] init];
74 [test testInitFromNativeCandidate]; 75 [test testInitFromNativeCandidate];
75 } 76 }
76 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698