| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 ExternalDataUseObserver* external_data_use_observer() const { | 133 ExternalDataUseObserver* external_data_use_observer() const { |
| 134 return external_data_use_observer_.get(); | 134 return external_data_use_observer_.get(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 ExternalDataUseReporter* external_data_use_reporter() const { | 137 ExternalDataUseReporter* external_data_use_reporter() const { |
| 138 return external_data_use_observer_->GetExternalDataUseReporterForTesting(); | 138 return external_data_use_observer_->GetExternalDataUseReporterForTesting(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 DataUseTabModel* data_use_tab_model() const { | 141 DataUseTabModel* data_use_tab_model() const { |
| 142 return external_data_use_reporter()->data_use_tab_model_; | 142 return external_data_use_observer()->GetDataUseTabModel(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 const ExternalDataUseReporter::DataUseReports& buffered_data_reports() const { | 145 const ExternalDataUseReporter::DataUseReports& buffered_data_reports() const { |
| 146 return external_data_use_reporter()->buffered_data_reports_; | 146 return external_data_use_reporter()->buffered_data_reports_; |
| 147 } | 147 } |
| 148 | 148 |
| 149 int64_t default_upload_bytes() const { return 1; } | 149 int64_t default_upload_bytes() const { return 1; } |
| 150 | 150 |
| 151 int64_t default_download_bytes() const { | 151 int64_t default_download_bytes() const { |
| 152 return external_data_use_reporter()->data_use_report_min_bytes_; | 152 return external_data_use_reporter()->data_use_report_min_bytes_; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 EXPECT_EQ( | 544 EXPECT_EQ( |
| 545 base::TimeDelta::FromMilliseconds(kDefaultMaxDataReportSubmitWaitMsec), | 545 base::TimeDelta::FromMilliseconds(kDefaultMaxDataReportSubmitWaitMsec), |
| 546 external_data_use_reporter()->data_report_submit_timeout_); | 546 external_data_use_reporter()->data_report_submit_timeout_); |
| 547 EXPECT_EQ(kDataUseReportMinBytes, | 547 EXPECT_EQ(kDataUseReportMinBytes, |
| 548 external_data_use_reporter()->data_use_report_min_bytes_); | 548 external_data_use_reporter()->data_use_report_min_bytes_); |
| 549 } | 549 } |
| 550 | 550 |
| 551 } // namespace android | 551 } // namespace android |
| 552 | 552 |
| 553 } // namespace chrome | 553 } // namespace chrome |
| OLD | NEW |