Home
last modified time | relevance | path

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

/external/cronet/base/i18n/
Dicu_mergeable_data_file_unittest.cc135 File ash_hash_file(ash_hash_path, flags); in TEST_F() local
139 ASSERT_TRUE(ash_hash_file.IsValid()); in TEST_F()
164 ASSERT_EQ(8, ash_hash_file.WriteAtCurrentPos( in TEST_F()
166 ASSERT_EQ(8, ash_hash_file.WriteAtCurrentPos( in TEST_F()
168 ASSERT_EQ(8, ash_hash_file.WriteAtCurrentPos( in TEST_F()
170 ASSERT_EQ(8, ash_hash_file.WriteAtCurrentPos( in TEST_F()
172 ASSERT_TRUE(ash_hash_file.Flush()); in TEST_F()
173 ash_hash_file.Close(); in TEST_F()
Dicu_mergeable_data_file.cc314 MemoryMappedFile ash_hash_file; in MaybeLoadCachedHashes() local
316 bool result = ash_hash_file.Initialize(ash_hash_path); in MaybeLoadCachedHashes()
317 if (!result || (ash_hash_file.length() % kHashBytes) || in MaybeLoadCachedHashes()
318 ((ash_hash_file.length() / kHashBytes) != ash_pages)) { in MaybeLoadCachedHashes()
334 for (size_t i = 0; i < ash_hash_file.length(); i += kHashBytes) { in MaybeLoadCachedHashes()
335 HashType hash = ReadHash(ash_hash_file.data(), i); in MaybeLoadCachedHashes()