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

Unified Diff: chrome/common/extensions/docs/server2/compiled_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: rebase 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/compiled_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/compiled_file_system_test.py b/chrome/common/extensions/docs/server2/compiled_file_system_test.py
index 74eef3761ee8d5724ff0ab944ffac4000077043b..60570f7d8f85d85867d4f65f6932d5129314b46a 100755
--- a/chrome/common/extensions/docs/server2/compiled_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/compiled_file_system_test.py
@@ -139,8 +139,9 @@ class CompiledFileSystemTest(unittest.TestCase):
self.assertEqual(set(('file.html',)),
set(compiled_fs.GetFromFileListing('apps/fakedir').Get()))
- compiled_fs._file_system._obj['404.html'] = 'boom'
- compiled_fs._file_system._obj['apps']['fakedir']['boom.html'] = 'blam'
+ compiled_fs._file_system._path_values['404.html'] = 'boom'
+ compiled_fs._file_system._path_values['apps/fakedir/'] = [
+ 'file.html', 'boom.html']
self.assertEqual('404.html contents',
compiled_fs.GetFromFile('404.html').Get())
self.assertEqual(set(('file.html',)),

Powered by Google App Engine
This is Rietveld 408576698