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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/byte_io_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) 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 <limits> 11 #include <limits>
12 12
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "webrtc/test/gtest.h"
14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 namespace { 17 namespace {
18 18
19 class ByteIoTest : public ::testing::Test { 19 class ByteIoTest : public ::testing::Test {
20 protected: 20 protected:
21 ByteIoTest() {} 21 ByteIoTest() {}
22 virtual ~ByteIoTest() {} 22 virtual ~ByteIoTest() {}
23 23
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 EXPECT_EQ(static_cast<uint64_t>(0xBBCCDDEEFF), value); 263 EXPECT_EQ(static_cast<uint64_t>(0xBBCCDDEEFF), value);
264 value = ByteReader<uint64_t, 6>::ReadLittleEndian(data); 264 value = ByteReader<uint64_t, 6>::ReadLittleEndian(data);
265 EXPECT_EQ(static_cast<uint64_t>(0xAABBCCDDEEFF), value); 265 EXPECT_EQ(static_cast<uint64_t>(0xAABBCCDDEEFF), value);
266 value = ByteReader<uint64_t, 7>::ReadLittleEndian(data); 266 value = ByteReader<uint64_t, 7>::ReadLittleEndian(data);
267 EXPECT_EQ(static_cast<uint64_t>(0x99AABBCCDDEEFF), value); 267 EXPECT_EQ(static_cast<uint64_t>(0x99AABBCCDDEEFF), value);
268 value = ByteReader<uint64_t, 8>::ReadLittleEndian(data); 268 value = ByteReader<uint64_t, 8>::ReadLittleEndian(data);
269 EXPECT_EQ(static_cast<uint64_t>(0x8899AABBCCDDEEFF), value); 269 EXPECT_EQ(static_cast<uint64_t>(0x8899AABBCCDDEEFF), value);
270 } 270 }
271 } // namespace 271 } // namespace
272 } // namespace webrtc 272 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698