Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py

Issue 2066963002: Add file permissions to filesystem_mock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: corrected filesystem make_executable to copy permissions to new file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py
index 42d83c0a516dd38bc64e3c377de012bf2e1e7aa7..f0a6b1bf587726c5e3a12ed8f562e1054a34a669 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock_unittest.py
@@ -111,3 +111,11 @@ class MockFileSystemTest(unittest.TestCase, filesystem_unittest.GenericFileSyste
('foo/a', ['z'], ['x', 'y']),
('foo/a/z', [], ['lyrics']),
('foo/bar', [], ['quux', 'baz'])])
+
+ def test_executable(self):
+ host = MockHost()
+ mock_files = {'foo': '', 'bar': ''}
+ host.filesystem = MockFileSystem(files=mock_files)
+ host.filesystem.executable_files.add('bar')
+ host.filesystem.make_executable('bar', 'foo')
+ self.assertEquals(host.filesystem.is_executable('foo'), True)
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698