OLD | NEW |
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 #include "webrtc/base/checks.h" | |
18 #include "webrtc/base/gunit.h" | |
19 #include "webrtc/base/logging.h" | |
20 #include "webrtc/base/messagedigest.h" | |
21 #include "webrtc/base/sslfingerprint.h" | |
22 #include "webrtc/base/stringencode.h" | |
23 #include "webrtc/base/stringutils.h" | |
24 #include "webrtc/media/base/mediaconstants.h" | 17 #include "webrtc/media/base/mediaconstants.h" |
25 #include "webrtc/media/engine/webrtcvideoengine.h" | 18 #include "webrtc/media/engine/webrtcvideoengine.h" |
26 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 19 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
27 #include "webrtc/p2p/base/p2pconstants.h" | 20 #include "webrtc/p2p/base/p2pconstants.h" |
28 #include "webrtc/pc/mediasession.h" | 21 #include "webrtc/pc/mediasession.h" |
| 22 #include "webrtc/rtc_base/checks.h" |
| 23 #include "webrtc/rtc_base/gunit.h" |
| 24 #include "webrtc/rtc_base/logging.h" |
| 25 #include "webrtc/rtc_base/messagedigest.h" |
| 26 #include "webrtc/rtc_base/sslfingerprint.h" |
| 27 #include "webrtc/rtc_base/stringencode.h" |
| 28 #include "webrtc/rtc_base/stringutils.h" |
29 #ifdef WEBRTC_ANDROID | 29 #ifdef WEBRTC_ANDROID |
30 #include "webrtc/pc/test/androidtestinitializer.h" | 30 #include "webrtc/pc/test/androidtestinitializer.h" |
31 #endif | 31 #endif |
32 #include "webrtc/pc/webrtcsdp.h" | 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; |
(...skipping 3499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3538 EXPECT_TRUE(SdpDeserialize(message, &jdesc)); | 3538 EXPECT_TRUE(SdpDeserialize(message, &jdesc)); |
3539 auto audio_desc = static_cast<cricket::MediaContentDescription*>( | 3539 auto audio_desc = static_cast<cricket::MediaContentDescription*>( |
3540 jdesc.description()->GetContentByName(kAudioContentName)->description); | 3540 jdesc.description()->GetContentByName(kAudioContentName)->description); |
3541 auto video_desc = static_cast<cricket::MediaContentDescription*>( | 3541 auto video_desc = static_cast<cricket::MediaContentDescription*>( |
3542 jdesc.description()->GetContentByName(kVideoContentName)->description); | 3542 jdesc.description()->GetContentByName(kVideoContentName)->description); |
3543 EXPECT_EQ(audio_desc_->connection_address().ToString(), | 3543 EXPECT_EQ(audio_desc_->connection_address().ToString(), |
3544 audio_desc->connection_address().ToString()); | 3544 audio_desc->connection_address().ToString()); |
3545 EXPECT_EQ(video_desc_->connection_address().ToString(), | 3545 EXPECT_EQ(video_desc_->connection_address().ToString(), |
3546 video_desc->connection_address().ToString()); | 3546 video_desc->connection_address().ToString()); |
3547 } | 3547 } |
OLD | NEW |