OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2009 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/base/array_view.h" | |
14 #include "webrtc/base/buffer.h" | |
15 #include "webrtc/base/checks.h" | |
16 #include "webrtc/base/fakeclock.h" | |
17 #include "webrtc/base/gunit.h" | |
18 #include "webrtc/base/logging.h" | |
19 #include "webrtc/base/sslstreamadapter.h" | |
20 #include "webrtc/media/base/fakemediaengine.h" | 13 #include "webrtc/media/base/fakemediaengine.h" |
21 #include "webrtc/media/base/fakertp.h" | 14 #include "webrtc/media/base/fakertp.h" |
22 #include "webrtc/media/base/mediachannel.h" | 15 #include "webrtc/media/base/mediachannel.h" |
23 #include "webrtc/media/base/testutils.h" | 16 #include "webrtc/media/base/testutils.h" |
24 #include "webrtc/p2p/base/fakecandidatepair.h" | 17 #include "webrtc/p2p/base/fakecandidatepair.h" |
25 #include "webrtc/p2p/base/fakedtlstransport.h" | 18 #include "webrtc/p2p/base/fakedtlstransport.h" |
26 #include "webrtc/p2p/base/fakepackettransport.h" | 19 #include "webrtc/p2p/base/fakepackettransport.h" |
27 #include "webrtc/pc/channel.h" | 20 #include "webrtc/pc/channel.h" |
| 21 #include "webrtc/rtc_base/array_view.h" |
| 22 #include "webrtc/rtc_base/buffer.h" |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/rtc_base/fakeclock.h" |
| 25 #include "webrtc/rtc_base/gunit.h" |
| 26 #include "webrtc/rtc_base/logging.h" |
| 27 #include "webrtc/rtc_base/sslstreamadapter.h" |
28 | 28 |
29 using cricket::CA_OFFER; | 29 using cricket::CA_OFFER; |
30 using cricket::CA_PRANSWER; | 30 using cricket::CA_PRANSWER; |
31 using cricket::CA_ANSWER; | 31 using cricket::CA_ANSWER; |
32 using cricket::CA_UPDATE; | 32 using cricket::CA_UPDATE; |
33 using cricket::DtlsTransportInternal; | 33 using cricket::DtlsTransportInternal; |
34 using cricket::FakeVoiceMediaChannel; | 34 using cricket::FakeVoiceMediaChannel; |
35 using cricket::StreamParams; | 35 using cricket::StreamParams; |
36 | 36 |
37 namespace { | 37 namespace { |
(...skipping 3861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3899 ASSERT_TRUE(voice_channel_.Init_w(nullptr, nullptr, &fake_rtp_dtls_transport_, | 3899 ASSERT_TRUE(voice_channel_.Init_w(nullptr, nullptr, &fake_rtp_dtls_transport_, |
3900 &fake_rtcp_dtls_transport_)); | 3900 &fake_rtcp_dtls_transport_)); |
3901 EXPECT_DEATH(voice_channel_.SetTransports(&fake_rtp_dtls_transport_, | 3901 EXPECT_DEATH(voice_channel_.SetTransports(&fake_rtp_dtls_transport_, |
3902 &fake_rtp_dtls_transport_), | 3902 &fake_rtp_dtls_transport_), |
3903 ""); | 3903 ""); |
3904 } | 3904 } |
3905 | 3905 |
3906 #endif // RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) | 3906 #endif // RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) |
3907 | 3907 |
3908 // TODO(pthatcher): TestSetReceiver? | 3908 // TODO(pthatcher): TestSetReceiver? |
OLD | NEW |