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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « webrtc/pc/peerconnectionfactory_unittest.cc ('k') | webrtc/pc/proxy_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 <sstream> 12 #include <sstream>
13 #include <string> 13 #include <string>
14 #include <utility> 14 #include <utility>
15 15
16 #include "webrtc/api/audiotrack.h"
17 #include "webrtc/api/jsepsessiondescription.h" 16 #include "webrtc/api/jsepsessiondescription.h"
18 #include "webrtc/api/mediastream.h"
19 #include "webrtc/api/mediastreaminterface.h" 17 #include "webrtc/api/mediastreaminterface.h"
20 #include "webrtc/api/peerconnection.h"
21 #include "webrtc/api/peerconnectioninterface.h" 18 #include "webrtc/api/peerconnectioninterface.h"
22 #include "webrtc/api/rtpreceiverinterface.h" 19 #include "webrtc/api/rtpreceiverinterface.h"
23 #include "webrtc/api/rtpsenderinterface.h" 20 #include "webrtc/api/rtpsenderinterface.h"
24 #include "webrtc/api/streamcollection.h"
25 #include "webrtc/api/test/fakeconstraints.h" 21 #include "webrtc/api/test/fakeconstraints.h"
26 #include "webrtc/api/test/fakertccertificategenerator.h"
27 #include "webrtc/api/test/fakevideotracksource.h"
28 #include "webrtc/api/test/mockpeerconnectionobservers.h"
29 #include "webrtc/api/test/testsdpstrings.h"
30 #include "webrtc/api/videocapturertracksource.h"
31 #include "webrtc/api/videotrack.h"
32 #include "webrtc/base/gunit.h" 22 #include "webrtc/base/gunit.h"
33 #include "webrtc/base/ssladapter.h" 23 #include "webrtc/base/ssladapter.h"
34 #include "webrtc/base/sslstreamadapter.h" 24 #include "webrtc/base/sslstreamadapter.h"
35 #include "webrtc/base/stringutils.h" 25 #include "webrtc/base/stringutils.h"
36 #include "webrtc/base/thread.h" 26 #include "webrtc/base/thread.h"
37 #include "webrtc/media/base/fakevideocapturer.h" 27 #include "webrtc/media/base/fakevideocapturer.h"
38 #include "webrtc/media/sctp/sctptransportinternal.h" 28 #include "webrtc/media/sctp/sctptransportinternal.h"
39 #include "webrtc/p2p/base/fakeportallocator.h" 29 #include "webrtc/p2p/base/fakeportallocator.h"
40 #include "webrtc/p2p/base/faketransportcontroller.h" 30 #include "webrtc/p2p/base/faketransportcontroller.h"
31 #include "webrtc/pc/audiotrack.h"
41 #include "webrtc/pc/mediasession.h" 32 #include "webrtc/pc/mediasession.h"
33 #include "webrtc/pc/mediastream.h"
34 #include "webrtc/pc/peerconnection.h"
35 #include "webrtc/pc/streamcollection.h"
36 #include "webrtc/pc/test/fakertccertificategenerator.h"
37 #include "webrtc/pc/test/fakevideotracksource.h"
38 #include "webrtc/pc/test/mockpeerconnectionobservers.h"
39 #include "webrtc/pc/test/testsdpstrings.h"
40 #include "webrtc/pc/videocapturertracksource.h"
41 #include "webrtc/pc/videotrack.h"
42 #include "webrtc/test/gmock.h" 42 #include "webrtc/test/gmock.h"
43 43
44 #ifdef WEBRTC_ANDROID 44 #ifdef WEBRTC_ANDROID
45 #include "webrtc/api/test/androidtestinitializer.h" 45 #include "webrtc/pc/test/androidtestinitializer.h"
46 #endif 46 #endif
47 47
48 static const char kStreamLabel1[] = "local_stream_1"; 48 static const char kStreamLabel1[] = "local_stream_1";
49 static const char kStreamLabel2[] = "local_stream_2"; 49 static const char kStreamLabel2[] = "local_stream_2";
50 static const char kStreamLabel3[] = "local_stream_3"; 50 static const char kStreamLabel3[] = "local_stream_3";
51 static const int kDefaultStunPort = 3478; 51 static const int kDefaultStunPort = 3478;
52 static const char kStunAddressOnly[] = "stun:address"; 52 static const char kStunAddressOnly[] = "stun:address";
53 static const char kStunInvalidPort[] = "stun:address:-1"; 53 static const char kStunInvalidPort[] = "stun:address:-1";
54 static const char kStunAddressPortAndMore1[] = "stun:address:port:more"; 54 static const char kStunAddressPortAndMore1[] = "stun:address:port:more";
55 static const char kStunAddressPortAndMore2[] = "stun:address:port more"; 55 static const char kStunAddressPortAndMore2[] = "stun:address:port more";
(...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 EXPECT_NE(a, f); 3403 EXPECT_NE(a, f);
3404 3404
3405 PeerConnectionInterface::RTCConfiguration g; 3405 PeerConnectionInterface::RTCConfiguration g;
3406 g.disable_ipv6 = true; 3406 g.disable_ipv6 = true;
3407 EXPECT_NE(a, g); 3407 EXPECT_NE(a, g);
3408 3408
3409 PeerConnectionInterface::RTCConfiguration h( 3409 PeerConnectionInterface::RTCConfiguration h(
3410 PeerConnectionInterface::RTCConfigurationType::kAggressive); 3410 PeerConnectionInterface::RTCConfigurationType::kAggressive);
3411 EXPECT_NE(a, h); 3411 EXPECT_NE(a, h);
3412 } 3412 }
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnectionfactory_unittest.cc ('k') | webrtc/pc/proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698