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

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

Issue 290343005: Pass MetricsServiceClient into MetricsService, and create a simple stubbed TestMetricsServiceClient… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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
(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
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