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 | 7 |
7 #include "base/big_endian.h" | 8 #include "base/big_endian.h" |
| 9 #include "base/macros.h" |
8 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
9 #include "media/cast/net/pacing/paced_sender.h" | 11 #include "media/cast/net/pacing/paced_sender.h" |
10 #include "media/cast/test/fake_single_thread_task_runner.h" | 12 #include "media/cast/test/fake_single_thread_task_runner.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
12 | 14 |
13 using testing::_; | 15 using testing::_; |
14 | 16 |
15 namespace media { | 17 namespace media { |
16 namespace cast { | 18 namespace cast { |
17 namespace { | 19 namespace { |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); | 454 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); |
453 EXPECT_EQ(static_cast<int64_t>(kSize1), mock_transport_.GetBytesSent()); | 455 EXPECT_EQ(static_cast<int64_t>(kSize1), mock_transport_.GetBytesSent()); |
454 | 456 |
455 dedup_info.resend_interval = base::TimeDelta::FromMilliseconds(5); | 457 dedup_info.resend_interval = base::TimeDelta::FromMilliseconds(5); |
456 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); | 458 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); |
457 EXPECT_EQ(static_cast<int64_t>(2 * kSize1), mock_transport_.GetBytesSent()); | 459 EXPECT_EQ(static_cast<int64_t>(2 * kSize1), mock_transport_.GetBytesSent()); |
458 } | 460 } |
459 | 461 |
460 } // namespace cast | 462 } // namespace cast |
461 } // namespace media | 463 } // namespace media |
OLD | NEW |