Report duration uptime for successful update.
We have metrics for attempt duration, attempt duration uptime and
successful update duration, but not successful update duration uptime,
the existing code already keeps track of this metric, it's just not
being reported, this CL added the last missing piece to report this
metric.
Bug: 77884453
Test: check reported metrics in log
Change-Id: I41d703add2199f54cc6eeb7d92f0d52fc36d9a46
diff --git a/mock_metrics_reporter.h b/mock_metrics_reporter.h
index c35a105..3d39049 100644
--- a/mock_metrics_reporter.h
+++ b/mock_metrics_reporter.h
@@ -56,16 +56,17 @@
MOCK_METHOD0(ReportAbnormallyTerminatedUpdateAttemptMetrics, void());
- MOCK_METHOD9(ReportSuccessfulUpdateMetrics,
- void(int attempt_count,
- int updates_abandoned_count,
- PayloadType payload_type,
- int64_t payload_size,
- int64_t num_bytes_downloaded[kNumDownloadSources],
- int download_overhead_percentage,
- base::TimeDelta total_duration,
- int reboot_count,
- int url_switch_count));
+ MOCK_METHOD10(ReportSuccessfulUpdateMetrics,
+ void(int attempt_count,
+ int updates_abandoned_count,
+ PayloadType payload_type,
+ int64_t payload_size,
+ int64_t num_bytes_downloaded[kNumDownloadSources],
+ int download_overhead_percentage,
+ base::TimeDelta total_duration,
+ base::TimeDelta total_duration_uptime,
+ int reboot_count,
+ int url_switch_count));
MOCK_METHOD2(ReportCertificateCheckMetrics,
void(ServerToCheck server_to_check,