| 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/audio_codecs/builtin_audio_decoder_factory.h" | 13 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 14 #include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h" | 14 #include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h" |
| 15 #include "webrtc/base/gunit.h" | 15 #include "webrtc/rtc_base/gunit.h" |
| 16 #include "webrtc/base/logging.h" | 16 #include "webrtc/rtc_base/logging.h" |
| 17 #include "webrtc/base/ptr_util.h" | 17 #include "webrtc/rtc_base/ptr_util.h" |
| 18 #include "webrtc/base/ssladapter.h" | 18 #include "webrtc/rtc_base/ssladapter.h" |
| 19 #include "webrtc/base/sslstreamadapter.h" | 19 #include "webrtc/rtc_base/sslstreamadapter.h" |
| 20 #include "webrtc/base/stringencode.h" | 20 #include "webrtc/rtc_base/stringencode.h" |
| 21 #include "webrtc/base/stringutils.h" | 21 #include "webrtc/rtc_base/stringutils.h" |
| 22 #include "webrtc/base/thread.h" | 22 #include "webrtc/rtc_base/thread.h" |
| 23 #ifdef WEBRTC_ANDROID | 23 #ifdef WEBRTC_ANDROID |
| 24 #include "webrtc/pc/test/androidtestinitializer.h" | 24 #include "webrtc/pc/test/androidtestinitializer.h" |
| 25 #endif | 25 #endif |
| 26 #include "webrtc/pc/test/peerconnectiontestwrapper.h" | 26 #include "webrtc/pc/test/peerconnectiontestwrapper.h" |
| 27 // Notice that mockpeerconnectionobservers.h must be included after the above! | 27 // Notice that mockpeerconnectionobservers.h must be included after the above! |
| 28 #include "webrtc/pc/test/mockpeerconnectionobservers.h" | 28 #include "webrtc/pc/test/mockpeerconnectionobservers.h" |
| 29 #include "webrtc/test/mock_audio_decoder.h" | 29 #include "webrtc/test/mock_audio_decoder.h" |
| 30 #include "webrtc/test/mock_audio_decoder_factory.h" | 30 #include "webrtc/test/mock_audio_decoder_factory.h" |
| 31 | 31 |
| 32 using testing::AtLeast; | 32 using testing::AtLeast; |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 // This removes the reference to the remote data channel that we hold. | 538 // This removes the reference to the remote data channel that we hold. |
| 539 callee_signaled_data_channels_.clear(); | 539 callee_signaled_data_channels_.clear(); |
| 540 caller_dc->Close(); | 540 caller_dc->Close(); |
| 541 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait); | 541 EXPECT_EQ_WAIT(DataChannelInterface::kClosed, caller_dc->state(), kMaxWait); |
| 542 | 542 |
| 543 // Wait for a bit longer so the remote data channel will receive the | 543 // Wait for a bit longer so the remote data channel will receive the |
| 544 // close message and be destroyed. | 544 // close message and be destroyed. |
| 545 rtc::Thread::Current()->ProcessMessages(100); | 545 rtc::Thread::Current()->ProcessMessages(100); |
| 546 } | 546 } |
| 547 #endif // HAVE_SCTP | 547 #endif // HAVE_SCTP |
| OLD | NEW |