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 void TestMetricsProvider::OnRecordingDisabled() {
12 on_recording_disabled_called_
= true;
15 bool TestMetricsProvider::HasInitialStabilityMetrics() {
16 return has_initial_stability_metrics_
;
19 void TestMetricsProvider::ProvideInitialStabilityMetrics(
20 SystemProfileProto
* system_profile_proto
) {
21 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Initial", 1, 2);
22 provide_initial_stability_metrics_called_
= true;
25 void TestMetricsProvider::ProvideStabilityMetrics(
26 SystemProfileProto
* system_profile_proto
) {
27 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Regular", 1, 2);
28 provide_stability_metrics_called_
= true;
31 } // namespace metrics