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

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

Issue 18323018: Linking AvailabilityFinder with APIDataSource and intro-table templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HostFileSystemCreator, Intro Table data structure changes Created 7 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/patch_servlet_test.py
diff --git a/chrome/common/extensions/docs/server2/patch_servlet_test.py b/chrome/common/extensions/docs/server2/patch_servlet_test.py
index df2c74809a2c9d3c4e9000f02e0adbeeae6381bf..731da3aaee9eaff4aae451563b51851a085438ac 100755
--- a/chrome/common/extensions/docs/server2/patch_servlet_test.py
+++ b/chrome/common/extensions/docs/server2/patch_servlet_test.py
@@ -12,6 +12,7 @@ from patch_servlet import PatchServlet
from render_servlet import RenderServlet
from server_instance import ServerInstance
from servlet import Request
+from test_branch_utility import TestBranchUtility
from test_util import DisableLogging
_ALLOWED_HOST = 'https://chrome-apps-doc.appspot.com'
@@ -24,7 +25,10 @@ class _PatchServletDelegate(RenderServlet.Delegate):
def CreateAppSamplesFileSystem(self, object_store_creator):
return EmptyDirFileSystem()
- def CreateHostFileSystemForBranch(self, channel):
+ def CreateBranchUtility(self, object_store_creator):
+ return TestBranchUtility.CreateWithCannedData()
+
+ def CreateHostFileSystem(self, branch, revision=None):
return LocalFileSystem.Create()
class PatchServletTest(unittest.TestCase):

Powered by Google App Engine
This is Rietveld 408576698