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" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/base/gunit.h" | 18 #include "webrtc/base/gunit.h" |
19 #include "webrtc/base/logging.h" | 19 #include "webrtc/base/logging.h" |
20 #include "webrtc/base/messagedigest.h" | 20 #include "webrtc/base/messagedigest.h" |
21 #include "webrtc/base/sslfingerprint.h" | 21 #include "webrtc/base/sslfingerprint.h" |
22 #include "webrtc/base/stringencode.h" | 22 #include "webrtc/base/stringencode.h" |
23 #include "webrtc/base/stringutils.h" | 23 #include "webrtc/base/stringutils.h" |
24 #include "webrtc/media/base/mediaconstants.h" | 24 #include "webrtc/media/base/mediaconstants.h" |
25 #include "webrtc/media/engine/webrtcvideoengine2.h" | 25 #include "webrtc/media/engine/webrtcvideoengine.h" |
26 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 26 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
27 #include "webrtc/p2p/base/p2pconstants.h" | 27 #include "webrtc/p2p/base/p2pconstants.h" |
28 #include "webrtc/pc/mediasession.h" | 28 #include "webrtc/pc/mediasession.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; |
(...skipping 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3501 EXPECT_TRUE(SdpDeserialize(message, &jdesc)); | 3501 EXPECT_TRUE(SdpDeserialize(message, &jdesc)); |
3502 auto audio_desc = static_cast<cricket::MediaContentDescription*>( | 3502 auto audio_desc = static_cast<cricket::MediaContentDescription*>( |
3503 jdesc.description()->GetContentByName(kAudioContentName)->description); | 3503 jdesc.description()->GetContentByName(kAudioContentName)->description); |
3504 auto video_desc = static_cast<cricket::MediaContentDescription*>( | 3504 auto video_desc = static_cast<cricket::MediaContentDescription*>( |
3505 jdesc.description()->GetContentByName(kVideoContentName)->description); | 3505 jdesc.description()->GetContentByName(kVideoContentName)->description); |
3506 EXPECT_EQ(audio_desc_->connection_address().ToString(), | 3506 EXPECT_EQ(audio_desc_->connection_address().ToString(), |
3507 audio_desc->connection_address().ToString()); | 3507 audio_desc->connection_address().ToString()); |
3508 EXPECT_EQ(video_desc_->connection_address().ToString(), | 3508 EXPECT_EQ(video_desc_->connection_address().ToString(), |
3509 video_desc->connection_address().ToString()); | 3509 video_desc->connection_address().ToString()); |
3510 } | 3510 } |
OLD | NEW |