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 5125ae6f322a141ff8a7d9e9e400a3a0ef7d264a..5b2634727ab71b512d85a103fa5b5c0ebf374a38 100644 |
--- a/base/metrics/persistent_memory_allocator_unittest.cc |
+++ b/base/metrics/persistent_memory_allocator_unittest.cc |
@@ -181,9 +181,9 @@ TEST_F(PersistentMemoryAllocatorTest, AllocateAndIterate) { |
// Check that an objcet's type can be changed. |
EXPECT_EQ(2U, allocator_->GetType(block2)); |
- allocator_->SetType(block2, 3); |
+ allocator_->ChangeType(block2, 3, 2); |
EXPECT_EQ(3U, allocator_->GetType(block2)); |
- allocator_->SetType(block2, 2); |
+ allocator_->ChangeType(block2, 2, 3); |
EXPECT_EQ(2U, allocator_->GetType(block2)); |
// Create second allocator (read/write) using the same memory segment. |
@@ -511,7 +511,7 @@ TEST(SharedPersistentMemoryAllocatorTest, CreationTest) { |
r456 = local.Allocate(456, 456); |
r789 = local.Allocate(789, 789); |
local.MakeIterable(r123); |
- local.SetType(r456, 654); |
+ local.ChangeType(r456, 654, 456); |
local.MakeIterable(r789); |
local.GetMemoryInfo(&meminfo1); |
EXPECT_FALSE(local.IsFull()); |
@@ -598,7 +598,7 @@ TEST(FilePersistentMemoryAllocatorTest, CreationTest) { |
r456 = local.Allocate(456, 456); |
r789 = local.Allocate(789, 789); |
local.MakeIterable(r123); |
- local.SetType(r456, 654); |
+ local.ChangeType(r456, 654, 456); |
local.MakeIterable(r789); |
local.GetMemoryInfo(&meminfo1); |
EXPECT_FALSE(local.IsFull()); |