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 <memory> | 11 #include <memory> |
12 | 12 |
13 #include "gflags/gflags.h" | |
13 #include "webrtc/rtc_base/criticalsection.h" | 14 #include "webrtc/rtc_base/criticalsection.h" |
14 #include "webrtc/system_wrappers/include/atomic32.h" | 15 #include "webrtc/system_wrappers/include/atomic32.h" |
15 #include "webrtc/system_wrappers/include/event_wrapper.h" | 16 #include "webrtc/system_wrappers/include/event_wrapper.h" |
16 #include "webrtc/test/testsupport/fileutils.h" | 17 #include "webrtc/test/testsupport/fileutils.h" |
17 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" | 18 #include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h" |
18 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" | 19 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
19 | 20 |
21 DECLARE_bool(include_timing_dependent_tests); | |
kjellander_webrtc
2017/08/24 07:31:34
I see this is moved from webrtc/voice_engine/test/
oprypin_webrtc
2017/08/24 08:29:56
This is not a target based on test_main, I just wa
| |
22 | |
20 class TestRtpObserver : public webrtc::VoERTPObserver { | 23 class TestRtpObserver : public webrtc::VoERTPObserver { |
21 public: | 24 public: |
22 TestRtpObserver() : changed_ssrc_event_(webrtc::EventWrapper::Create()) {} | 25 TestRtpObserver() : changed_ssrc_event_(webrtc::EventWrapper::Create()) {} |
23 virtual ~TestRtpObserver() {} | 26 virtual ~TestRtpObserver() {} |
24 virtual void OnIncomingCSRCChanged(int channel, | 27 virtual void OnIncomingCSRCChanged(int channel, |
25 unsigned int CSRC, | 28 unsigned int CSRC, |
26 bool added) {} | 29 bool added) {} |
27 virtual void OnIncomingSSRCChanged(int channel, | 30 virtual void OnIncomingSSRCChanged(int channel, |
28 unsigned int SSRC); | 31 unsigned int SSRC); |
29 void WaitForChangedSsrc() { | 32 void WaitForChangedSsrc() { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 | 112 |
110 Sleep(1000); | 113 Sleep(1000); |
111 | 114 |
112 unsigned int ssrc; | 115 unsigned int ssrc; |
113 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); | 116 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); |
114 EXPECT_EQ(local_ssrc, ssrc); | 117 EXPECT_EQ(local_ssrc, ssrc); |
115 | 118 |
116 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); | 119 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); |
117 EXPECT_EQ(local_ssrc, ssrc); | 120 EXPECT_EQ(local_ssrc, ssrc); |
118 } | 121 } |
OLD | NEW |