| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { | 47 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { |
| 48 return SystemProfileProto::CHANNEL_BETA; | 48 return SystemProfileProto::CHANNEL_BETA; |
| 49 } | 49 } |
| 50 | 50 |
| 51 std::string TestMetricsServiceClient::GetVersionString() { | 51 std::string TestMetricsServiceClient::GetVersionString() { |
| 52 return version_string_; | 52 return version_string_; |
| 53 } | 53 } |
| 54 | 54 |
| 55 void TestMetricsServiceClient::OnLogUploadComplete() { | |
| 56 } | |
| 57 | |
| 58 void TestMetricsServiceClient::InitializeSystemProfileMetrics( | 55 void TestMetricsServiceClient::InitializeSystemProfileMetrics( |
| 59 const base::Closure& done_callback) { | 56 const base::Closure& done_callback) { |
| 60 done_callback.Run(); | 57 done_callback.Run(); |
| 61 } | 58 } |
| 62 | 59 |
| 63 void TestMetricsServiceClient::CollectFinalMetricsForLog( | 60 void TestMetricsServiceClient::CollectFinalMetricsForLog( |
| 64 const base::Closure& done_callback) { | 61 const base::Closure& done_callback) { |
| 65 done_callback.Run(); | 62 done_callback.Run(); |
| 66 } | 63 } |
| 67 | 64 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 79 bool TestMetricsServiceClient::IsReportingPolicyManaged() { | 76 bool TestMetricsServiceClient::IsReportingPolicyManaged() { |
| 80 return reporting_is_managed_; | 77 return reporting_is_managed_; |
| 81 } | 78 } |
| 82 | 79 |
| 83 EnableMetricsDefault | 80 EnableMetricsDefault |
| 84 TestMetricsServiceClient::GetMetricsReportingDefaultState() { | 81 TestMetricsServiceClient::GetMetricsReportingDefaultState() { |
| 85 return enable_default_; | 82 return enable_default_; |
| 86 } | 83 } |
| 87 | 84 |
| 88 } // namespace metrics | 85 } // namespace metrics |
| OLD | NEW |