Move MetricsLog into the Metrics component.
[chromium-blink-merge.git] / components / metrics / test_metrics_service_client.cc
blobb17d3d3549b1a04814a53d0422ada1bd60607c5d
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
3 // found in the LICENSE file.
5 #include "components/metrics/test_metrics_service_client.h"
7 #include "base/callback.h"
8 #include "components/metrics/metrics_log_uploader.h"
10 namespace metrics {
12 // static
13 const char TestMetricsServiceClient::kBrandForTesting[] = "brand_for_testing";
15 TestMetricsServiceClient::TestMetricsServiceClient()
16 : install_date_(0) {
19 TestMetricsServiceClient::~TestMetricsServiceClient() {
22 void TestMetricsServiceClient::SetClientID(const std::string& client_id) {
23 client_id_ = client_id;
26 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() {
27 return false;
30 std::string TestMetricsServiceClient::GetApplicationLocale() {
31 return "en-US";
34 bool TestMetricsServiceClient::GetBrand(std::string* brand_code) {
35 *brand_code = kBrandForTesting;
36 return true;
39 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() {
40 return SystemProfileProto::CHANNEL_BETA;
43 std::string TestMetricsServiceClient::GetVersionString() {
44 return "5.0.322.0-64-devel";
47 int64 TestMetricsServiceClient::GetInstallDate() {
48 return install_date_;
51 void TestMetricsServiceClient::OnLogUploadComplete() {
54 void TestMetricsServiceClient::StartGatheringMetrics(
55 const base::Closure& done_callback) {
56 done_callback.Run();
59 void TestMetricsServiceClient::CollectFinalMetrics(
60 const base::Closure& done_callback) {
61 done_callback.Run();
64 scoped_ptr<MetricsLogUploader> TestMetricsServiceClient::CreateUploader(
65 const std::string& server_url,
66 const std::string& mime_type,
67 const base::Callback<void(int)>& on_upload_complete) {
68 return scoped_ptr<MetricsLogUploader>();
71 } // namespace metrics