| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 metrics::MetricsService* TestMetricsServiceClient::GetMetricsService() { | 25 metrics::MetricsService* TestMetricsServiceClient::GetMetricsService() { |
| 26 return nullptr; | 26 return nullptr; |
| 27 } | 27 } |
| 28 | 28 |
| 29 void TestMetricsServiceClient::SetMetricsClientId( | 29 void TestMetricsServiceClient::SetMetricsClientId( |
| 30 const std::string& client_id) { | 30 const std::string& client_id) { |
| 31 client_id_ = client_id; | 31 client_id_ = client_id; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestMetricsServiceClient::OnRecordingDisabled() { | |
| 35 } | |
| 36 | |
| 37 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() { | 34 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() { |
| 38 return false; | 35 return false; |
| 39 } | 36 } |
| 40 | 37 |
| 41 int32_t TestMetricsServiceClient::GetProduct() { | 38 int32_t TestMetricsServiceClient::GetProduct() { |
| 42 return product_; | 39 return product_; |
| 43 } | 40 } |
| 44 | 41 |
| 45 std::string TestMetricsServiceClient::GetApplicationLocale() { | 42 std::string TestMetricsServiceClient::GetApplicationLocale() { |
| 46 return "en-US"; | 43 return "en-US"; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool TestMetricsServiceClient::IsReportingPolicyManaged() { | 81 bool TestMetricsServiceClient::IsReportingPolicyManaged() { |
| 85 return reporting_is_managed_; | 82 return reporting_is_managed_; |
| 86 } | 83 } |
| 87 | 84 |
| 88 EnableMetricsDefault | 85 EnableMetricsDefault |
| 89 TestMetricsServiceClient::GetMetricsReportingDefaultState() { | 86 TestMetricsServiceClient::GetMetricsReportingDefaultState() { |
| 90 return enable_default_; | 87 return enable_default_; |
| 91 } | 88 } |
| 92 | 89 |
| 93 } // namespace metrics | 90 } // namespace metrics |
| OLD | NEW |