Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h

Issue 2592783002: Move session network stats from IO to UI (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
};

Powered by Google App Engine
This is Rietveld 408576698