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

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

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location for peerconnection_unittests.isolate Created 4 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * Copyright 2011 The WebRTC project authors. All Rights Reserved.
3 * Copyright 2011 Google Inc.
4 * 3 *
5 * Redistribution and use in source and binary forms, with or without 4 * Use of this source code is governed by a BSD-style license
6 * modification, are permitted provided that the following conditions are met: 5 * that can be found in the LICENSE file in the root of the source
7 * 6 * tree. An additional intellectual property rights grant can be found
8 * 1. Redistributions of source code must retain the above copyright notice, 7 * in the file PATENTS. All contributing project authors may
9 * this list of conditions and the following disclaimer. 8 * be found in the AUTHORS file in the root of the source tree.
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 9 */
27 10
28 #include <set> 11 #include <set>
29 #include <string> 12 #include <string>
30 #include <vector> 13 #include <vector>
31 14
32 #include "talk/app/webrtc/jsepsessiondescription.h" 15 #include "webrtc/api/jsepsessiondescription.h"
33 #ifdef WEBRTC_ANDROID 16 #ifdef WEBRTC_ANDROID
34 #include "talk/app/webrtc/test/androidtestinitializer.h" 17 #include "webrtc/api/test/androidtestinitializer.h"
35 #endif 18 #endif
36 #include "talk/app/webrtc/webrtcsdp.h" 19 #include "webrtc/api/webrtcsdp.h"
37 #include "talk/media/base/constants.h" 20 #include "talk/media/base/constants.h"
38 #include "webrtc/p2p/base/constants.h"
39 #include "talk/session/media/mediasession.h" 21 #include "talk/session/media/mediasession.h"
40 #include "webrtc/base/gunit.h" 22 #include "webrtc/base/gunit.h"
41 #include "webrtc/base/logging.h" 23 #include "webrtc/base/logging.h"
42 #include "webrtc/base/messagedigest.h" 24 #include "webrtc/base/messagedigest.h"
43 #include "webrtc/base/scoped_ptr.h" 25 #include "webrtc/base/scoped_ptr.h"
44 #include "webrtc/base/sslfingerprint.h" 26 #include "webrtc/base/sslfingerprint.h"
45 #include "webrtc/base/stringencode.h" 27 #include "webrtc/base/stringencode.h"
46 #include "webrtc/base/stringutils.h" 28 #include "webrtc/base/stringutils.h"
29 #include "webrtc/p2p/base/constants.h"
47 30
48 using cricket::AudioCodec; 31 using cricket::AudioCodec;
49 using cricket::AudioContentDescription; 32 using cricket::AudioContentDescription;
50 using cricket::Candidate; 33 using cricket::Candidate;
51 using cricket::ContentInfo; 34 using cricket::ContentInfo;
52 using cricket::CryptoParams; 35 using cricket::CryptoParams;
53 using cricket::ContentGroup; 36 using cricket::ContentGroup;
54 using cricket::DataCodec; 37 using cricket::DataCodec;
55 using cricket::DataContentDescription; 38 using cricket::DataContentDescription;
56 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; 39 using cricket::ICE_CANDIDATE_COMPONENT_RTCP;
(...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2752 const cricket::MediaContentDescription* mdesc = 2735 const cricket::MediaContentDescription* mdesc =
2753 static_cast<const cricket::MediaContentDescription*>( 2736 static_cast<const cricket::MediaContentDescription*>(
2754 desc->contents()[i].description); 2737 desc->contents()[i].description);
2755 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type()); 2738 EXPECT_EQ(media_types[media_content_in_sdp[i]], mdesc->type());
2756 } 2739 }
2757 2740
2758 std::string serialized_sdp = webrtc::SdpSerialize(jdesc); 2741 std::string serialized_sdp = webrtc::SdpSerialize(jdesc);
2759 EXPECT_EQ(sdp_string, serialized_sdp); 2742 EXPECT_EQ(sdp_string, serialized_sdp);
2760 } 2743 }
2761 } 2744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698