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

Unified Diff: components/metrics/metrics_reporting_scheduler_unittest.cc

Issue 979363003: UMA: use a more frequent upload interval for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes conditional 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
« no previous file with comments | « components/metrics/metrics_reporting_scheduler.cc ('k') | components/metrics/metrics_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_reporting_scheduler_unittest.cc
diff --git a/components/metrics/metrics_reporting_scheduler_unittest.cc b/components/metrics/metrics_reporting_scheduler_unittest.cc
index 2a8e7fafa0f546fd78e3f985eadedab861c2bf8d..630fc5c31e63edbc4df0dc2b988a6e2db9446492 100644
--- a/components/metrics/metrics_reporting_scheduler_unittest.cc
+++ b/components/metrics/metrics_reporting_scheduler_unittest.cc
@@ -22,8 +22,8 @@ class MetricsReportingSchedulerTest : public testing::Test {
base::Unretained(this));
}
- base::Callback<void(bool*)> GetConnectionCallback() {
- return base::Bind(&MetricsReportingSchedulerTest::SetConnectionTypeCallback,
+ base::Callback<base::TimeDelta(void)> GetConnectionCallback() {
+ return base::Bind(&MetricsReportingSchedulerTest::GetStandardUploadInterval,
base::Unretained(this));
}
@@ -34,8 +34,8 @@ class MetricsReportingSchedulerTest : public testing::Test {
++callback_call_count_;
}
- void SetConnectionTypeCallback(bool* is_cellular_out) {
- *is_cellular_out = false;
+ base::TimeDelta GetStandardUploadInterval() {
+ return base::TimeDelta::FromMinutes(5);
}
int callback_call_count_;
« no previous file with comments | « components/metrics/metrics_reporting_scheduler.cc ('k') | components/metrics/metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698