| 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 <stddef.h> |
| 5 #include <stdint.h> | 6 #include <stdint.h> |
| 6 #include <vector> | 7 #include <vector> |
| 7 | 8 |
| 8 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
| 9 #include "base/test/simple_test_tick_clock.h" | 11 #include "base/test/simple_test_tick_clock.h" |
| 10 #include "media/cast/net/cast_transport_config.h" | 12 #include "media/cast/net/cast_transport_config.h" |
| 11 #include "media/cast/net/pacing/paced_sender.h" | 13 #include "media/cast/net/pacing/paced_sender.h" |
| 12 #include "media/cast/net/rtcp/rtcp.h" | 14 #include "media/cast/net/rtcp/rtcp.h" |
| 13 #include "media/cast/net/rtcp/rtcp_utility.h" | 15 #include "media/cast/net/rtcp/rtcp_utility.h" |
| 14 #include "media/cast/test/skewed_tick_clock.h" | 16 #include "media/cast/test/skewed_tick_clock.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 16 | 18 |
| 17 namespace media { | 19 namespace media { |
| 18 namespace cast { | 20 namespace cast { |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 base::TimeTicks out_3 = ConvertNtpToTimeTicks(ntp_seconds_3, ntp_fraction_3); | 309 base::TimeTicks out_3 = ConvertNtpToTimeTicks(ntp_seconds_3, ntp_fraction_3); |
| 308 EXPECT_EQ(input_time, out_3); // Verify inverse. | 310 EXPECT_EQ(input_time, out_3); // Verify inverse. |
| 309 | 311 |
| 310 // Verify delta. | 312 // Verify delta. |
| 311 EXPECT_EQ((out_3 - out_2), time_delta); | 313 EXPECT_EQ((out_3 - out_2), time_delta); |
| 312 EXPECT_NEAR((ntp_fraction_3 - ntp_fraction_2), 0xffffffff / 2, 1); | 314 EXPECT_NEAR((ntp_fraction_3 - ntp_fraction_2), 0xffffffff / 2, 1); |
| 313 } | 315 } |
| 314 | 316 |
| 315 } // namespace cast | 317 } // namespace cast |
| 316 } // namespace media | 318 } // namespace media |
| OLD | NEW |