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

Unified Diff: components/discardable_memory/common/discardable_shared_memory_heap_perftest.cc

Issue 2459733002: Move discardable memory to //components from //content (Closed)
Patch Set: Fix build error in ios Created 4 years, 1 month 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/discardable_memory/common/discardable_shared_memory_heap_perftest.cc
diff --git a/content/common/discardable_shared_memory_heap_perftest.cc b/components/discardable_memory/common/discardable_shared_memory_heap_perftest.cc
similarity index 94%
rename from content/common/discardable_shared_memory_heap_perftest.cc
rename to components/discardable_memory/common/discardable_shared_memory_heap_perftest.cc
index 8dc3d588dd29c719a9e445e332e6dd37d4a038a3..f4eb81e528a608762041a95aec53e6d34aea9510 100644
--- a/content/common/discardable_shared_memory_heap_perftest.cc
+++ b/components/discardable_memory/common/discardable_shared_memory_heap_perftest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/discardable_shared_memory_heap.h"
+#include "components/discardable_memory/common/discardable_shared_memory_heap.h"
#include <stddef.h>
#include <algorithm>
@@ -18,14 +18,13 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_test.h"
-namespace content {
+namespace discardable_memory {
namespace {
const int kTimeLimitMs = 2000;
const int kTimeCheckInterval = 8192;
-void NullTask() {
-}
+void NullTask() {}
TEST(DiscardableSharedMemoryHeapTest, SearchFreeLists) {
size_t block_size = base::GetPageSize();
@@ -98,4 +97,4 @@ TEST(DiscardableSharedMemoryHeapTest, SearchFreeLists) {
}
} // namespace
-} // namespace content
+} // namespace discardable_memory

Powered by Google App Engine
This is Rietveld 408576698