Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h |
| index e42557f3a0e7426cd43486289154a0977fedefcc..c2a935dc88a86a8ba78e6da8269133337d68ecfa 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h |
| @@ -236,6 +236,18 @@ class TestDataReductionProxyIOData : public DataReductionProxyIOData { |
| return pingback_reporting_fraction_; |
| } |
| + int64_t original_content_length() const { return original_content_length_; } |
| + |
| + int64_t actual_content_length() const { return actual_content_length_; } |
| + |
| + void UpdateContentLengths( |
| + int64_t data_used, |
| + int64_t original_size, |
| + bool data_reduction_proxy_enabled, |
| + DataReductionProxyRequestType request_type, |
| + const scoped_refptr<DataUseGroup>& data_usage_source, |
| + const std::string& mime_type) override; |
| + |
| private: |
| // Allowed SetDataReductionProxyService to be re-entrant. |
| bool service_set_; |
| @@ -243,6 +255,10 @@ class TestDataReductionProxyIOData : public DataReductionProxyIOData { |
| // Reporting fraction last set via SetPingbackReportingFraction. |
| float pingback_reporting_fraction_; |
| + // The total original and actual lengths seen so far. |
| + int64_t original_content_length_; |
|
tbansal1
2016/12/20 23:20:48
Is it possible to not define these variables in th
RyanSturm
2016/12/21 00:10:20
Done.
|
| + int64_t actual_content_length_; |
| + |
| TestDataReductionProxyRequestOptions* test_request_options_; |
| }; |