Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc

Issue 1506823002: [rtp_rtcp] fixed namespaces lint warnings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 11 #include <algorithm>
12 #include <vector> 12 #include <vector>
13 13
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webrtc/common_types.h" 16 #include "webrtc/common_types.h"
17 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 17 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" 20 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h"
21 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" 21 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h"
22 22
23 using namespace webrtc; 23 namespace webrtc {
24 namespace {
24 25
25 const uint64_t kTestPictureId = 12345678; 26 const uint64_t kTestPictureId = 12345678;
26 const uint8_t kSliPictureId = 156; 27 const uint8_t kSliPictureId = 156;
27 28
28 class RtcpCallback : public RtcpIntraFrameObserver { 29 class RtcpCallback : public RtcpIntraFrameObserver {
29 public: 30 public:
30 void SetModule(RtpRtcp* module) { 31 void SetModule(RtpRtcp* module) {
31 _rtpRtcpModule = module; 32 _rtpRtcpModule = module;
32 }; 33 };
33 virtual void OnRTCPPacketTimeout(const int32_t id) { 34 virtual void OnRTCPPacketTimeout(const int32_t id) {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 260
260 // |test_ssrc+1| is the SSRC of module2 that send the report. 261 // |test_ssrc+1| is the SSRC of module2 that send the report.
261 EXPECT_EQ(test_ssrc+1, report_blocks[0].remoteSSRC); 262 EXPECT_EQ(test_ssrc+1, report_blocks[0].remoteSSRC);
262 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); 263 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC);
263 264
264 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); 265 EXPECT_EQ(0u, report_blocks[0].cumulativeLost);
265 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); 266 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR);
266 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); 267 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum);
267 EXPECT_EQ(0u, report_blocks[0].fractionLost); 268 EXPECT_EQ(0u, report_blocks[0].fractionLost);
268 } 269 }
270
271 } // namespace
272 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698