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

Side by Side Diff: webrtc/modules/video_coding/video_packet_buffer_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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 <cstring> 11 #include <cstring>
12 #include <map> 12 #include <map>
13 #include <set> 13 #include <set>
14 #include <utility> 14 #include <utility>
15 15
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "webrtc/test/gtest.h"
17 #include "webrtc/base/random.h" 17 #include "webrtc/base/random.h"
18 #include "webrtc/modules/video_coding/frame_object.h" 18 #include "webrtc/modules/video_coding/frame_object.h"
19 #include "webrtc/modules/video_coding/packet_buffer.h" 19 #include "webrtc/modules/video_coding/packet_buffer.h"
20 #include "webrtc/system_wrappers/include/clock.h" 20 #include "webrtc/system_wrappers/include/clock.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace video_coding { 23 namespace video_coding {
24 24
25 class TestPacketBuffer : public ::testing::Test, 25 class TestPacketBuffer : public ::testing::Test,
26 public OnReceivedFrameCallback { 26 public OnReceivedFrameCallback {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 packet.seqNum = Rand(); 350 packet.seqNum = Rand();
351 EXPECT_TRUE(packet_buffer_->InsertPacket(packet)); 351 EXPECT_TRUE(packet_buffer_->InsertPacket(packet));
352 ASSERT_EQ(1UL, frames_from_callback_.size()); 352 ASSERT_EQ(1UL, frames_from_callback_.size());
353 353
354 packet_buffer_->Clear(); 354 packet_buffer_->Clear();
355 EXPECT_FALSE(frames_from_callback_.begin()->second->GetBitstream(nullptr)); 355 EXPECT_FALSE(frames_from_callback_.begin()->second->GetBitstream(nullptr));
356 } 356 }
357 357
358 } // namespace video_coding 358 } // namespace video_coding
359 } // namespace webrtc 359 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698