OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 "webrtc/system_wrappers/interface/atomic32.h" | 11 #include "webrtc/system_wrappers/include/atomic32.h" |
12 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 12 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
13 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 13 #include "webrtc/system_wrappers/include/event_wrapper.h" |
14 #include "webrtc/test/testsupport/fileutils.h" | 14 #include "webrtc/test/testsupport/fileutils.h" |
15 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" | 15 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" |
16 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" | 16 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
17 | 17 |
18 class TestRtpObserver : public webrtc::VoERTPObserver { | 18 class TestRtpObserver : public webrtc::VoERTPObserver { |
19 public: | 19 public: |
20 TestRtpObserver() | 20 TestRtpObserver() |
21 : crit_(voetest::CriticalSectionWrapper::CreateCriticalSection()), | 21 : crit_(voetest::CriticalSectionWrapper::CreateCriticalSection()), |
22 changed_ssrc_event_(voetest::EventWrapper::Create()) {} | 22 changed_ssrc_event_(voetest::EventWrapper::Create()) {} |
23 virtual ~TestRtpObserver() {} | 23 virtual ~TestRtpObserver() {} |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 Sleep(1000); | 111 Sleep(1000); |
112 | 112 |
113 unsigned int ssrc; | 113 unsigned int ssrc; |
114 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); | 114 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); |
115 EXPECT_EQ(local_ssrc, ssrc); | 115 EXPECT_EQ(local_ssrc, ssrc); |
116 | 116 |
117 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); | 117 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); |
118 EXPECT_EQ(local_ssrc, ssrc); | 118 EXPECT_EQ(local_ssrc, ssrc); |
119 } | 119 } |
OLD | NEW |