summaryrefslogtreecommitdiff
path: root/chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc')
-rw-r--r--chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc b/chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc
index 2246e610705..18d679c0eba 100644
--- a/chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc
+++ b/chromium/components/offline_pages/core/prefetch/store/prefetch_store_test_util.cc
@@ -256,6 +256,18 @@ std::size_t PrefetchStoreTestUtil::GetAllItems(
return items_count;
}
+std::string PrefetchStoreTestUtil::ToString() {
+ std::string result = "PrefetchItems: [";
+ std::set<PrefetchItem> items;
+ GetAllItems(&items);
+ for (const auto& item : items) {
+ result += "\n";
+ result += item.ToString();
+ }
+ result += "\n]";
+ return result;
+}
+
int PrefetchStoreTestUtil::ZombifyPrefetchItems(const std::string& name_space,
const GURL& url) {
int count = -1;