Home
last modified time | relevance | path

Searched refs:base_dir_ (Results 1 – 8 of 8) sorted by relevance

/external/icing/icing/store/
Dkey-mapper_test.cc36 void SetUp() override { base_dir_ = GetTestTempDir() + "/key_mapper"; } in SetUp()
39 filesystem_.DeleteDirectoryRecursively(base_dir_.c_str()); in TearDown()
42 std::string base_dir_; member in icing::lib::__anoned4402f40111::KeyMapperTest
55 ASSERT_THAT(KeyMapper<DocumentId>::Create(filesystem_, base_dir_, -1), in TEST_F()
60 ASSERT_THAT(KeyMapper<DocumentId>::Create(filesystem_, base_dir_, in TEST_F()
68 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
75 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
94 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
105 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
130 KeyMapper<DocumentId>::Create(filesystem_, base_dir_, kMaxKeyMapperSize)); in TEST_F()
[all …]
Ddocument-store.cc174 base_dir_(base_dir), in DocumentStore()
226 auto create_result_or = DocumentLogCreator::Create(filesystem_, base_dir_); in Initialize()
322 if (!filesystem_->Read(MakeHeaderFilename(base_dir_).c_str(), &header, in InitializeExistingDerivedFiles()
325 absl_ports::StrCat("Couldn't read: ", MakeHeaderFilename(base_dir_))); in InitializeExistingDerivedFiles()
330 "Invalid header kMagic for file: ", MakeHeaderFilename(base_dir_))); in InitializeExistingDerivedFiles()
336 KeyMapper<DocumentId>::Create(*filesystem_, base_dir_, kUriMapperMaxSize); in InitializeExistingDerivedFiles()
347 *filesystem_, MakeDocumentIdMapperFilename(base_dir_), in InitializeExistingDerivedFiles()
358 *filesystem_, MakeScoreCacheFilename(base_dir_), in InitializeExistingDerivedFiles()
363 *filesystem_, MakeFilterCacheFilename(base_dir_), in InitializeExistingDerivedFiles()
369 MakeNamespaceMapperFilename(base_dir_), in InitializeExistingDerivedFiles()
[all …]
Dusage-store.h188 base_dir_(std::move(base_dir)), in UsageStore()
194 const std::string base_dir_; variable
Dusage-store.cc240 filesystem_, MakeUsageScoreCacheFilename(base_dir_)); in Reset()
249 filesystem_, MakeUsageScoreCacheFilename(base_dir_), in Reset()
Ddocument-store.h431 const std::string base_dir_; variable
/external/icing/icing/schema/
Dschema-store.cc120 base_dir_(std::move(base_dir)), in SchemaStore()
122 schema_file_(*filesystem, MakeSchemaFilename(base_dir_)) {} in SchemaStore()
175 if (!filesystem_.Read(MakeHeaderFilename(base_dir_).c_str(), &header, in InitializeDerivedFiles()
178 absl_ports::StrCat("Couldn't read: ", MakeHeaderFilename(base_dir_))); in InitializeDerivedFiles()
183 "Invalid header kMagic for file: ", MakeHeaderFilename(base_dir_))); in InitializeDerivedFiles()
189 MakeSchemaTypeMapperFilename(base_dir_), in InitializeDerivedFiles()
239 if (!filesystem_.FileExists(MakeHeaderFilename(base_dir_).c_str())) { in HeaderExists()
244 filesystem_.GetFileSize(MakeHeaderFilename(base_dir_).c_str()); in HeaderExists()
257 filesystem_.OpenForWrite(MakeHeaderFilename(base_dir_).c_str())); in UpdateHeader()
263 "Failed to write SchemaStore header: ", MakeHeaderFilename(base_dir_))); in UpdateHeader()
[all …]
Dschema-store.h296 const std::string base_dir_; variable
/external/libchrome/base/files/
Dfile_util_unittest.cc3332 base_dir_ = temp_dir_.GetPath().AppendASCII("base_dir"); in SetUp()
3333 ASSERT_TRUE(CreateDirectory(base_dir_)); in SetUp()
3335 sub_dir_ = base_dir_.AppendASCII("sub_dir"); in SetUp()
3343 ASSERT_EQ(0, stat(base_dir_.value().c_str(), &stat_buf)); in SetUp()
3363 base_dir_, enabled_permissions, disabled_permissions)); in SetUp()
3369 FilePath base_dir_; member in base::__anon075779580111::VerifyPathControlledByUserTest
3380 FilePath does_not_exist = base_dir_.AppendASCII("does") in TEST_F()
3384 VerifyPathControlledByUser(base_dir_, does_not_exist, uid_, ok_gids_)); in TEST_F()
3387 EXPECT_FALSE(VerifyPathControlledByUser(sub_dir_, base_dir_, uid_, ok_gids_)); in TEST_F()
3391 EXPECT_FALSE(VerifyPathControlledByUser(empty, base_dir_, uid_, ok_gids_)); in TEST_F()
[all …]