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

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

Issue 1691463002: Move talk/session/media -> webrtc/pc (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Last rebase Created 4 years, 10 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/api/peerconnectionfactory.h ('k') | webrtc/api/rtpsenderinterface.h » ('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 <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "talk/session/media/mediasession.h"
15 #include "webrtc/api/audiotrack.h" 14 #include "webrtc/api/audiotrack.h"
16 #include "webrtc/api/jsepsessiondescription.h" 15 #include "webrtc/api/jsepsessiondescription.h"
17 #include "webrtc/api/mediastream.h" 16 #include "webrtc/api/mediastream.h"
18 #include "webrtc/api/mediastreaminterface.h" 17 #include "webrtc/api/mediastreaminterface.h"
19 #include "webrtc/api/peerconnection.h" 18 #include "webrtc/api/peerconnection.h"
20 #include "webrtc/api/peerconnectioninterface.h" 19 #include "webrtc/api/peerconnectioninterface.h"
21 #include "webrtc/api/rtpreceiverinterface.h" 20 #include "webrtc/api/rtpreceiverinterface.h"
22 #include "webrtc/api/rtpsenderinterface.h" 21 #include "webrtc/api/rtpsenderinterface.h"
23 #include "webrtc/api/streamcollection.h" 22 #include "webrtc/api/streamcollection.h"
24 #ifdef WEBRTC_ANDROID 23 #ifdef WEBRTC_ANDROID
25 #include "webrtc/api/test/androidtestinitializer.h" 24 #include "webrtc/api/test/androidtestinitializer.h"
26 #endif 25 #endif
27 #include "webrtc/api/test/fakeconstraints.h" 26 #include "webrtc/api/test/fakeconstraints.h"
28 #include "webrtc/api/test/fakedtlsidentitystore.h" 27 #include "webrtc/api/test/fakedtlsidentitystore.h"
29 #include "webrtc/api/test/mockpeerconnectionobservers.h" 28 #include "webrtc/api/test/mockpeerconnectionobservers.h"
30 #include "webrtc/api/test/testsdpstrings.h" 29 #include "webrtc/api/test/testsdpstrings.h"
31 #include "webrtc/api/videosource.h" 30 #include "webrtc/api/videosource.h"
32 #include "webrtc/api/videotrack.h" 31 #include "webrtc/api/videotrack.h"
33 #include "webrtc/base/gunit.h" 32 #include "webrtc/base/gunit.h"
34 #include "webrtc/base/scoped_ptr.h" 33 #include "webrtc/base/scoped_ptr.h"
35 #include "webrtc/base/ssladapter.h" 34 #include "webrtc/base/ssladapter.h"
36 #include "webrtc/base/sslstreamadapter.h" 35 #include "webrtc/base/sslstreamadapter.h"
37 #include "webrtc/base/stringutils.h" 36 #include "webrtc/base/stringutils.h"
38 #include "webrtc/base/thread.h" 37 #include "webrtc/base/thread.h"
39 #include "webrtc/media/base/fakevideocapturer.h" 38 #include "webrtc/media/base/fakevideocapturer.h"
40 #include "webrtc/media/sctp/sctpdataengine.h" 39 #include "webrtc/media/sctp/sctpdataengine.h"
41 #include "webrtc/p2p/client/fakeportallocator.h" 40 #include "webrtc/p2p/client/fakeportallocator.h"
41 #include "webrtc/pc/mediasession.h"
42 42
43 static const char kStreamLabel1[] = "local_stream_1"; 43 static const char kStreamLabel1[] = "local_stream_1";
44 static const char kStreamLabel2[] = "local_stream_2"; 44 static const char kStreamLabel2[] = "local_stream_2";
45 static const char kStreamLabel3[] = "local_stream_3"; 45 static const char kStreamLabel3[] = "local_stream_3";
46 static const int kDefaultStunPort = 3478; 46 static const int kDefaultStunPort = 3478;
47 static const char kStunAddressOnly[] = "stun:address"; 47 static const char kStunAddressOnly[] = "stun:address";
48 static const char kStunInvalidPort[] = "stun:address:-1"; 48 static const char kStunInvalidPort[] = "stun:address:-1";
49 static const char kStunAddressPortAndMore1[] = "stun:address:port:more"; 49 static const char kStunAddressPortAndMore1[] = "stun:address:port:more";
50 static const char kStunAddressPortAndMore2[] = "stun:address:port more"; 50 static const char kStunAddressPortAndMore2[] = "stun:address:port more";
51 static const char kTurnIceServerUri[] = "turn:user@turn.example.org"; 51 static const char kTurnIceServerUri[] = "turn:user@turn.example.org";
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 FakeConstraints updated_answer_c; 2489 FakeConstraints updated_answer_c;
2490 answer_c.SetMandatoryReceiveAudio(false); 2490 answer_c.SetMandatoryReceiveAudio(false);
2491 answer_c.SetMandatoryReceiveVideo(false); 2491 answer_c.SetMandatoryReceiveVideo(false);
2492 2492
2493 cricket::MediaSessionOptions updated_answer_options; 2493 cricket::MediaSessionOptions updated_answer_options;
2494 EXPECT_TRUE( 2494 EXPECT_TRUE(
2495 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); 2495 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options));
2496 EXPECT_TRUE(updated_answer_options.has_audio()); 2496 EXPECT_TRUE(updated_answer_options.has_audio());
2497 EXPECT_TRUE(updated_answer_options.has_video()); 2497 EXPECT_TRUE(updated_answer_options.has_video());
2498 } 2498 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectionfactory.h ('k') | webrtc/api/rtpsenderinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698