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" | |
12 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 11 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" |
13 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 12 #include "webrtc/system_wrappers/interface/event_wrapper.h" |
14 #include "webrtc/test/testsupport/fileutils.h" | 13 #include "webrtc/test/testsupport/fileutils.h" |
15 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" | 14 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" |
16 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" | 15 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
17 | 16 |
18 class TestRtpObserver : public webrtc::VoERTPObserver { | 17 class TestRtpObserver : public webrtc::VoERTPObserver { |
19 public: | 18 public: |
20 TestRtpObserver() | 19 TestRtpObserver() |
21 : crit_(voetest::CriticalSectionWrapper::CreateCriticalSection()), | 20 : crit_(voetest::CriticalSectionWrapper::CreateCriticalSection()), |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 109 |
111 Sleep(1000); | 110 Sleep(1000); |
112 | 111 |
113 unsigned int ssrc; | 112 unsigned int ssrc; |
114 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); | 113 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); |
115 EXPECT_EQ(local_ssrc, ssrc); | 114 EXPECT_EQ(local_ssrc, ssrc); |
116 | 115 |
117 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); | 116 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); |
118 EXPECT_EQ(local_ssrc, ssrc); | 117 EXPECT_EQ(local_ssrc, ssrc); |
119 } | 118 } |
OLD | NEW |