| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |