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

Side by Side Diff: components/metrics/test_metrics_service_client.cc

Issue 2774503002: Track network stack error codes from UMA and UKM (Closed)
Patch Set: Rebase on Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/metrics/test_metrics_service_client.h" 5 #include "components/metrics/test_metrics_service_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "components/metrics/metrics_log_uploader.h" 10 #include "components/metrics/metrics_log_uploader.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void TestMetricsServiceClient::CollectFinalMetricsForLog( 62 void TestMetricsServiceClient::CollectFinalMetricsForLog(
63 const base::Closure& done_callback) { 63 const base::Closure& done_callback) {
64 done_callback.Run(); 64 done_callback.Run();
65 } 65 }
66 66
67 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( 67 std::unique_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader(
68 base::StringPiece server_url, 68 base::StringPiece server_url,
69 base::StringPiece mime_type, 69 base::StringPiece mime_type,
70 MetricsLogUploader::MetricServiceType service_type, 70 MetricsLogUploader::MetricServiceType service_type,
71 const base::Callback<void(int)>& on_upload_complete) { 71 const MetricsLogUploader::UploadCallback& on_upload_complete) {
72 uploader_ = new TestMetricsLogUploader(on_upload_complete); 72 uploader_ = new TestMetricsLogUploader(on_upload_complete);
73 return std::unique_ptr<MetricsLogUploader>(uploader_); 73 return std::unique_ptr<MetricsLogUploader>(uploader_);
74 } 74 }
75 75
76 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { 76 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() {
77 return base::TimeDelta::FromMinutes(5); 77 return base::TimeDelta::FromMinutes(5);
78 } 78 }
79 79
80 bool TestMetricsServiceClient::IsReportingPolicyManaged() { 80 bool TestMetricsServiceClient::IsReportingPolicyManaged() {
81 return reporting_is_managed_; 81 return reporting_is_managed_;
82 } 82 }
83 83
84 EnableMetricsDefault 84 EnableMetricsDefault
85 TestMetricsServiceClient::GetMetricsReportingDefaultState() { 85 TestMetricsServiceClient::GetMetricsReportingDefaultState() {
86 return enable_default_; 86 return enable_default_;
87 } 87 }
88 88
89 } // namespace metrics 89 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | components/ukm/ukm_reporting_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698