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

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

Issue 13470005: Refactor the devserver to make it easier to control caching (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cduvall, rebase Created 7 years, 8 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/example_zipper_test.py
diff --git a/chrome/common/extensions/docs/server2/example_zipper_test.py b/chrome/common/extensions/docs/server2/example_zipper_test.py
index f1a5185d190aad2f064972dcc894623a1b29988b..25819b4dc9620ef3b7b4e6c27e375b4a0be47b2c 100755
--- a/chrome/common/extensions/docs/server2/example_zipper_test.py
+++ b/chrome/common/extensions/docs/server2/example_zipper_test.py
@@ -9,19 +9,16 @@ import unittest
from compiled_file_system import CompiledFileSystem
from example_zipper import ExampleZipper
-from in_memory_object_store import InMemoryObjectStore
from local_file_system import LocalFileSystem
-from memcache_file_system import MemcacheFileSystem
+from caching_file_system import CachingFileSystem
class ExampleZipperTest(unittest.TestCase):
def setUp(self):
- object_store = InMemoryObjectStore('')
- self._file_system = MemcacheFileSystem(
- LocalFileSystem(os.path.join(sys.path[0], 'test_data')),
- object_store)
+ self._file_system = CachingFileSystem(
+ LocalFileSystem(os.path.join(sys.path[0], 'test_data')))
self._example_zipper = ExampleZipper(
self._file_system,
- CompiledFileSystem.Factory(self._file_system, object_store),
+ CompiledFileSystem.Factory(self._file_system),
'example_zipper')
def testCreateZip(self):
« no previous file with comments | « chrome/common/extensions/docs/server2/example_zipper.py ('k') | chrome/common/extensions/docs/server2/github_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698