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

Unified Diff: mojo/services/html_viewer/discardable_memory_allocator_unittest.cc

Issue 1094433002: base: Rename DiscardableMemory::Memory() to ::data(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mojo unittest Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/html_viewer/discardable_memory_allocator.cc ('k') | skia/ext/SkDiscardableMemory_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/discardable_memory_allocator_unittest.cc
diff --git a/mojo/services/html_viewer/discardable_memory_allocator_unittest.cc b/mojo/services/html_viewer/discardable_memory_allocator_unittest.cc
index aabf865b4275fe1cd76d50d9605bb8393e50acb3..d63d2c57aca7557b2623451d21deb59ec3cfadb2 100644
--- a/mojo/services/html_viewer/discardable_memory_allocator_unittest.cc
+++ b/mojo/services/html_viewer/discardable_memory_allocator_unittest.cc
@@ -63,9 +63,9 @@ TEST(DiscardableMemoryAllocator, DontDiscardLiveChunks) {
allocator.AllocateLockedDiscardableMemory(kAlmostOneMegabyte);
// These accesses will fail if the underlying weak ptr has been deallocated.
- EXPECT_NE(nullptr, chunk_one->Memory());
- EXPECT_NE(nullptr, chunk_two->Memory());
- EXPECT_NE(nullptr, chunk_three->Memory());
+ EXPECT_NE(nullptr, chunk_one->data());
+ EXPECT_NE(nullptr, chunk_two->data());
+ EXPECT_NE(nullptr, chunk_three->data());
chunk_one->Unlock();
chunk_two->Unlock();
« no previous file with comments | « mojo/services/html_viewer/discardable_memory_allocator.cc ('k') | skia/ext/SkDiscardableMemory_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698