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

Unified Diff: net/base/network_quality_estimator_unittest.cc

Issue 1841693003: Remove TimeTicks::UnixEpoch from net_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_quality_estimator_unittest.cc
diff --git a/net/base/network_quality_estimator_unittest.cc b/net/base/network_quality_estimator_unittest.cc
index 5d59272a318432970b5bb7c9a025f3d0008b79fd..0c5fabc7a7b841d41f193d3b0804e032da2e6038 100644
--- a/net/base/network_quality_estimator_unittest.cc
+++ b/net/base/network_quality_estimator_unittest.cc
@@ -374,7 +374,7 @@ TEST(NetworkQualityEstimatorTest, PercentileDifferentTimestamps) {
std::map<std::string, std::string> variation_params;
TestNetworkQualityEstimator estimator(variation_params);
base::TimeTicks now = base::TimeTicks::Now();
- base::TimeTicks very_old = base::TimeTicks::UnixEpoch();
+ base::TimeTicks very_old = now - base::TimeDelta::FromDays(365);
// First 50 samples have very old timestamp.
for (int i = 1; i <= 50; ++i) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698