Home
last modified time | relevance | path

Searched refs:FakeFile (Results 1 – 10 of 10) sorted by relevance

/external/cpu_features/test/
Dfilesystem_for_testing.cc25 FakeFile::FakeFile(int file_descriptor, const char* content) in FakeFile() function in cpu_features::FakeFile
28 FakeFile::~FakeFile() { assert(!opened_); } in ~FakeFile()
30 void FakeFile::Open() { in Open()
35 void FakeFile::Close() { in Close()
40 int FakeFile::Read(int fd, void* buf, size_t count) { in Read()
53 FakeFile* FakeFilesystem::CreateFile(const std::string& filename, in CreateFile()
57 std::unique_ptr<FakeFile>(new FakeFile(next_file_descriptor_++, content)); in CreateFile()
61 FakeFile* FakeFilesystem::FindFileOrNull(const std::string& filename) const { in FindFileOrNull()
66 FakeFile* FakeFilesystem::FindFileOrDie(const int file_descriptor) const { in FindFileOrDie()
68 FakeFile* const file_ptr = filename_file_pair.second.get(); in FindFileOrDie()
Dfilesystem_for_testing.h27 class FakeFile {
29 explicit FakeFile(int file_descriptor, const char* content);
30 ~FakeFile();
48 FakeFile* CreateFile(const std::string& filename, const char* content);
49 FakeFile* FindFileOrDie(const int file_descriptor) const;
50 FakeFile* FindFileOrNull(const std::string& filename) const;
54 std::unordered_map<std::string, std::unique_ptr<FakeFile>> files_;
/external/llvm-project/clang-tools-extra/clangd/tool/
DCheck.cpp230 llvm::SmallString<0> FakeFile; in check() local
233 llvm::sys::path::system_temp_directory(false, FakeFile); in check()
234 llvm::sys::path::append(FakeFile, "test.cc"); in check()
235 File = FakeFile; in check()
/external/python/pyfakefs/docs/
Dapi.rst30 :pyfakefs.fake_filesystem.FakeFile:
Dmodules.rst21 .. autoclass:: pyfakefs.fake_filesystem.FakeFile
/external/python/pyfakefs/pyfakefs/
Dfake_filesystem.py212 class FakeFile: class
513 return super(FakeFile, self).__getattr__(item)
519 return super(FakeFile, self).__setattr__(key, value)
537 class FakeNullFile(FakeFile):
551 Deprecator.add(FakeFile, FakeFile.set_large_file_size, 'SetLargeFileSize')
552 Deprecator.add(FakeFile, FakeFile.set_contents, 'SetContents')
553 Deprecator.add(FakeFile, FakeFile.is_large_file, 'IsLargeFile')
556 class FakeFileFromRealFile(FakeFile):
596 class FakeDirectory(FakeFile):
607 FakeFile.__init__(
[all …]
/external/webrtc/tools_webrtc/mb/
Dmb_unittest.py87 return FakeFile(self.files)
99 class FakeFile(object): class
/external/python/cpython3/Lib/test/
Dtest_configparser.py1472 class FakeFile: class
1522 parser.read_file(FakeFile())
1523 parser.read_file(readline_generator(FakeFile()))
/external/llvm-project/clang/lib/Lex/
DHeaderSearch.cpp1535 auto *FakeFile = FileMgr.getVirtualFile(OriginalModuleMapFile, 0, 0); in loadModuleMapFile() local
1536 Dir = FakeFile->getDir(); in loadModuleMapFile()
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_test.py38 self.fake_file = fake_filesystem.FakeFile(
178 self.fake_file = fake_filesystem.FakeFile('foobar',
257 self.fake_file = fake_filesystem.FakeFile(