OLD | NEW |
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 <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "components/metrics/metrics_service_client.h" | 13 #include "components/metrics/metrics_service_client.h" |
11 | 14 |
12 namespace metrics { | 15 namespace metrics { |
13 | 16 |
14 // A simple concrete implementation of the MetricsServiceClient interface, for | 17 // A simple concrete implementation of the MetricsServiceClient interface, for |
15 // use in tests. | 18 // use in tests. |
16 class TestMetricsServiceClient : public MetricsServiceClient { | 19 class TestMetricsServiceClient : public MetricsServiceClient { |
17 public: | 20 public: |
18 static const char kBrandForTesting[]; | 21 static const char kBrandForTesting[]; |
19 | 22 |
(...skipping 26 matching lines...) Expand all Loading... |
46 std::string client_id_; | 49 std::string client_id_; |
47 std::string version_string_; | 50 std::string version_string_; |
48 int32_t product_; | 51 int32_t product_; |
49 | 52 |
50 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); | 53 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); |
51 }; | 54 }; |
52 | 55 |
53 } // namespace metrics | 56 } // namespace metrics |
54 | 57 |
55 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 58 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |