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

Side by Side Diff: webrtc/pc/webrtcsdp_unittest.cc

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « webrtc/pc/webrtcsdp.cc ('k') | webrtc/pc/webrtcsession.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2011 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
11 #include <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/api/jsepsessiondescription.h" 16 #include "webrtc/api/jsepsessiondescription.h"
17 #ifdef WEBRTC_ANDROID
18 #include "webrtc/api/test/androidtestinitializer.h"
19 #endif
20 #include "webrtc/api/webrtcsdp.h"
21 #include "webrtc/base/checks.h" 17 #include "webrtc/base/checks.h"
22 #include "webrtc/base/gunit.h" 18 #include "webrtc/base/gunit.h"
23 #include "webrtc/base/logging.h" 19 #include "webrtc/base/logging.h"
24 #include "webrtc/base/messagedigest.h" 20 #include "webrtc/base/messagedigest.h"
25 #include "webrtc/base/sslfingerprint.h" 21 #include "webrtc/base/sslfingerprint.h"
26 #include "webrtc/base/stringencode.h" 22 #include "webrtc/base/stringencode.h"
27 #include "webrtc/base/stringutils.h" 23 #include "webrtc/base/stringutils.h"
28 #include "webrtc/media/base/mediaconstants.h" 24 #include "webrtc/media/base/mediaconstants.h"
29 #include "webrtc/media/engine/webrtcvideoengine2.h" 25 #include "webrtc/media/engine/webrtcvideoengine2.h"
30 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" 26 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h"
31 #include "webrtc/p2p/base/p2pconstants.h" 27 #include "webrtc/p2p/base/p2pconstants.h"
32 #include "webrtc/pc/mediasession.h" 28 #include "webrtc/pc/mediasession.h"
29 #ifdef WEBRTC_ANDROID
30 #include "webrtc/pc/test/androidtestinitializer.h"
31 #endif
32 #include "webrtc/pc/webrtcsdp.h"
33 33
34 using cricket::AudioCodec; 34 using cricket::AudioCodec;
35 using cricket::AudioContentDescription; 35 using cricket::AudioContentDescription;
36 using cricket::Candidate; 36 using cricket::Candidate;
37 using cricket::ContentInfo; 37 using cricket::ContentInfo;
38 using cricket::CryptoParams; 38 using cricket::CryptoParams;
39 using cricket::ContentGroup; 39 using cricket::ContentGroup;
40 using cricket::DataCodec; 40 using cricket::DataCodec;
41 using cricket::DataContentDescription; 41 using cricket::DataContentDescription;
42 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; 42 using cricket::ICE_CANDIDATE_COMPONENT_RTCP;
(...skipping 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 JsepSessionDescription jdesc_output(kDummyString); 3365 JsepSessionDescription jdesc_output(kDummyString);
3366 EXPECT_TRUE( 3366 EXPECT_TRUE(
3367 SdpDeserialize(kSdpWithIceCredentialsInCandidateString, &jdesc_output)); 3367 SdpDeserialize(kSdpWithIceCredentialsInCandidateString, &jdesc_output));
3368 const IceCandidateCollection* candidates = jdesc_output.candidates(0); 3368 const IceCandidateCollection* candidates = jdesc_output.candidates(0);
3369 ASSERT_NE(nullptr, candidates); 3369 ASSERT_NE(nullptr, candidates);
3370 ASSERT_EQ(1, candidates->count()); 3370 ASSERT_EQ(1, candidates->count());
3371 cricket::Candidate c = candidates->at(0)->candidate(); 3371 cricket::Candidate c = candidates->at(0)->candidate();
3372 EXPECT_EQ("ufrag_voice", c.username()); 3372 EXPECT_EQ("ufrag_voice", c.username());
3373 EXPECT_EQ("pwd_voice", c.password()); 3373 EXPECT_EQ("pwd_voice", c.password());
3374 } 3374 }
OLDNEW
« no previous file with comments | « webrtc/pc/webrtcsdp.cc ('k') | webrtc/pc/webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698