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

Side by Side Diff: webrtc/pc/peerconnectionendtoend_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 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 WaitForDataChannelsToOpen(caller_dc, callee_signaled_data_channels_, 0); 448 WaitForDataChannelsToOpen(caller_dc, callee_signaled_data_channels_, 0);
449 // This removes the reference to the remote data channel that we hold. 449 // This removes the reference to the remote data channel that we hold.
450 callee_signaled_data_channels_.clear(); 450 callee_signaled_data_channels_.clear();
451 caller_dc->Close(); 451 caller_dc->Close();
452 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait); 452 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait);
453 453
454 // Wait for a bit longer so the remote data channel will receive the 454 // Wait for a bit longer so the remote data channel will receive the
455 // close message and be destroyed. 455 // close message and be destroyed.
456 rtc::Thread::Current()->ProcessMessages(100); 456 rtc::Thread::Current()->ProcessMessages(100);
457 } 457 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698