Home
last modified time | relevance | path

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

/external/cronet/base/i18n/
Dicu_mergeable_data_file_unittest.cc137 File lacros_hash_file(lacros_hash_path, flags); in TEST_F() local
141 ASSERT_TRUE(lacros_hash_file.IsValid()); in TEST_F()
186 ASSERT_EQ(8, lacros_hash_file.WriteAtCurrentPos( in TEST_F()
188 ASSERT_EQ(8, lacros_hash_file.WriteAtCurrentPos( in TEST_F()
191 ASSERT_EQ(8, lacros_hash_file.WriteAtCurrentPos( in TEST_F()
193 ASSERT_EQ(8, lacros_hash_file.WriteAtCurrentPos( in TEST_F()
195 ASSERT_TRUE(lacros_hash_file.Flush()); in TEST_F()
196 lacros_hash_file.Close(); in TEST_F()
Dicu_mergeable_data_file.cc323 MemoryMappedFile lacros_hash_file; in MaybeLoadCachedHashes() local
325 result = lacros_hash_file.Initialize(lacros_hash_path); in MaybeLoadCachedHashes()
326 if (!result || (lacros_hash_file.length() % kHashBytes) || in MaybeLoadCachedHashes()
327 ((lacros_hash_file.length() / kHashBytes) != lacros_pages)) { in MaybeLoadCachedHashes()
342 for (size_t i = 0; i < lacros_hash_file.length(); i += kHashBytes) { in MaybeLoadCachedHashes()
343 HashType hash = ReadHash(lacros_hash_file.data(), i); in MaybeLoadCachedHashes()