Searched refs:FakeFilesystem (Results 1 – 15 of 15) sorted by relevance
/external/cpu_features/test/ |
D | filesystem_for_testing.cc | 51 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()
|
D | filesystem_for_testing.h | 45 class FakeFilesystem { 57 FakeFilesystem& GetEmptyFilesystem();
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_pathlib.py | 43 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 …]
|
D | fake_filesystem.py | 314 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 …]
|
D | fake_filesystem_unittest.py | 58 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/ |
D | fake_filesystem_test.py | 35 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 …]
|
D | test_utils.py | 418 self.filesystem = fake_filesystem.FakeFilesystem(
|
D | fake_filesystem_unittest_test.py | 613 fs = fake_filesystem.FakeFilesystem() 685 self.assertIsInstance(self.fs, fake_filesystem.FakeFilesystem)
|
D | fake_filesystem_vs_real_test.py | 112 self.fake_filesystem = fake_filesystem.FakeFilesystem()
|
D | fake_pathlib_test.py | 1088 self.filesystem = fake_filesystem.FakeFilesystem(
|
D | fake_os_test.py | 4827 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
|
/external/python/pyfakefs/docs/ |
D | modules.rst | 14 .. autoclass:: pyfakefs.fake_filesystem.FakeFilesystem
|
D | usage.rst | 730 ``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/ |
D | CHANGES.md | 130 * 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/ |
D | base_config_unittest.py | 1555 fake_fs = fake_filesystem.FakeFilesystem()
|