| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include <set> | 28 #include <set> |
| 29 #include <string> | 29 #include <string> |
| 30 #include <vector> | 30 #include <vector> |
| 31 | 31 |
| 32 #include "talk/app/webrtc/jsepsessiondescription.h" | 32 #include "talk/app/webrtc/jsepsessiondescription.h" |
| 33 #ifdef WEBRTC_ANDROID | 33 #ifdef WEBRTC_ANDROID |
| 34 #include "talk/app/webrtc/test/androidtestinitializer.h" | 34 #include "talk/app/webrtc/test/androidtestinitializer.h" |
| 35 #endif | 35 #endif |
| 36 #include "talk/app/webrtc/webrtcsdp.h" | 36 #include "talk/app/webrtc/webrtcsdp.h" |
| 37 #include "talk/media/base/constants.h" | |
| 38 #include "webrtc/p2p/base/constants.h" | |
| 39 #include "talk/session/media/mediasession.h" | 37 #include "talk/session/media/mediasession.h" |
| 40 #include "webrtc/base/gunit.h" | 38 #include "webrtc/base/gunit.h" |
| 41 #include "webrtc/base/logging.h" | 39 #include "webrtc/base/logging.h" |
| 42 #include "webrtc/base/messagedigest.h" | 40 #include "webrtc/base/messagedigest.h" |
| 43 #include "webrtc/base/scoped_ptr.h" | 41 #include "webrtc/base/scoped_ptr.h" |
| 44 #include "webrtc/base/sslfingerprint.h" | 42 #include "webrtc/base/sslfingerprint.h" |
| 45 #include "webrtc/base/stringencode.h" | 43 #include "webrtc/base/stringencode.h" |
| 46 #include "webrtc/base/stringutils.h" | 44 #include "webrtc/base/stringutils.h" |
| 45 #include "webrtc/media/base/constants.h" |
| 46 #include "webrtc/p2p/base/constants.h" |
| 47 | 47 |
| 48 using cricket::AudioCodec; | 48 using cricket::AudioCodec; |
| 49 using cricket::AudioContentDescription; | 49 using cricket::AudioContentDescription; |
| 50 using cricket::Candidate; | 50 using cricket::Candidate; |
| 51 using cricket::ContentInfo; | 51 using cricket::ContentInfo; |
| 52 using cricket::CryptoParams; | 52 using cricket::CryptoParams; |
| 53 using cricket::ContentGroup; | 53 using cricket::ContentGroup; |
| 54 using cricket::DataCodec; | 54 using cricket::DataCodec; |
| 55 using cricket::DataContentDescription; | 55 using cricket::DataContentDescription; |
| 56 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; | 56 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; |
| (...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2732 const cricket::MediaContentDescription* mdesc = | 2732 const cricket::MediaContentDescription* mdesc = |
| 2733 static_cast<const cricket::MediaContentDescription*>( | 2733 static_cast<const cricket::MediaContentDescription*>( |
| 2734 desc->contents()[i].description); | 2734 desc->contents()[i].description); |
| 2735 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type()); | 2735 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type()); |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 std::string serialized_sdp = webrtc::SdpSerialize(jdesc); | 2738 std::string serialized_sdp = webrtc::SdpSerialize(jdesc); |
| 2739 EXPECT_EQ(sdp_string, serialized_sdp); | 2739 EXPECT_EQ(sdp_string, serialized_sdp); |
| 2740 } | 2740 } |
| 2741 } | 2741 } |
| OLD | NEW |