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 "base/test/simple_test_tick_clock.h" | 5 #include "base/test/simple_test_tick_clock.h" |
6 #include "media/cast/net/pacing/paced_sender.h" | |
7 #include "media/cast/test/fake_task_runner.h" | 6 #include "media/cast/test/fake_task_runner.h" |
| 7 #include "media/cast/transport/pacing/paced_sender.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 namespace cast { | 11 namespace cast { |
| 12 namespace transport { |
12 | 13 |
13 using testing::_; | 14 using testing::_; |
14 | 15 |
15 static const uint8 kValue = 123; | 16 static const uint8 kValue = 123; |
16 static const size_t kSize1 = 100; | 17 static const size_t kSize1 = 100; |
17 static const size_t kSize2 = 101; | 18 static const size_t kSize2 = 101; |
18 static const size_t kSize3 = 102; | 19 static const size_t kSize3 = 102; |
19 static const size_t kSize4 = 103; | 20 static const size_t kSize4 = 103; |
20 static const size_t kNackSize = 104; | 21 static const size_t kNackSize = 104; |
21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); | 22 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 task_runner_->RunTasks(); | 247 task_runner_->RunTasks(); |
247 | 248 |
248 mock_transport_.AddExpectedSize(kSize4, 5); | 249 mock_transport_.AddExpectedSize(kSize4, 5); |
249 testing_clock_.Advance(timeout_10ms); | 250 testing_clock_.Advance(timeout_10ms); |
250 task_runner_->RunTasks(); | 251 task_runner_->RunTasks(); |
251 | 252 |
252 testing_clock_.Advance(timeout_10ms); | 253 testing_clock_.Advance(timeout_10ms); |
253 task_runner_->RunTasks(); | 254 task_runner_->RunTasks(); |
254 } | 255 } |
255 | 256 |
| 257 } // namespace transport |
256 } // namespace cast | 258 } // namespace cast |
257 } // namespace media | 259 } // namespace media |
OLD | NEW |