OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
11 #include "media/cast/net/rtp/receiver_stats.h" | 12 #include "media/cast/net/rtp/receiver_stats.h" |
12 #include "media/cast/net/rtp/rtp_defines.h" | 13 #include "media/cast/net/rtp/rtp_defines.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 namespace cast { | 16 namespace cast { |
16 | 17 |
17 static const int64_t kStartMillisecond = INT64_C(12345678900000); | 18 static const int64_t kStartMillisecond = INT64_C(12345678900000); |
18 static const uint32_t kStdTimeIncrementMs = 33; | 19 static const uint32_t kStdTimeIncrementMs = 33; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 EXPECT_FALSE(s.cumulative_lost); | 145 EXPECT_FALSE(s.cumulative_lost); |
145 // Build extended sequence number (one wrap cycle). | 146 // Build extended sequence number (one wrap cycle). |
146 const uint32_t extended_seq_num = rtp_header_.sequence_number - 1; | 147 const uint32_t extended_seq_num = rtp_header_.sequence_number - 1; |
147 EXPECT_EQ(extended_seq_num, s.extended_high_sequence_number); | 148 EXPECT_EQ(extended_seq_num, s.extended_high_sequence_number); |
148 EXPECT_EQ(ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), | 149 EXPECT_EQ(ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), |
149 s.jitter); | 150 s.jitter); |
150 } | 151 } |
151 | 152 |
152 } // namespace cast | 153 } // namespace cast |
153 } // namespace media | 154 } // namespace media |
OLD | NEW |