Searched refs:memory1 (Results 1 – 2 of 2) sorted by relevance
/external/libchrome/base/memory/ |
D | shared_memory_unittest.cc | 146 SharedMemory memory1; in TEST_P() local 147 bool rv = memory1.Delete(test_name); in TEST_P() 149 rv = memory1.Delete(test_name); in TEST_P() 151 rv = memory1.Open(test_name, false); in TEST_P() 153 rv = memory1.CreateNamedDeprecated(test_name, false, kDataSize); in TEST_P() 155 rv = memory1.Map(kDataSize); in TEST_P() 162 EXPECT_NE(memory1.memory(), memory2.memory()); // Compare the pointers. in TEST_P() 165 ASSERT_NE(memory1.memory(), static_cast<void*>(nullptr)); in TEST_P() 169 memset(memory1.memory(), '1', kDataSize); in TEST_P() 170 EXPECT_EQ(memcmp(memory1.memory(), memory2.memory(), kDataSize), 0); in TEST_P() [all …]
|
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 143 char* memory1 = allocator_->GetAsArray<char>(block1, 1, 1); in TEST_F() local 144 ASSERT_TRUE(memory1); in TEST_F() 145 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 0)); in TEST_F() 146 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 1)); in TEST_F() 147 EXPECT_EQ(0U, allocator_->GetAsReference(memory1, 2)); in TEST_F() 148 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 1, 0)); in TEST_F() 149 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 16, 0)); in TEST_F()
|