| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chrome/browser/android/data_usage/external_data_use_reporter.h" | 5 #include "chrome/browser/android/data_usage/external_data_use_reporter.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 ExternalDataUseObserver* external_data_use_observer() const { | 136 ExternalDataUseObserver* external_data_use_observer() const { |
| 137 return external_data_use_observer_.get(); | 137 return external_data_use_observer_.get(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 ExternalDataUseReporter* external_data_use_reporter() const { | 140 ExternalDataUseReporter* external_data_use_reporter() const { |
| 141 return external_data_use_observer_->GetExternalDataUseReporterForTesting(); | 141 return external_data_use_observer_->GetExternalDataUseReporterForTesting(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 DataUseTabModel* data_use_tab_model() const { | 144 DataUseTabModel* data_use_tab_model() const { |
| 145 return external_data_use_reporter()->data_use_tab_model_; | 145 return external_data_use_observer()->GetDataUseTabModel(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 const ExternalDataUseReporter::DataUseReports& buffered_data_reports() const { | 148 const ExternalDataUseReporter::DataUseReports& buffered_data_reports() const { |
| 149 return external_data_use_reporter()->buffered_data_reports_; | 149 return external_data_use_reporter()->buffered_data_reports_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 int64_t default_upload_bytes() const { return 1; } | 152 int64_t default_upload_bytes() const { return 1; } |
| 153 | 153 |
| 154 int64_t default_download_bytes() const { | 154 int64_t default_download_bytes() const { |
| 155 return external_data_use_reporter()->data_use_report_min_bytes_; | 155 return external_data_use_reporter()->data_use_report_min_bytes_; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 EXPECT_EQ( | 547 EXPECT_EQ( |
| 548 base::TimeDelta::FromMilliseconds(kDefaultMaxDataReportSubmitWaitMsec), | 548 base::TimeDelta::FromMilliseconds(kDefaultMaxDataReportSubmitWaitMsec), |
| 549 external_data_use_reporter()->data_report_submit_timeout_); | 549 external_data_use_reporter()->data_report_submit_timeout_); |
| 550 EXPECT_EQ(kDataUseReportMinBytes, | 550 EXPECT_EQ(kDataUseReportMinBytes, |
| 551 external_data_use_reporter()->data_use_report_min_bytes_); | 551 external_data_use_reporter()->data_use_report_min_bytes_); |
| 552 } | 552 } |
| 553 | 553 |
| 554 } // namespace android | 554 } // namespace android |
| 555 | 555 |
| 556 } // namespace chrome | 556 } // namespace chrome |
| OLD | NEW |