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

Unified Diff: chrome/common/extensions/docs/server2/mock_file_system_test.py

Issue 151883009: Docserver: Make MockFileSystem not iterate over the entire file system as part (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoz and then some Created 6 years, 10 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
Index: chrome/common/extensions/docs/server2/mock_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/mock_file_system_test.py b/chrome/common/extensions/docs/server2/mock_file_system_test.py
index 4cc351a03854f18083b6c298a93f96a3b6a64248..f2fe7d4aaa9a5caa0167ec1380b66c55fca3896e 100755
--- a/chrome/common/extensions/docs/server2/mock_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/mock_file_system_test.py
@@ -83,7 +83,7 @@ class MockFileSystemTest(unittest.TestCase):
'404.html': '0',
'apps/': '0',
'extensions/': '0'
- }), fs.Stat('/'))
+ }), fs.Stat(''))
self.assertEqual(StatInfo('0'), fs.Stat('404.html'))
self.assertEqual(StatInfo('0', child_versions={
'a11y.html': '0',
@@ -100,7 +100,7 @@ class MockFileSystemTest(unittest.TestCase):
'404.html': '1',
'apps/': '0',
'extensions/': '0'
- }), fs.Stat('/'))
+ }), fs.Stat(''))
self.assertEqual(StatInfo('1'), fs.Stat('404.html'))
self.assertEqual(StatInfo('0', child_versions={
'a11y.html': '0',
@@ -122,7 +122,7 @@ class MockFileSystemTest(unittest.TestCase):
'404.html': '2',
'apps/': '2',
'extensions/': '0'
- }), fs.Stat('/'))
+ }), fs.Stat(''))
self.assertEqual(StatInfo('2'), fs.Stat('404.html'))
self.assertEqual(StatInfo('2', child_versions={
'a11y.html': '0',

Powered by Google App Engine
This is Rietveld 408576698