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

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

Issue 68873003: Docserver: Serve docs out of src/ not src/chrome/common/extensions. This allows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix samples Created 7 years, 1 month 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/host_file_system_provider_test.py
diff --git a/chrome/common/extensions/docs/server2/host_file_system_provider_test.py b/chrome/common/extensions/docs/server2/host_file_system_provider_test.py
index 01d166f16047d46fbcb989611a08a12c6039296f..73b35d6b23cc402ae9a1944bfec7950a99095f18 100755
--- a/chrome/common/extensions/docs/server2/host_file_system_provider_test.py
+++ b/chrome/common/extensions/docs/server2/host_file_system_provider_test.py
@@ -7,6 +7,7 @@ from copy import deepcopy
import unittest
from caching_file_system import CachingFileSystem
+from extensions_paths import API
from file_system import FileNotFoundError
from host_file_system_provider import HostFileSystemProvider
from object_store_creator import ObjectStoreCreator
@@ -16,7 +17,7 @@ from test_file_system import TestFileSystem
class HostFileSystemProviderTest(unittest.TestCase):
def setUp(self):
- self._idle_path = 'api/idle.json'
+ self._idle_path = '%s/idle.json' % API
self._canned_data = deepcopy(CANNED_API_FILE_SYSTEM_DATA)
def _constructor_for_test(self, branch, **optargs):
@@ -29,7 +30,8 @@ class HostFileSystemProviderTest(unittest.TestCase):
fs = creator.GetBranch('1500')
first_read = fs.ReadSingle(self._idle_path).Get()
- self._canned_data['1500']['api']['idle.json'] = 'blah blah blah'
+ self._canned_data['1500']['chrome']['common']['extensions'].get('api'
+ )['idle.json'] = 'blah blah blah'
second_read = fs.ReadSingle(self._idle_path).Get()
self.assertEqual(first_read, second_read)

Powered by Google App Engine
This is Rietveld 408576698