| 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 | 9 |
| 9 namespace metrics { | 10 namespace metrics { |
| 10 | 11 |
| 11 // static | 12 // static |
| 12 const char TestMetricsServiceClient::kBrandForTesting[] = "brand_for_testing"; | 13 const char TestMetricsServiceClient::kBrandForTesting[] = "brand_for_testing"; |
| 13 | 14 |
| 14 TestMetricsServiceClient::TestMetricsServiceClient() { | 15 TestMetricsServiceClient::TestMetricsServiceClient() { |
| 15 } | 16 } |
| 16 | 17 |
| 17 TestMetricsServiceClient::~TestMetricsServiceClient() { | 18 TestMetricsServiceClient::~TestMetricsServiceClient() { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 void TestMetricsServiceClient::StartGatheringMetrics( | 49 void TestMetricsServiceClient::StartGatheringMetrics( |
| 49 const base::Closure& done_callback) { | 50 const base::Closure& done_callback) { |
| 50 done_callback.Run(); | 51 done_callback.Run(); |
| 51 } | 52 } |
| 52 | 53 |
| 53 void TestMetricsServiceClient::CollectFinalMetrics( | 54 void TestMetricsServiceClient::CollectFinalMetrics( |
| 54 const base::Closure& done_callback) { | 55 const base::Closure& done_callback) { |
| 55 done_callback.Run(); | 56 done_callback.Run(); |
| 56 } | 57 } |
| 57 | 58 |
| 59 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader( |
| 60 const std::string& server_url, |
| 61 const std::string& mime_type, |
| 62 const base::Callback<void(int)>& on_upload_complete) { |
| 63 return scoped_ptr<MetricsLogUploader>(); |
| 64 } |
| 65 |
| 58 } // namespace metrics | 66 } // namespace metrics |
| OLD | NEW |