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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc

Issue 2736953003: Removing unused PreviewsDataSavings (Closed)
Patch Set: removing drp codepaths only used by previews/ Created 3 years, 9 months 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_compression_stats_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
index cadbcd3cda7cb0c844a1e48a8c2e9c04085840c3..a2e881a90041e00c484883d6ba3a83b2122dd363 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
@@ -584,28 +584,6 @@ TEST_F(DataReductionProxyCompressionStatsTest, TotalLengths) {
GetInt64(data_reduction_proxy::prefs::kHttpOriginalContentLength));
}
-TEST_F(DataReductionProxyCompressionStatsTest, TotalLengthsUpdate) {
- const int64_t kOriginalLength = 200;
- const int64_t kReceivedLength = 100;
-
- compression_stats()->UpdateDataSavings(std::string(), kReceivedLength,
- kOriginalLength);
-
- EXPECT_EQ(0,
- GetInt64(data_reduction_proxy::prefs::kHttpReceivedContentLength));
- EXPECT_EQ(kOriginalLength - kReceivedLength,
- GetInt64(data_reduction_proxy::prefs::kHttpOriginalContentLength));
-
- // Record the same numbers again, and total lengths should be doubled.
- compression_stats()->UpdateDataSavings(std::string(), kReceivedLength,
- kOriginalLength);
-
- EXPECT_EQ(0,
- GetInt64(data_reduction_proxy::prefs::kHttpReceivedContentLength));
- EXPECT_EQ(kOriginalLength * 2 - kReceivedLength * 2,
- GetInt64(data_reduction_proxy::prefs::kHttpOriginalContentLength));
-}
-
TEST_F(DataReductionProxyCompressionStatsTest, OneResponse) {
const int64_t kOriginalLength = 200;
const int64_t kReceivedLength = 100;

Powered by Google App Engine
This is Rietveld 408576698