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

Side by Side Diff: content/browser/cache_storage/cache_storage_cache_unittest.cc

Issue 2779733002: [HttpCache] Store some memcache info to memory dumps for debugging (Closed)
Patch Set: Rebase xunjieli's change 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/cache_storage/cache_storage_cache.h" 5 #include "content/browser/cache_storage/cache_storage_cache.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 std::unique_ptr<Iterator> CreateIterator() override { 112 std::unique_ptr<Iterator> CreateIterator() override {
113 return backend_->CreateIterator(); 113 return backend_->CreateIterator();
114 } 114 }
115 void GetStats(base::StringPairs* stats) override { 115 void GetStats(base::StringPairs* stats) override {
116 return backend_->GetStats(stats); 116 return backend_->GetStats(stats);
117 } 117 }
118 void OnExternalCacheHit(const std::string& key) override { 118 void OnExternalCacheHit(const std::string& key) override {
119 return backend_->OnExternalCacheHit(key); 119 return backend_->OnExternalCacheHit(key);
120 } 120 }
121 size_t EstimateMemoryUsage() const override { 121
122 size_t DumpMemoryStats(
123 base::trace_event::ProcessMemoryDump* pmd,
124 const std::string& parent_absolute_name) const override {
122 NOTREACHED(); 125 NOTREACHED();
123 return 0; 126 return 0u;
124 } 127 }
125 128
126 // Call to continue a delayed doom. 129 // Call to continue a delayed doom.
127 void DoomEntryContinue() { 130 void DoomEntryContinue() {
128 EXPECT_FALSE(doom_entry_callback_.is_null()); 131 EXPECT_FALSE(doom_entry_callback_.is_null());
129 doom_entry_callback_.Run(); 132 doom_entry_callback_.Run();
130 } 133 }
131 134
132 void set_delay_doom(bool value) { delay_doom_ = value; } 135 void set_delay_doom(bool value) { delay_doom_ = value; }
133 136
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 EXPECT_EQ(1, sequence_out); 1654 EXPECT_EQ(1, sequence_out);
1652 close_loop2->Run(); 1655 close_loop2->Run();
1653 EXPECT_EQ(2, sequence_out); 1656 EXPECT_EQ(2, sequence_out);
1654 } 1657 }
1655 1658
1656 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, 1659 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest,
1657 CacheStorageCacheTestP, 1660 CacheStorageCacheTestP,
1658 ::testing::Values(false, true)); 1661 ::testing::Values(false, true));
1659 1662
1660 } // namespace content 1663 } // namespace content
OLDNEW
« no previous file with comments | « base/trace_event/memory_infra_background_whitelist.cc ('k') | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698