| 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 "net/quic/core/congestion_control/rtt_stats.h" | 5 #include "net/quic/core/congestion_control/rtt_stats.h" | 
| 6 | 6 | 
| 7 #include <cmath> | 7 #include <cmath> | 
| 8 #include <vector> |  | 
| 9 | 8 | 
| 10 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 11 #include "base/test/mock_log.h" | 10 #include "base/test/mock_log.h" | 
| 12 #include "net/quic/core/quic_flags.h" |  | 
| 13 #include "net/quic/test_tools/rtt_stats_peer.h" | 11 #include "net/quic/test_tools/rtt_stats_peer.h" | 
| 14 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" | 
| 15 | 13 | 
| 16 using logging::LOG_WARNING; | 14 using logging::LOG_WARNING; | 
| 17 using testing::HasSubstr; | 15 using testing::HasSubstr; | 
| 18 using testing::Message; | 16 using testing::Message; | 
| 19 using testing::_; | 17 using testing::_; | 
| 20 | 18 | 
| 21 namespace net { | 19 namespace net { | 
| 22 namespace test { | 20 namespace test { | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 174 | 172 | 
| 175   // Reset rtt stats on connection migrations. | 173   // Reset rtt stats on connection migrations. | 
| 176   rtt_stats_.OnConnectionMigration(); | 174   rtt_stats_.OnConnectionMigration(); | 
| 177   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.latest_rtt()); | 175   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.latest_rtt()); | 
| 178   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.smoothed_rtt()); | 176   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.smoothed_rtt()); | 
| 179   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.min_rtt()); | 177   EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.min_rtt()); | 
| 180 } | 178 } | 
| 181 | 179 | 
| 182 }  // namespace test | 180 }  // namespace test | 
| 183 }  // namespace net | 181 }  // namespace net | 
| OLD | NEW | 
|---|