Include all dupe types (event when value is zero) in scan stats.
[chromium-blink-merge.git] / components / metrics / test_metrics_provider.cc
blobf91f71cedca47605bd4d293edf3b7c35a8b3e00f
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/metrics/test_metrics_provider.h"
7 #include "base/metrics/histogram_macros.h"
9 namespace metrics {
11 bool TestMetricsProvider::HasInitialStabilityMetrics() {
12 return has_initial_stability_metrics_;
15 void TestMetricsProvider::ProvideInitialStabilityMetrics(
16 SystemProfileProto* system_profile_proto) {
17 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Initial", 1, 2);
18 provide_initial_stability_metrics_called_ = true;
21 void TestMetricsProvider::ProvideStabilityMetrics(
22 SystemProfileProto* system_profile_proto) {
23 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Regular", 1, 2);
24 provide_stability_metrics_called_ = true;
27 } // namespace metrics