| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
| 6 | 6 |
| 7 #include "base/test/simple_test_tick_clock.h" | 7 #include "base/test/simple_test_tick_clock.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "media/cast/rtp_common/rtp_defines.h" | |
| 10 #include "media/cast/rtp_receiver/receiver_stats.h" | 9 #include "media/cast/rtp_receiver/receiver_stats.h" |
| 10 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 namespace cast { | 13 namespace cast { |
| 14 | 14 |
| 15 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); | 15 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); |
| 16 static const uint32 kStdTimeIncrementMs = 33; | 16 static const uint32 kStdTimeIncrementMs = 33; |
| 17 | 17 |
| 18 class ReceiverStatsTest : public ::testing::Test { | 18 class ReceiverStatsTest : public ::testing::Test { |
| 19 protected: | 19 protected: |
| 20 ReceiverStatsTest() | 20 ReceiverStatsTest() |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 EXPECT_FALSE(cumulative_lost_); | 161 EXPECT_FALSE(cumulative_lost_); |
| 162 // Build extended sequence number (one wrap cycle). | 162 // Build extended sequence number (one wrap cycle). |
| 163 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1; | 163 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1; |
| 164 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_); | 164 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_); |
| 165 EXPECT_EQ( | 165 EXPECT_EQ( |
| 166 ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), jitter_); | 166 ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), jitter_); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace cast | 169 } // namespace cast |
| 170 } // namespace media | 170 } // namespace media |
| OLD | NEW |