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

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

Issue 10704252: Extensions Docs Server: Internal file system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up Created 8 years, 5 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/api_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source_test.py b/chrome/common/extensions/docs/server2/api_data_source_test.py
index 40ed2dc0e8cd3ede6f33bf68fc1dc2df5a501335..dea706126b4079a1c1bec9026ee42ff7d7e8e7c3 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -7,8 +7,8 @@ import json
import os
import unittest
-from fetcher_cache import FetcherCache
-from local_fetcher import LocalFetcher
+from file_system_cache import FileSystemCache
+from local_file_system import LocalFileSystem
from api_data_source import APIDataSource
class APIDataSourceTest(unittest.TestCase):
@@ -20,8 +20,7 @@ class APIDataSourceTest(unittest.TestCase):
return f.read()
def testSimple(self):
- fetcher = LocalFetcher(self._base_path)
- cache_builder = FetcherCache.Builder(fetcher, 0)
+ cache_builder = FileSystemCache.Builder(LocalFileSystem(self._base_path))
data_source = APIDataSource(cache_builder, './')
# Take the dict out of the list.
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698