| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> |
| 6 |
| 5 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 6 #include "base/logging.h" | 8 #include "base/logging.h" |
| 7 #include "net/quic/congestion_control/inter_arrival_bitrate_ramp_up.h" | 9 #include "net/quic/congestion_control/inter_arrival_bitrate_ramp_up.h" |
| 8 #include "net/quic/test_tools/mock_clock.h" | 10 #include "net/quic/test_tools/mock_clock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 12 |
| 11 namespace net { | 13 namespace net { |
| 12 namespace test { | 14 namespace test { |
| 13 | 15 |
| 14 class InterArrivalBitrateRampUpTest : public ::testing::Test { | 16 class InterArrivalBitrateRampUpTest : public ::testing::Test { |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 EXPECT_GE(channel_estimate, sent_bitrate); | 397 EXPECT_GE(channel_estimate, sent_bitrate); |
| 396 EXPECT_LE(halfway_point, sent_bitrate); | 398 EXPECT_LE(halfway_point, sent_bitrate); |
| 397 } | 399 } |
| 398 clock_.AdvanceTime(hundred_ms_); | 400 clock_.AdvanceTime(hundred_ms_); |
| 399 sent_bitrate = bitrate_ramp_up_.GetNewBitrate(sent_bitrate); | 401 sent_bitrate = bitrate_ramp_up_.GetNewBitrate(sent_bitrate); |
| 400 EXPECT_LE(channel_estimate, sent_bitrate); | 402 EXPECT_LE(channel_estimate, sent_bitrate); |
| 401 } | 403 } |
| 402 | 404 |
| 403 } // namespace test | 405 } // namespace test |
| 404 } // namespace net | 406 } // namespace net |
| OLD | NEW |