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

Unified Diff: content/common/discardable_shared_memory_heap_perftest.cc

Issue 1009203004: content: Add DeletedDiscardableSharedMemory IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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: content/common/discardable_shared_memory_heap_perftest.cc
diff --git a/content/common/discardable_shared_memory_heap_perftest.cc b/content/common/discardable_shared_memory_heap_perftest.cc
index e0605a82fda523f49ef50e9bfa6cd136e22e7387..566f094b94f933b510ecd25f0aa31bfcce737ab6 100644
--- a/content/common/discardable_shared_memory_heap_perftest.cc
+++ b/content/common/discardable_shared_memory_heap_perftest.cc
@@ -22,6 +22,9 @@ namespace {
const int kTimeLimitMs = 2000;
const int kTimeCheckInterval = 8192;
+void NullTask() {
+}
+
TEST(DiscardableSharedMemoryHeapTest, SearchFreeLists) {
size_t block_size = base::GetPageSize();
DiscardableSharedMemoryHeap heap(block_size);
@@ -34,7 +37,8 @@ TEST(DiscardableSharedMemoryHeapTest, SearchFreeLists) {
scoped_ptr<base::DiscardableSharedMemory> memory(
new base::DiscardableSharedMemory);
ASSERT_TRUE(memory->CreateAndMap(segment_size));
- heap.MergeIntoFreeLists(heap.Grow(memory.Pass(), segment_size).Pass());
+ heap.MergeIntoFreeLists(
+ heap.Grow(memory.Pass(), segment_size, base::Bind(NullTask)).Pass());
}
unsigned kSeed = 1;
« no previous file with comments | « content/common/discardable_shared_memory_heap.cc ('k') | content/common/discardable_shared_memory_heap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698