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 <string> | 8 #include <string> |
9 | 9 |
10 #include "components/metrics/metrics_service_client.h" | 10 #include "components/metrics/metrics_service_client.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 int32_t GetProduct() override; | 26 int32_t GetProduct() override; |
27 std::string GetApplicationLocale() override; | 27 std::string GetApplicationLocale() override; |
28 bool GetBrand(std::string* brand_code) override; | 28 bool GetBrand(std::string* brand_code) override; |
29 SystemProfileProto::Channel GetChannel() override; | 29 SystemProfileProto::Channel GetChannel() override; |
30 std::string GetVersionString() override; | 30 std::string GetVersionString() override; |
31 void OnLogUploadComplete() override; | 31 void OnLogUploadComplete() override; |
32 void StartGatheringMetrics(const base::Closure& done_callback) override; | 32 void StartGatheringMetrics(const base::Closure& done_callback) override; |
33 void CollectFinalMetrics(const base::Closure& done_callback) override; | 33 void CollectFinalMetrics(const base::Closure& done_callback) override; |
34 scoped_ptr<MetricsLogUploader> CreateUploader( | 34 scoped_ptr<MetricsLogUploader> CreateUploader( |
35 const base::Callback<void(int)>& on_upload_complete) override; | 35 const base::Callback<void(int)>& on_upload_complete) override; |
| 36 base::TimeDelta GetStandardUploadInterval() override; |
36 | 37 |
37 const std::string& get_client_id() const { return client_id_; } | 38 const std::string& get_client_id() const { return client_id_; } |
38 void set_version_string(const std::string& str) { version_string_ = str; } | 39 void set_version_string(const std::string& str) { version_string_ = str; } |
39 void set_product(int32_t product) { product_ = product; } | 40 void set_product(int32_t product) { product_ = product; } |
40 | 41 |
41 private: | 42 private: |
42 std::string client_id_; | 43 std::string client_id_; |
43 std::string version_string_; | 44 std::string version_string_; |
44 int32_t product_; | 45 int32_t product_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); | 47 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace metrics | 50 } // namespace metrics |
50 | 51 |
51 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 52 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |