Home
last modified time | relevance | path

Searched refs:kMapSize (Results 1 – 2 of 2) sorted by relevance

/external/chromium/net/disk_cache/
Dbitmap_unittest.cc91 const int kMapSize = 80; in TEST() local
92 char local_map[kMapSize]; in TEST()
93 for (int i = 0; i < kMapSize; i++) in TEST()
96 disk_cache::Bitmap bitmap(kMapSize * 8, false); in TEST()
97 bitmap.SetMap(reinterpret_cast<uint32*>(local_map), kMapSize / 4); in TEST()
98 for (int i = 0; i < kMapSize; i++) { in TEST()
105 EXPECT_EQ(0, memcmp(local_map, bitmap.GetMap(), kMapSize)); in TEST()
109 kMapSize * 8, kMapSize / 4); in TEST()
110 EXPECT_EQ(0, memcmp(local_map, bitmap2.GetMap(), kMapSize)); in TEST()
112 local_map[kMapSize / 2] = 'a'; in TEST()
[all …]
/external/v8/test/cctest/
Dtest-serialize.cc581 const int kMapSize = Map::kSize; in TEST() local
635 for (int i = 0; i + kMapSize <= size; i += kMapSize) { in TEST()
639 int page_fullness = (i + kMapSize) % Page::kPageSize; in TEST()
647 reinterpret_cast<char*>(map_last) + kMapSize); in TEST()