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

Unified Diff: components/metrics/metrics_log_unittest.cc

Issue 1030503003: Metrics log modification to handle external components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add version_utils Created 5 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
Index: components/metrics/metrics_log_unittest.cc
diff --git a/components/metrics/metrics_log_unittest.cc b/components/metrics/metrics_log_unittest.cc
index 1d26fe8c883bebc9102dd87e360382485f760c37..ee299d150d8ae9e4d08eb66811c47013f05b3a00 100644
--- a/components/metrics/metrics_log_unittest.cc
+++ b/components/metrics/metrics_log_unittest.cc
@@ -250,7 +250,7 @@ TEST_F(MetricsLogTest, RecordEnvironment) {
log.RecordEnvironment(std::vector<MetricsProvider*>(),
synthetic_trials,
- kInstallDate);
+ kInstallDate, kEnabledDate);
// Check that the system profile on the log has the correct values set.
CheckSystemProfile(log.system_profile());
@@ -286,7 +286,7 @@ TEST_F(MetricsLogTest, LoadSavedEnvironmentFromPrefs) {
kClientId, kSessionId, MetricsLog::ONGOING_LOG, &client, &prefs_);
log.RecordEnvironment(std::vector<MetricsProvider*>(),
std::vector<variations::ActiveGroupId>(),
- kInstallDate);
+ kInstallDate, kEnabledDate);
EXPECT_FALSE(prefs_.GetString(kSystemProfilePref).empty());
EXPECT_FALSE(prefs_.GetString(kSystemProfileHashPref).empty());
}
@@ -310,7 +310,7 @@ TEST_F(MetricsLogTest, LoadSavedEnvironmentFromPrefs) {
// Call RecordEnvironment() to record the pref again.
log.RecordEnvironment(std::vector<MetricsProvider*>(),
std::vector<variations::ActiveGroupId>(),
- kInstallDate);
+ kInstallDate, kEnabledDate);
}
{
@@ -335,7 +335,7 @@ TEST_F(MetricsLogTest, InitialLogStabilityMetrics) {
std::vector<MetricsProvider*> metrics_providers;
log.RecordEnvironment(metrics_providers,
std::vector<variations::ActiveGroupId>(),
- kInstallDate);
+ kInstallDate, kEnabledDate);
log.RecordStabilityMetrics(metrics_providers, base::TimeDelta(),
base::TimeDelta());
const SystemProfileProto_Stability& stability =
@@ -358,7 +358,7 @@ TEST_F(MetricsLogTest, OngoingLogStabilityMetrics) {
std::vector<MetricsProvider*> metrics_providers;
log.RecordEnvironment(metrics_providers,
std::vector<variations::ActiveGroupId>(),
- kInstallDate);
+ kInstallDate, kEnabledDate);
log.RecordStabilityMetrics(metrics_providers, base::TimeDelta(),
base::TimeDelta());
const SystemProfileProto_Stability& stability =

Powered by Google App Engine
This is Rietveld 408576698