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"
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