OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/nqe/network_quality_store.h" | 5 #include "net/nqe/network_quality_store.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/test/simple_test_tick_clock.h" | 8 #include "base/test/simple_test_tick_clock.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "net/base/network_change_notifier.h" | 10 #include "net/base/network_change_notifier.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 // Ensure that only LRU entries are cached by comparing the | 180 // Ensure that only LRU entries are cached by comparing the |
181 // |earliest_last_update_time|. | 181 // |earliest_last_update_time|. |
182 EXPECT_EQ( | 182 EXPECT_EQ( |
183 tick_clock.NowTicks() - base::TimeDelta::FromSeconds(cache_match_count), | 183 tick_clock.NowTicks() - base::TimeDelta::FromSeconds(cache_match_count), |
184 earliest_last_update_time); | 184 earliest_last_update_time); |
185 } | 185 } |
186 | 186 |
187 } // namespace | 187 } // namespace |
188 | 188 |
189 } // namespace net | 189 } // namespace net |
OLD | NEW |