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

Unified Diff: components/precache/core/fetcher_pool.h

Issue 2037903002: Precache manifest should not be added to fetcher pool which is full (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and addressed comments Created 4 years, 6 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/precache/core/fetcher_pool.h
diff --git a/components/precache/core/fetcher_pool.h b/components/precache/core/fetcher_pool.h
index 2be36e28f508346e8e6529c40022991e95a4c32a..3d69ed6dc3e6d9648dc7ac261b9931a2e13f4303 100644
--- a/components/precache/core/fetcher_pool.h
+++ b/components/precache/core/fetcher_pool.h
@@ -8,6 +8,7 @@
#include <memory>
#include <unordered_map>
+#include "base/gtest_prod_util.h"
#include "base/logging.h"
namespace precache {
@@ -72,6 +73,8 @@ class FetcherPool {
}
private:
+ FRIEND_TEST_ALL_PREFIXES(PrecacheFetcherTest, FetcherPoolMaxLimitReached);
+
const size_t max_size_;
std::unordered_map<const T*, std::unique_ptr<T>> elements_;
« no previous file with comments | « no previous file | components/precache/core/precache_fetcher.h » ('j') | components/precache/core/precache_fetcher_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698