Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: components/metrics/test_metrics_service_client.cc

Issue 291153013: Make MetricsService upload logs through an interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Casts for win64 compile Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698