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

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

Issue 1151283007: Docserver overhaul: Gitiles away from me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove inform_users template to fix presubmit failure (it's now a redirect) Created 5 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
Index: chrome/common/extensions/docs/server2/caching_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/caching_file_system_test.py b/chrome/common/extensions/docs/server2/caching_file_system_test.py
index 45ce024c84aeafb450c77e57707d82ba3520b09d..51d063ce8c0748596c1eff6483614423ba88d39f 100755
--- a/chrome/common/extensions/docs/server2/caching_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/caching_file_system_test.py
@@ -292,26 +292,6 @@ class CachingFileSystemTest(unittest.TestCase):
# TODO(ahernandez): Test with a new instance CachingFileSystem so a
# different object store is utilized.
- def testVersionedStat(self):
- test_fs = TestFileSystem({
- 'bob': {
- 'bob0': 'bob/bob0 contents',
- 'bob1': 'bob/bob1 contents'
- }
- })
-
- # Create a versioned FileSystem and verify that multiple CachingFileSystem
- # instances wrapping it will share the same stat cache.
- mock_fs = MockFileSystem(test_fs)
- mock_fs.SetVersion('abcdefg')
-
- def run_and_expect_stat_count(paths, stat_count=0):
- file_system = self._CreateCachingFileSystem(mock_fs, start_empty=True)
- [file_system.Stat(path) for path in paths]
- self.assertTrue(*mock_fs.CheckAndReset(stat_count=stat_count))
-
- run_and_expect_stat_count(['bob/', 'bob/bob0', 'bob/bob1'], stat_count=1)
- run_and_expect_stat_count(['bob/', 'bob/bob0', 'bob/bob1'], stat_count=0)
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698