Home
last modified time | relevance | path

Searched refs:memory1 (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/memory/
Dshared_memory_unittest.cc102 SharedMemory memory1; in TEST() local
103 bool rv = memory1.Delete(test_name); in TEST()
105 rv = memory1.Delete(test_name); in TEST()
107 rv = memory1.Open(test_name, false); in TEST()
109 rv = memory1.CreateNamedDeprecated(test_name, false, kDataSize); in TEST()
111 rv = memory1.Map(kDataSize); in TEST()
118 EXPECT_NE(memory1.memory(), memory2.memory()); // Compare the pointers. in TEST()
121 ASSERT_NE(memory1.memory(), static_cast<void*>(NULL)); in TEST()
125 memset(memory1.memory(), '1', kDataSize); in TEST()
126 EXPECT_EQ(memcmp(memory1.memory(), memory2.memory(), kDataSize), 0); in TEST()
[all …]
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc130 char* memory1 = allocator_->GetAsArray<char>(block1, 1, 1); in TEST_F() local
131 ASSERT_TRUE(memory1); in TEST_F()
132 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 0)); in TEST_F()
133 EXPECT_EQ(block1, allocator_->GetAsReference(memory1, 1)); in TEST_F()
134 EXPECT_EQ(0U, allocator_->GetAsReference(memory1, 2)); in TEST_F()
135 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 1, 0)); in TEST_F()
136 EXPECT_EQ(0U, allocator_->GetAsReference(memory1 + 16, 0)); in TEST_F()
/external/libchrome/base/trace_event/
Dprocess_memory_dump_unittest.cc288 std::unique_ptr<char, base::AlignedFreeDeleter> memory1( in TEST()
290 memset(memory1.get(), 0, size1); in TEST()
291 size_t res1 = ProcessMemoryDump::CountResidentBytes(memory1.get(), size1); in TEST()