| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/quic/quic_bandwidth.h" | 5 #include "net/quic/core/quic_bandwidth.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace net { | 8 namespace net { |
| 9 namespace test { | 9 namespace test { |
| 10 | 10 |
| 11 class QuicBandwidthTest : public ::testing::Test {}; | 11 class QuicBandwidthTest : public ::testing::Test {}; |
| 12 | 12 |
| 13 TEST_F(QuicBandwidthTest, FromTo) { | 13 TEST_F(QuicBandwidthTest, FromTo) { |
| 14 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(1), | 14 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(1), |
| 15 QuicBandwidth::FromBitsPerSecond(1000)); | 15 QuicBandwidth::FromBitsPerSecond(1000)); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 EXPECT_LT(b1, b2); | 90 EXPECT_LT(b1, b2); |
| 91 EXPECT_GT(b2, b1); | 91 EXPECT_GT(b2, b1); |
| 92 EXPECT_LE(b1, b1); | 92 EXPECT_LE(b1, b1); |
| 93 EXPECT_LE(b1, b2); | 93 EXPECT_LE(b1, b2); |
| 94 EXPECT_GE(b1, b1); | 94 EXPECT_GE(b1, b1); |
| 95 EXPECT_GE(b2, b1); | 95 EXPECT_GE(b2, b1); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace test | 98 } // namespace test |
| 99 } // namespace net | 99 } // namespace net |
| OLD | NEW |