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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 4 years 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 * 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"
17 #ifdef WEBRTC_ANDROID
18 #include "webrtc/api/test/androidtestinitializer.h"
19 #endif
20 #include "webrtc/api/webrtcsdp.h"
21 #include "webrtc/base/gunit.h" 16 #include "webrtc/base/gunit.h"
22 #include "webrtc/base/logging.h" 17 #include "webrtc/base/logging.h"
23 #include "webrtc/base/messagedigest.h" 18 #include "webrtc/base/messagedigest.h"
24 #include "webrtc/base/sslfingerprint.h" 19 #include "webrtc/base/sslfingerprint.h"
25 #include "webrtc/base/stringencode.h" 20 #include "webrtc/base/stringencode.h"
26 #include "webrtc/base/stringutils.h" 21 #include "webrtc/base/stringutils.h"
27 #include "webrtc/media/base/mediaconstants.h" 22 #include "webrtc/media/base/mediaconstants.h"
28 #include "webrtc/media/engine/webrtcvideoengine2.h" 23 #include "webrtc/media/engine/webrtcvideoengine2.h"
29 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" 24 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h"
30 #include "webrtc/p2p/base/p2pconstants.h" 25 #include "webrtc/p2p/base/p2pconstants.h"
26 #include "webrtc/pc/jsepsessiondescription.h"
31 #include "webrtc/pc/mediasession.h" 27 #include "webrtc/pc/mediasession.h"
28 #ifdef WEBRTC_ANDROID
29 #include "webrtc/pc/test/androidtestinitializer.h"
30 #endif
31 #include "webrtc/pc/webrtcsdp.h"
32 32
33 using cricket::AudioCodec; 33 using cricket::AudioCodec;
34 using cricket::AudioContentDescription; 34 using cricket::AudioContentDescription;
35 using cricket::Candidate; 35 using cricket::Candidate;
36 using cricket::ContentInfo; 36 using cricket::ContentInfo;
37 using cricket::CryptoParams; 37 using cricket::CryptoParams;
38 using cricket::ContentGroup; 38 using cricket::ContentGroup;
39 using cricket::DataCodec; 39 using cricket::DataCodec;
40 using cricket::DataContentDescription; 40 using cricket::DataContentDescription;
41 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; 41 using cricket::ICE_CANDIDATE_COMPONENT_RTCP;
(...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3331 "v=0\r\n" 3331 "v=0\r\n"
3332 "o=- 18446744069414584320 18446462598732840960 IN IP4 127.0.0.1\r\n" 3332 "o=- 18446744069414584320 18446462598732840960 IN IP4 127.0.0.1\r\n"
3333 "s=-\r\n" 3333 "s=-\r\n"
3334 "t=0 0\r\n" 3334 "t=0 0\r\n"
3335 "m=video 3457 RTP/SAVPF 120\r\n" 3335 "m=video 3457 RTP/SAVPF 120\r\n"
3336 "b=AS:2147483647\r\n" 3336 "b=AS:2147483647\r\n"
3337 "foo=fail\r\n"; 3337 "foo=fail\r\n";
3338 3338
3339 ExpectParseFailure(std::string(kSdpWithLargeBandwidth), "foo=fail"); 3339 ExpectParseFailure(std::string(kSdpWithLargeBandwidth), "foo=fail");
3340 } 3340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698