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

Side by Side Diff: webrtc/pc/peerconnectionendtoend_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_unittest.cc ('k') | webrtc/pc/peerconnectionfactory.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 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 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 12
13 #include "webrtc/api/test/peerconnectiontestwrapper.h"
14 // Notice that mockpeerconnectionobservers.h must be included after the above!
15 #include "webrtc/api/test/mockpeerconnectionobservers.h"
16 #ifdef WEBRTC_ANDROID
17 #include "webrtc/api/test/androidtestinitializer.h"
18 #endif
19 #include "webrtc/base/gunit.h" 13 #include "webrtc/base/gunit.h"
20 #include "webrtc/base/logging.h" 14 #include "webrtc/base/logging.h"
21 #include "webrtc/base/ssladapter.h" 15 #include "webrtc/base/ssladapter.h"
22 #include "webrtc/base/thread.h" 16 #include "webrtc/base/thread.h"
23 #include "webrtc/base/sslstreamadapter.h" 17 #include "webrtc/base/sslstreamadapter.h"
24 #include "webrtc/base/stringencode.h" 18 #include "webrtc/base/stringencode.h"
25 #include "webrtc/base/stringutils.h" 19 #include "webrtc/base/stringutils.h"
20 #ifdef WEBRTC_ANDROID
21 #include "webrtc/pc/test/androidtestinitializer.h"
22 #endif
23 #include "webrtc/pc/test/peerconnectiontestwrapper.h"
24 // Notice that mockpeerconnectionobservers.h must be included after the above!
25 #include "webrtc/pc/test/mockpeerconnectionobservers.h"
26 26
27 #define MAYBE_SKIP_TEST(feature) \ 27 #define MAYBE_SKIP_TEST(feature) \
28 if (!(feature())) { \ 28 if (!(feature())) { \
29 LOG(LS_INFO) << "Feature disabled... skipping"; \ 29 LOG(LS_INFO) << "Feature disabled... skipping"; \
30 return; \ 30 return; \
31 } 31 }
32 32
33 using webrtc::DataChannelInterface; 33 using webrtc::DataChannelInterface;
34 using webrtc::FakeConstraints; 34 using webrtc::FakeConstraints;
35 using webrtc::MediaConstraintsInterface; 35 using webrtc::MediaConstraintsInterface;
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // This removes the reference to the remote data channel that we hold. 452 // This removes the reference to the remote data channel that we hold.
453 callee_signaled_data_channels_.clear(); 453 callee_signaled_data_channels_.clear();
454 caller_dc->Close(); 454 caller_dc->Close();
455 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait); 455 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait);
456 456
457 // Wait for a bit longer so the remote data channel will receive the 457 // Wait for a bit longer so the remote data channel will receive the
458 // close message and be destroyed. 458 // close message and be destroyed.
459 rtc::Thread::Current()->ProcessMessages(100); 459 rtc::Thread::Current()->ProcessMessages(100);
460 } 460 }
461 #endif // HAVE_SCTP 461 #endif // HAVE_SCTP
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnection_unittest.cc ('k') | webrtc/pc/peerconnectionfactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698