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

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

Issue 2810393002: Fix memory issues with the Data Reduction proxy LevelDB (Closed)
Patch Set: ryan comments Created 3 years, 8 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_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
index eb267fb172abf0f68731f2016470c5d7a99e4e36..f5a610b1dfdd3a972951bef62d850a3780c02edd 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
@@ -287,6 +287,12 @@ DataStore::Status TestDataStore::Delete(base::StringPiece key) {
return OK;
}
+DataStore::Status TestDataStore::RecreateDB() {
+ map_.clear();
+
+ return OK;
+}
+
DataReductionProxyTestContext::Builder::Builder()
: params_flags_(DataReductionProxyParams::kPromoAllowed),
params_definitions_(TestDataReductionProxyParams::HAS_EVERYTHING),

Powered by Google App Engine
This is Rietveld 408576698