Index: base/metrics/persistent_memory_allocator_unittest.cc |
diff --git a/base/metrics/persistent_memory_allocator_unittest.cc b/base/metrics/persistent_memory_allocator_unittest.cc |
index b34cf14de315d1bc464565df624cb824736f5313..ca02f2e101a622c3f1ee61d20d0d0a64ddd06b6d 100644 |
--- a/base/metrics/persistent_memory_allocator_unittest.cc |
+++ b/base/metrics/persistent_memory_allocator_unittest.cc |
@@ -565,7 +565,8 @@ TEST(FilePersistentMemoryAllocatorTest, AcceptableTest) { |
mmfile->Initialize(file_path); |
EXPECT_EQ(filesize, mmfile->length()); |
if (FilePersistentMemoryAllocator::IsFileAcceptable(*mmfile)) { |
- // Make sure construction doesn't crash. |
+ // Make sure construction doesn't crash. It will, however, cause |
+ // error messages warning about about a corrupted memory segment. |
FilePersistentMemoryAllocator allocator(std::move(mmfile), 0, ""); |
// Also make sure that iteration doesn't crash. |
PersistentMemoryAllocator::Iterator iter; |
@@ -605,7 +606,8 @@ TEST(FilePersistentMemoryAllocatorTest, AcceptableTest) { |
mmfile->Initialize(file_path); |
EXPECT_EQ(filesize, mmfile->length()); |
if (FilePersistentMemoryAllocator::IsFileAcceptable(*mmfile)) { |
- // Just need to make sure it doesn't crash. |
+ // Make sure construction doesn't crash. It will, however, cause |
+ // error messages warning about about a corrupted memory segment. |
FilePersistentMemoryAllocator allocator(std::move(mmfile), 0, ""); |
EXPECT_TRUE(allocator.IsCorrupt()); // Garbage data so it should be. |
} else { |