| OLD | NEW |
| 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 "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "components/metrics/metrics_log_uploader.h" | 8 #include "components/metrics/metrics_log_uploader.h" |
| 9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 9 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { | 46 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { |
| 47 return SystemProfileProto::CHANNEL_BETA; | 47 return SystemProfileProto::CHANNEL_BETA; |
| 48 } | 48 } |
| 49 | 49 |
| 50 std::string TestMetricsServiceClient::GetVersionString() { | 50 std::string TestMetricsServiceClient::GetVersionString() { |
| 51 return version_string_; | 51 return version_string_; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void TestMetricsServiceClient::OnLogUploadComplete() { | 54 void TestMetricsServiceClient::OnLogUploadComplete(bool upload_succeeded) { |
| 55 } | 55 } |
| 56 | 56 |
| 57 void TestMetricsServiceClient::StartGatheringMetrics( | 57 void TestMetricsServiceClient::StartGatheringMetrics( |
| 58 const base::Closure& done_callback) { | 58 const base::Closure& done_callback) { |
| 59 done_callback.Run(); | 59 done_callback.Run(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void TestMetricsServiceClient::CollectFinalMetrics( | 62 void TestMetricsServiceClient::CollectFinalMetrics( |
| 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 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( | 67 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( |
| 68 const base::Callback<void(int)>& on_upload_complete) { | 68 const base::Callback<void(int)>& on_upload_complete) { |
| 69 return scoped_ptr<MetricsLogUploader>(); | 69 return scoped_ptr<MetricsLogUploader>(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { | 72 base::TimeDelta TestMetricsServiceClient::GetStandardUploadInterval() { |
| 73 return base::TimeDelta::FromMinutes(5); | 73 return base::TimeDelta::FromMinutes(5); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace metrics | 76 } // namespace metrics |
| OLD | NEW |