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

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

Issue 1418763002: Revert of Eliminate //chrome dependencies from MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 #ifndef COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/metrics/metrics_service_client.h" 10 #include "components/metrics/metrics_service_client.h"
11 11
12 namespace metrics { 12 namespace metrics {
13 13
14 // A simple concrete implementation of the MetricsServiceClient interface, for 14 // A simple concrete implementation of the MetricsServiceClient interface, for
15 // use in tests. 15 // use in tests.
16 class TestMetricsServiceClient : public MetricsServiceClient { 16 class TestMetricsServiceClient : public MetricsServiceClient {
17 public: 17 public:
18 static const char kBrandForTesting[]; 18 static const char kBrandForTesting[];
19 19
20 TestMetricsServiceClient(); 20 TestMetricsServiceClient();
21 ~TestMetricsServiceClient() override; 21 ~TestMetricsServiceClient() override;
22 22
23 // MetricsServiceClient: 23 // MetricsServiceClient:
24 metrics::MetricsService* GetMetricsService() override;
25 void SetMetricsClientId(const std::string& client_id) override; 24 void SetMetricsClientId(const std::string& client_id) override;
26 void OnRecordingDisabled() override; 25 void OnRecordingDisabled() override;
27 bool IsOffTheRecordSessionActive() override; 26 bool IsOffTheRecordSessionActive() override;
28 int32_t GetProduct() override; 27 int32_t GetProduct() override;
29 std::string GetApplicationLocale() override; 28 std::string GetApplicationLocale() override;
30 bool GetBrand(std::string* brand_code) override; 29 bool GetBrand(std::string* brand_code) override;
31 SystemProfileProto::Channel GetChannel() override; 30 SystemProfileProto::Channel GetChannel() override;
32 std::string GetVersionString() override; 31 std::string GetVersionString() override;
33 void OnLogUploadComplete() override; 32 void OnLogUploadComplete() override;
34 void InitializeSystemProfileMetrics( 33 void InitializeSystemProfileMetrics(
(...skipping 11 matching lines...) Expand all
46 std::string client_id_; 45 std::string client_id_;
47 std::string version_string_; 46 std::string version_string_;
48 int32_t product_; 47 int32_t product_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); 49 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient);
51 }; 50 };
52 51
53 } // namespace metrics 52 } // namespace metrics
54 53
55 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 54 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/metrics_service_client.h ('k') | components/metrics/test_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698