Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: components/metrics/test_metrics_provider.h

Issue 2671603002: Add network information to UKM (Closed)
Patch Set: fix comments and includes Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/metrics/test_metrics_provider.h
diff --git a/components/metrics/test_metrics_provider.h b/components/metrics/test_metrics_provider.h
index fd57158d00fc446d3c73cc5293fc4793afef7ce3..44d8f0c40128e0923350f346295782c421946cf4 100644
--- a/components/metrics/test_metrics_provider.h
+++ b/components/metrics/test_metrics_provider.h
@@ -20,7 +20,8 @@ class TestMetricsProvider : public MetricsProvider {
has_initial_stability_metrics_(false),
has_initial_stability_metrics_called_(false),
provide_initial_stability_metrics_called_(false),
- provide_stability_metrics_called_(false) {}
+ provide_stability_metrics_called_(false),
+ provide_system_profile_metrics_called_(false) {}
// MetricsProvider:
void Init() override;
@@ -30,6 +31,8 @@ class TestMetricsProvider : public MetricsProvider {
SystemProfileProto* system_profile_proto) override;
void ProvideStabilityMetrics(
SystemProfileProto* system_profile_proto) override;
+ void ProvideSystemProfileMetrics(
+ SystemProfileProto* system_profile_proto) override;
bool init_called() { return init_called_; }
bool on_recording_disabled_called() { return on_recording_disabled_called_; }
@@ -45,6 +48,9 @@ class TestMetricsProvider : public MetricsProvider {
bool provide_stability_metrics_called() const {
return provide_stability_metrics_called_;
}
+ bool provide_system_profile_metrics_called() const {
+ return provide_system_profile_metrics_called_;
+ }
private:
bool init_called_;
@@ -53,6 +59,7 @@ class TestMetricsProvider : public MetricsProvider {
bool has_initial_stability_metrics_called_;
bool provide_initial_stability_metrics_called_;
bool provide_stability_metrics_called_;
+ bool provide_system_profile_metrics_called_;
DISALLOW_COPY_AND_ASSIGN(TestMetricsProvider);
};
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | components/metrics/test_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698