Lines Matching refs:timestamp

33   // Test both sides of the timestamp wrap-around.
34 for (uint32_t timestamp = 0xFFFFFFFF - 5; timestamp != 5; ++timestamp) {
35 // Scale to internal timestamp.
36 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType));
38 EXPECT_EQ(timestamp, scaler.ToExternal(timestamp));
53 // Test both sides of the timestamp wrap-around.
58 for (uint32_t timestamp = start_timestamp; timestamp != 5 * kStep;
59 timestamp += kStep) {
60 // Scale to internal timestamp.
61 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType));
63 EXPECT_EQ(timestamp, scaler.ToExternal(timestamp));
78 // Test both sides of the timestamp wrap-around.
82 // Scale to internal timestamp.
102 // Test both sides of the timestamp wrap-around.
109 // Scale to internal timestamp.
114 // Internal timestamp should be incremented with twice the step.
134 // Test both sides of the timestamp wrap-around.
141 // Scale to internal timestamp.
146 // Scale to internal timestamp.
171 // Test both sides of the timestamp wrap-around.
177 packet.header.timestamp = external_timestamp;
178 // Scale to internal timestamp.
180 EXPECT_EQ(internal_timestamp, packet.header.timestamp);
199 // Test both sides of the timestamp wrap-around.
204 packet1.header.timestamp = external_timestamp;
207 packet2.header.timestamp = external_timestamp + 10;
213 EXPECT_EQ(internal_timestamp, packet1.header.timestamp);
214 EXPECT_EQ(internal_timestamp + 20, packet2.header.timestamp);
228 // Test both sides of the timestamp wrap-around.
232 // Scale to internal timestamp.
244 // Scale to internal timestamp.
255 // TODO(minyue): This test becomes trivial since Opus does not need a timestamp
258 // timestamp scaler.
268 // Test both sides of the timestamp wrap-around.
275 // Scale to internal timestamp.
295 // Test both sides of the timestamp wrap-around.
302 // Scale to internal timestamp.
307 // Internal timestamp should be incremented with two-thirds the step.
321 uint32_t timestamp = 4711; // Some number.
322 EXPECT_EQ(timestamp, scaler.ToInternal(timestamp, kRtpPayloadType));