OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "components/metrics/test_metrics_service_client.h" |
| 6 |
| 7 namespace metrics { |
| 8 |
| 9 TestMetricsServiceClient::TestMetricsServiceClient() { |
| 10 } |
| 11 |
| 12 TestMetricsServiceClient::~TestMetricsServiceClient() { |
| 13 } |
| 14 |
| 15 void TestMetricsServiceClient::SetClientID(const std::string& client_id) { |
| 16 client_id_ = client_id; |
| 17 } |
| 18 |
| 19 bool TestMetricsServiceClient::IsOffTheRecordSessionActive() { |
| 20 return false; |
| 21 } |
| 22 |
| 23 std::string TestMetricsServiceClient::GetApplicationLocale() { |
| 24 return "en-US"; |
| 25 } |
| 26 |
| 27 bool TestMetricsServiceClient::GetBrand(std::string* brand_code) { |
| 28 *brand_code = "BRAND_CODE"; |
| 29 return true; |
| 30 } |
| 31 |
| 32 SystemProfileProto::Channel TestMetricsServiceClient::GetChannel() { |
| 33 return SystemProfileProto::CHANNEL_BETA; |
| 34 } |
| 35 |
| 36 std::string TestMetricsServiceClient::GetVersionString() { |
| 37 return "5.0.322.0-64-devel"; |
| 38 } |
| 39 |
| 40 } // namespace metrics |
OLD | NEW |