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

Unified Diff: webrtc/modules/module_common_types_unittest.cc

Issue 2424173003: Move functionality out from AudioFrame and into AudioFrameOperations. (Closed)
Patch Set: Include order & DCHECKs. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/include/module_common_types.h ('k') | webrtc/modules/utility/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/module_common_types_unittest.cc
diff --git a/webrtc/modules/module_common_types_unittest.cc b/webrtc/modules/module_common_types_unittest.cc
index 148263ceaa654a7c570f648ae3cb33ea55531b4b..159e26babe92a59ee5245829c9ea1e24e29f9600 100644
--- a/webrtc/modules/module_common_types_unittest.cc
+++ b/webrtc/modules/module_common_types_unittest.cc
@@ -112,15 +112,6 @@ TEST(LatestTimestamp, Wrap) {
EXPECT_EQ(0x0000FFFFu, LatestTimestamp(0xFFFF0000, 0x0000FFFF));
}
-TEST(ClampToInt16, TestCases) {
- EXPECT_EQ(0x0000, ClampToInt16(0x00000000));
- EXPECT_EQ(0x0001, ClampToInt16(0x00000001));
- EXPECT_EQ(0x7FFF, ClampToInt16(0x00007FFF));
- EXPECT_EQ(0x7FFF, ClampToInt16(0x7FFFFFFF));
- EXPECT_EQ(-0x0001, ClampToInt16(-0x00000001));
- EXPECT_EQ(-0x8000, ClampToInt16(-0x8000));
- EXPECT_EQ(-0x8000, ClampToInt16(-0x7FFFFFFF));
-}
TEST(SequenceNumberUnwrapper, Limits) {
SequenceNumberUnwrapper unwrapper;
« no previous file with comments | « webrtc/modules/include/module_common_types.h ('k') | webrtc/modules/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698