| 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 <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "talk/session/media/mediasession.h" | |
| 16 #include "webrtc/api/jsepsessiondescription.h" | 15 #include "webrtc/api/jsepsessiondescription.h" |
| 17 #ifdef WEBRTC_ANDROID | 16 #ifdef WEBRTC_ANDROID |
| 18 #include "webrtc/api/test/androidtestinitializer.h" | 17 #include "webrtc/api/test/androidtestinitializer.h" |
| 19 #endif | 18 #endif |
| 20 #include "webrtc/api/webrtcsdp.h" | 19 #include "webrtc/api/webrtcsdp.h" |
| 21 #include "webrtc/base/gunit.h" | 20 #include "webrtc/base/gunit.h" |
| 22 #include "webrtc/base/logging.h" | 21 #include "webrtc/base/logging.h" |
| 23 #include "webrtc/base/messagedigest.h" | 22 #include "webrtc/base/messagedigest.h" |
| 24 #include "webrtc/base/scoped_ptr.h" | 23 #include "webrtc/base/scoped_ptr.h" |
| 25 #include "webrtc/base/sslfingerprint.h" | 24 #include "webrtc/base/sslfingerprint.h" |
| 26 #include "webrtc/base/stringencode.h" | 25 #include "webrtc/base/stringencode.h" |
| 27 #include "webrtc/base/stringutils.h" | 26 #include "webrtc/base/stringutils.h" |
| 28 #include "webrtc/media/base/constants.h" | 27 #include "webrtc/media/base/constants.h" |
| 29 #include "webrtc/p2p/base/constants.h" | 28 #include "webrtc/p2p/base/constants.h" |
| 29 #include "webrtc/pc/mediasession.h" |
| 30 | 30 |
| 31 using cricket::AudioCodec; | 31 using cricket::AudioCodec; |
| 32 using cricket::AudioContentDescription; | 32 using cricket::AudioContentDescription; |
| 33 using cricket::Candidate; | 33 using cricket::Candidate; |
| 34 using cricket::ContentInfo; | 34 using cricket::ContentInfo; |
| 35 using cricket::CryptoParams; | 35 using cricket::CryptoParams; |
| 36 using cricket::ContentGroup; | 36 using cricket::ContentGroup; |
| 37 using cricket::DataCodec; | 37 using cricket::DataCodec; |
| 38 using cricket::DataContentDescription; | 38 using cricket::DataContentDescription; |
| 39 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; | 39 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; |
| (...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2715 const cricket::MediaContentDescription* mdesc = | 2715 const cricket::MediaContentDescription* mdesc = |
| 2716 static_cast<const cricket::MediaContentDescription*>( | 2716 static_cast<const cricket::MediaContentDescription*>( |
| 2717 desc->contents()[i].description); | 2717 desc->contents()[i].description); |
| 2718 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type()); | 2718 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type()); |
| 2719 } | 2719 } |
| 2720 | 2720 |
| 2721 std::string serialized_sdp = webrtc::SdpSerialize(jdesc); | 2721 std::string serialized_sdp = webrtc::SdpSerialize(jdesc); |
| 2722 EXPECT_EQ(sdp_string, serialized_sdp); | 2722 EXPECT_EQ(sdp_string, serialized_sdp); |
| 2723 } | 2723 } |
| 2724 } | 2724 } |
| OLD | NEW |