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

Unified Diff: webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc

Issue 1404463003: Delete iSAC-fb from NetEq (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@remove-isac-fb
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/neteq/timestamp_scaler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc
diff --git a/webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc b/webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc
index 4b6d940aeb18f792802a40ab2ea00df6b94f517b..aed8a4675b6f84cf219d57d2c1f5e71f98f83091 100644
--- a/webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc
+++ b/webrtc/modules/audio_coding/neteq/timestamp_scaler_unittest.cc
@@ -283,34 +283,6 @@ TEST(TimestampScaler, TestOpusLargeStep) {
EXPECT_CALL(db, Die()); // Called when database object is deleted.
}
-TEST(TimestampScaler, TestIsacFbLargeStep) {
- MockDecoderDatabase db;
- DecoderDatabase::DecoderInfo info;
- info.codec_type = kDecoderISACfb;
- static const uint8_t kRtpPayloadType = 17;
- EXPECT_CALL(db, GetDecoderInfo(kRtpPayloadType))
- .WillRepeatedly(Return(&info));
-
- TimestampScaler scaler(db);
- // Test both sides of the timestamp wrap-around.
- static const uint32_t kStep = 960;
- uint32_t external_timestamp = 0;
- // |external_timestamp| will be a large positive value.
- external_timestamp = external_timestamp - 5 * kStep;
- uint32_t internal_timestamp = external_timestamp;
- for (; external_timestamp != 5 * kStep; external_timestamp += kStep) {
- // Scale to internal timestamp.
- EXPECT_EQ(internal_timestamp,
- scaler.ToInternal(external_timestamp, kRtpPayloadType));
- // Scale back.
- EXPECT_EQ(external_timestamp, scaler.ToExternal(internal_timestamp));
- // Internal timestamp should be incremented with two-thirds the step.
- internal_timestamp += 2 * kStep / 3;
- }
-
- EXPECT_CALL(db, Die()); // Called when database object is deleted.
-}
-
TEST(TimestampScaler, Failures) {
static const uint8_t kRtpPayloadType = 17;
MockDecoderDatabase db;
« no previous file with comments | « webrtc/modules/audio_coding/neteq/timestamp_scaler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698