Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: net/quic/core/congestion_control/rtt_stats_test.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix for win Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 8
9 #include "base/logging.h"
10 #include "base/test/mock_log.h" 9 #include "base/test/mock_log.h"
11 #include "net/quic/test_tools/rtt_stats_peer.h" 10 #include "net/quic/test_tools/rtt_stats_peer.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 using logging::LOG_WARNING; 13 using logging::LOG_WARNING;
15 using testing::HasSubstr; 14 using testing::HasSubstr;
16 using testing::Message; 15 using testing::Message;
17 using testing::_; 16 using testing::_;
18 17
19 namespace net { 18 namespace net {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 171
173 // Reset rtt stats on connection migrations. 172 // Reset rtt stats on connection migrations.
174 rtt_stats_.OnConnectionMigration(); 173 rtt_stats_.OnConnectionMigration();
175 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.latest_rtt()); 174 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.latest_rtt());
176 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.smoothed_rtt()); 175 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.smoothed_rtt());
177 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.min_rtt()); 176 EXPECT_EQ(QuicTime::Delta::Zero(), rtt_stats_.min_rtt());
178 } 177 }
179 178
180 } // namespace test 179 } // namespace test
181 } // namespace net 180 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698