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 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() { | |
35 return false; | |
36 } | |
37 | |
38 int32_t TestMetricsServiceClient::GetProduct() { | 34 int32_t TestMetricsServiceClient::GetProduct() { |
39 return product_; | 35 return product_; |
40 } | 36 } |
41 | 37 |
42 std::string TestMetricsServiceClient::GetApplicationLocale() { | 38 std::string TestMetricsServiceClient::GetApplicationLocale() { |
43 return "en-US"; | 39 return "en-US"; |
44 } | 40 } |
45 | 41 |
46 bool TestMetricsServiceClient::GetBrand(std::string* brand_code) { | 42 bool TestMetricsServiceClient::GetBrand(std::string* brand_code) { |
47 *brand_code = kBrandForTesting; | 43 *brand_code = kBrandForTesting; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool TestMetricsServiceClient::IsReportingPolicyManaged() { | 77 bool TestMetricsServiceClient::IsReportingPolicyManaged() { |
82 return reporting_is_managed_; | 78 return reporting_is_managed_; |
83 } | 79 } |
84 | 80 |
85 EnableMetricsDefault | 81 EnableMetricsDefault |
86 TestMetricsServiceClient::GetMetricsReportingDefaultState() { | 82 TestMetricsServiceClient::GetMetricsReportingDefaultState() { |
87 return enable_default_; | 83 return enable_default_; |
88 } | 84 } |
89 | 85 |
90 } // namespace metrics | 86 } // namespace metrics |
OLD | NEW |