Home
last modified time | relevance | path

Searched refs:FakeFilesystem (Results 1 – 15 of 15) sorted by relevance

/external/cpu_features/test/
Dfilesystem_for_testing.cc51 void FakeFilesystem::Reset() { files_.clear(); } in Reset()
53 FakeFile* FakeFilesystem::CreateFile(const std::string& filename, in CreateFile()
61 FakeFile* FakeFilesystem::FindFileOrNull(const std::string& filename) const { in FindFileOrNull()
66 FakeFile* FakeFilesystem::FindFileOrDie(const int file_descriptor) const { in FindFileOrDie()
77 static FakeFilesystem* kFilesystem = new FakeFilesystem();
79 FakeFilesystem& GetEmptyFilesystem() { in GetEmptyFilesystem()
Dfilesystem_for_testing.h45 class FakeFilesystem {
57 FakeFilesystem& GetEmptyFilesystem();
/external/python/pyfakefs/pyfakefs/
Dfake_pathlib.py43 from pyfakefs.fake_filesystem import FakeFileOpen, FakeFilesystem
91 stat = _wrap_strfunc(FakeFilesystem.stat)
94 lambda fs, path: FakeFilesystem.stat(fs, path, follow_symlinks=False))
96 listdir = _wrap_strfunc(FakeFilesystem.listdir)
101 chmod = _wrap_strfunc(FakeFilesystem.chmod)
104 lchmod = _wrap_strfunc(lambda fs, path, mode: FakeFilesystem.chmod(
123 mkdir = _wrap_strfunc(FakeFilesystem.makedir)
125 unlink = _wrap_strfunc(FakeFilesystem.remove)
127 rmdir = _wrap_strfunc(FakeFilesystem.rmdir)
129 rename = _wrap_binary_strfunc(FakeFilesystem.rename)
[all …]
Dfake_filesystem.py314 self.filesystem: FakeFilesystem = filesystem
890 class FakeFilesystem: class
3254 Deprecator.add(FakeFilesystem, FakeFilesystem.get_disk_usage, 'GetDiskUsage')
3255 Deprecator.add(FakeFilesystem, FakeFilesystem.set_disk_usage, 'SetDiskUsage')
3256 Deprecator.add(FakeFilesystem,
3257 FakeFilesystem.change_disk_usage, 'ChangeDiskUsage')
3258 Deprecator.add(FakeFilesystem, FakeFilesystem.add_mount_point, 'AddMountPoint')
3259 Deprecator.add(FakeFilesystem, FakeFilesystem.stat, 'GetStat')
3260 Deprecator.add(FakeFilesystem, FakeFilesystem.chmod, 'ChangeMode')
3261 Deprecator.add(FakeFilesystem, FakeFilesystem.utime, 'UpdateTime')
[all …]
Dfake_filesystem_unittest.py58 set_uid, set_gid, reset_ids, PatchMode, FakeFile, FakeFilesystem
217 def fs(self) -> FakeFilesystem:
218 return cast(FakeFilesystem, self._stubber.fs)
510 self.fs: Optional[FakeFilesystem] = None
732 self.fs = fake_filesystem.FakeFilesystem(patcher=self)
888 def __init__(self, caller: Union[Patcher, TestCaseMixin, FakeFilesystem]): argument
897 self._fs: FakeFilesystem = caller.fs
898 elif isinstance(caller, FakeFilesystem):
906 def __enter__(self) -> FakeFilesystem:
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_test.py35 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
140 filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
151 filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
162 filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
174 filesystem = fake_filesystem.FakeFilesystem()
194 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
226 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
252 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
651 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
730 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
[all …]
Dtest_utils.py418 self.filesystem = fake_filesystem.FakeFilesystem(
Dfake_filesystem_unittest_test.py613 fs = fake_filesystem.FakeFilesystem()
685 self.assertIsInstance(self.fs, fake_filesystem.FakeFilesystem)
Dfake_filesystem_vs_real_test.py112 self.fake_filesystem = fake_filesystem.FakeFilesystem()
Dfake_pathlib_test.py1088 self.filesystem = fake_filesystem.FakeFilesystem(
Dfake_os_test.py4827 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
/external/python/pyfakefs/docs/
Dmodules.rst14 .. autoclass:: pyfakefs.fake_filesystem.FakeFilesystem
Dusage.rst730 ``fake_filesystem_unittest.TestCase`` and ``fake_filesystem.FakeFilesystem``.
772 system, you can change ``pyfakefs.FakeFilesystem.os`` to one of
778 Setting the ``os`` attributes changes a number of ``pyfakefs.FakeFilesystem``
/external/python/pyfakefs/
DCHANGES.md130 * added `FakeFilesystem.create_link` convenience method which creates
214 * add possibility to set file system OS via `FakeFilesystem.os`
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config_unittest.py1555 fake_fs = fake_filesystem.FakeFilesystem()