Lines Matching refs:BaseFile
52 base_file_.reset(new BaseFile(base::FilePath(),
78 // Make sure the mock BrowserThread outlives the BaseFile to satisfy
103 base_file_.reset(new BaseFile(base::FilePath(),
143 BaseFile file(base::FilePath(),
169 BaseFile duplicate_file(file_name,
203 scoped_ptr<BaseFile> base_file_;
208 // Expect the file to survive deletion of the BaseFile instance.
224 // Mock file thread to satisfy debug checks in BaseFile.
398 BaseFile second_file(new_file_path,
487 // BaseFile; we use the pointer anyway and rely on the BaseFile not
488 // deleting the MockFileStream until the BaseFile is reset.
498 // Copy of mock_file_stream; we pass ownership and rely on the BaseFile
501 base_file_.reset(new BaseFile(mock_file_stream->get_path(),
527 // Create two |BaseFile|s with the same file, and attempt to write to both.
533 // Create another |BaseFile| referring to the file that |base_file_| owns.
548 base_file_.reset(new BaseFile(existing_file_name,
582 base_file_.reset(new BaseFile(readonly_file_name,
608 std::string empty(BaseFile::kSha256HashLen, '\x00');
609 EXPECT_TRUE(BaseFile::IsEmptyHash(empty));
610 std::string not_empty(BaseFile::kSha256HashLen, '\x01');
611 EXPECT_FALSE(BaseFile::IsEmptyHash(not_empty));
612 EXPECT_FALSE(BaseFile::IsEmptyHash(std::string()));