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

Side by Side Diff: webrtc/pc/peerconnection_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/peerconnection.cc ('k') | webrtc/pc/peerconnectionendtoend_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 <stdio.h> 11 #include <stdio.h>
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <list> 14 #include <list>
15 #include <map> 15 #include <map>
16 #include <memory> 16 #include <memory>
17 #include <utility> 17 #include <utility>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/api/dtmfsender.h"
21 #include "webrtc/api/fakemetricsobserver.h" 20 #include "webrtc/api/fakemetricsobserver.h"
22 #include "webrtc/api/localaudiosource.h"
23 #include "webrtc/api/mediastreaminterface.h" 21 #include "webrtc/api/mediastreaminterface.h"
24 #include "webrtc/api/peerconnection.h"
25 #include "webrtc/api/peerconnectionfactory.h"
26 #include "webrtc/api/peerconnectioninterface.h" 22 #include "webrtc/api/peerconnectioninterface.h"
27 #include "webrtc/api/test/fakeaudiocapturemodule.h"
28 #include "webrtc/api/test/fakeconstraints.h" 23 #include "webrtc/api/test/fakeconstraints.h"
29 #include "webrtc/api/test/fakeperiodicvideocapturer.h"
30 #include "webrtc/api/test/fakertccertificategenerator.h"
31 #include "webrtc/api/test/fakevideotrackrenderer.h"
32 #include "webrtc/api/test/mockpeerconnectionobservers.h"
33 #include "webrtc/base/fakenetwork.h" 24 #include "webrtc/base/fakenetwork.h"
34 #include "webrtc/base/gunit.h" 25 #include "webrtc/base/gunit.h"
35 #include "webrtc/base/helpers.h" 26 #include "webrtc/base/helpers.h"
36 #include "webrtc/base/physicalsocketserver.h" 27 #include "webrtc/base/physicalsocketserver.h"
37 #include "webrtc/base/ssladapter.h" 28 #include "webrtc/base/ssladapter.h"
38 #include "webrtc/base/sslstreamadapter.h" 29 #include "webrtc/base/sslstreamadapter.h"
39 #include "webrtc/base/thread.h" 30 #include "webrtc/base/thread.h"
40 #include "webrtc/base/virtualsocketserver.h" 31 #include "webrtc/base/virtualsocketserver.h"
41 #include "webrtc/media/engine/fakewebrtcvideoengine.h" 32 #include "webrtc/media/engine/fakewebrtcvideoengine.h"
42 #include "webrtc/p2p/base/p2pconstants.h" 33 #include "webrtc/p2p/base/p2pconstants.h"
43 #include "webrtc/p2p/base/portinterface.h" 34 #include "webrtc/p2p/base/portinterface.h"
44 #include "webrtc/p2p/base/sessiondescription.h" 35 #include "webrtc/p2p/base/sessiondescription.h"
45 #include "webrtc/p2p/base/testturnserver.h" 36 #include "webrtc/p2p/base/testturnserver.h"
46 #include "webrtc/p2p/client/basicportallocator.h" 37 #include "webrtc/p2p/client/basicportallocator.h"
38 #include "webrtc/pc/dtmfsender.h"
39 #include "webrtc/pc/localaudiosource.h"
47 #include "webrtc/pc/mediasession.h" 40 #include "webrtc/pc/mediasession.h"
41 #include "webrtc/pc/peerconnection.h"
42 #include "webrtc/pc/peerconnectionfactory.h"
43 #include "webrtc/pc/test/fakeaudiocapturemodule.h"
44 #include "webrtc/pc/test/fakeperiodicvideocapturer.h"
45 #include "webrtc/pc/test/fakertccertificategenerator.h"
46 #include "webrtc/pc/test/fakevideotrackrenderer.h"
47 #include "webrtc/pc/test/mockpeerconnectionobservers.h"
48 48
49 #define MAYBE_SKIP_TEST(feature) \ 49 #define MAYBE_SKIP_TEST(feature) \
50 if (!(feature())) { \ 50 if (!(feature())) { \
51 LOG(LS_INFO) << "Feature disabled... skipping"; \ 51 LOG(LS_INFO) << "Feature disabled... skipping"; \
52 return; \ 52 return; \
53 } 53 }
54 54
55 using cricket::ContentInfo; 55 using cricket::ContentInfo;
56 using cricket::FakeWebRtcVideoDecoder; 56 using cricket::FakeWebRtcVideoDecoder;
57 using cricket::FakeWebRtcVideoDecoderFactory; 57 using cricket::FakeWebRtcVideoDecoderFactory;
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 servers.push_back(server); 2835 servers.push_back(server);
2836 EXPECT_EQ(webrtc::RTCErrorType::NONE, 2836 EXPECT_EQ(webrtc::RTCErrorType::NONE,
2837 webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_)); 2837 webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_));
2838 EXPECT_EQ(2U, turn_servers_.size()); 2838 EXPECT_EQ(2U, turn_servers_.size());
2839 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority); 2839 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority);
2840 } 2840 }
2841 2841
2842 #endif // if !defined(THREAD_SANITIZER) 2842 #endif // if !defined(THREAD_SANITIZER)
2843 2843
2844 } // namespace 2844 } // namespace
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnection.cc ('k') | webrtc/pc/peerconnectionendtoend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698