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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 months 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 <iterator> 12 #include <iterator>
13 #include <list> 13 #include <list>
14 #include <memory> 14 #include <memory>
15 #include <set> 15 #include <set>
16 16
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "webrtc/test/gtest.h"
18 #include "webrtc/base/rate_limiter.h" 18 #include "webrtc/base/rate_limiter.h"
19 #include "webrtc/common_types.h" 19 #include "webrtc/common_types.h"
20 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 20 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
21 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 21 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
22 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h"
23 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" 23 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h"
24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
26 #include "webrtc/transport.h" 26 #include "webrtc/transport.h"
27 27
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 RunRtxTest(kRtxRetransmitted, 10); 337 RunRtxTest(kRtxRetransmitted, 10);
338 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin())); 338 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin()));
339 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1, 339 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1,
340 *(receiver_.sequence_numbers_.rbegin())); 340 *(receiver_.sequence_numbers_.rbegin()));
341 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size()); 341 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size());
342 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_); 342 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_);
343 EXPECT_TRUE(ExpectedPacketsReceived()); 343 EXPECT_TRUE(ExpectedPacketsReceived());
344 } 344 }
345 345
346 } // namespace webrtc 346 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698