| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ~TestMetricsServiceClient() override; | 24 ~TestMetricsServiceClient() override; |
| 25 | 25 |
| 26 // MetricsServiceClient: | 26 // MetricsServiceClient: |
| 27 metrics::MetricsService* GetMetricsService() override; | 27 metrics::MetricsService* GetMetricsService() override; |
| 28 void SetMetricsClientId(const std::string& client_id) override; | 28 void SetMetricsClientId(const std::string& client_id) override; |
| 29 int32_t GetProduct() override; | 29 int32_t GetProduct() override; |
| 30 std::string GetApplicationLocale() override; | 30 std::string GetApplicationLocale() override; |
| 31 bool GetBrand(std::string* brand_code) override; | 31 bool GetBrand(std::string* brand_code) override; |
| 32 SystemProfileProto::Channel GetChannel() override; | 32 SystemProfileProto::Channel GetChannel() override; |
| 33 std::string GetVersionString() override; | 33 std::string GetVersionString() override; |
| 34 void OnLogUploadComplete() override; | |
| 35 void InitializeSystemProfileMetrics( | 34 void InitializeSystemProfileMetrics( |
| 36 const base::Closure& done_callback) override; | 35 const base::Closure& done_callback) override; |
| 37 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 36 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 38 std::unique_ptr<MetricsLogUploader> CreateUploader( | 37 std::unique_ptr<MetricsLogUploader> CreateUploader( |
| 39 const std::string& server_url, | 38 const std::string& server_url, |
| 40 const std::string& mime_type, | 39 const std::string& mime_type, |
| 41 const base::Callback<void(int)>& on_upload_complete) override; | 40 const base::Callback<void(int)>& on_upload_complete) override; |
| 42 base::TimeDelta GetStandardUploadInterval() override; | 41 base::TimeDelta GetStandardUploadInterval() override; |
| 43 bool IsReportingPolicyManaged() override; | 42 bool IsReportingPolicyManaged() override; |
| 44 EnableMetricsDefault GetMetricsReportingDefaultState() override; | 43 EnableMetricsDefault GetMetricsReportingDefaultState() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 59 int32_t product_; | 58 int32_t product_; |
| 60 bool reporting_is_managed_; | 59 bool reporting_is_managed_; |
| 61 EnableMetricsDefault enable_default_; | 60 EnableMetricsDefault enable_default_; |
| 62 | 61 |
| 63 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); | 62 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace metrics | 65 } // namespace metrics |
| 67 | 66 |
| 68 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 67 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |