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

Unified Diff: components/metrics/metrics_log_unittest.cc

Issue 2358223002: Add log date to the metrics log (Closed)
Patch Set: Created 4 years, 3 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
Index: components/metrics/metrics_log_unittest.cc
diff --git a/components/metrics/metrics_log_unittest.cc b/components/metrics/metrics_log_unittest.cc
index 57a1209f1adfe809dee1b014bff7da3596ea43fb..0a187e5d80b1a550d5a8eeff15a884f2eafa0e0a 100644
--- a/components/metrics/metrics_log_unittest.cc
+++ b/components/metrics/metrics_log_unittest.cc
@@ -134,6 +134,8 @@ class MetricsLogTest : public testing::Test {
EXPECT_TRUE(hardware.cpu().has_signature());
EXPECT_TRUE(hardware.cpu().has_num_cores());
+ EXPECT_GE((base::Time::Now() - base::Time::UnixEpoch()).InSeconds(),
+ system_profile.log_date());
// TODO(isherman): Verify other data written into the protobuf as a result
// of this call.
}

Powered by Google App Engine
This is Rietveld 408576698