blob: 184c2885f43ae754e4e56fef051196c9c91ee548 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/metrics/test_metrics_provider.h"
#include "base/metrics/histogram_macros.h"
namespace metrics {
void TestMetricsProvider::OnRecordingDisabled() {
on_recording_disabled_called_ = true;
}
bool TestMetricsProvider::HasInitialStabilityMetrics() {
return has_initial_stability_metrics_;
}
void TestMetricsProvider::ProvideInitialStabilityMetrics(
SystemProfileProto* system_profile_proto) {
UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Initial", 1, 2);
provide_initial_stability_metrics_called_ = true;
}
void TestMetricsProvider::ProvideStabilityMetrics(
SystemProfileProto* system_profile_proto) {
UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Regular", 1, 2);
provide_stability_metrics_called_ = true;
}
} // namespace metrics
|