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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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/fake_fetchers.py
diff --git a/chrome/common/extensions/docs/server2/fake_fetchers.py b/chrome/common/extensions/docs/server2/fake_fetchers.py
index 3d1a720a566568c28f3ccc4c379ecf1b78894c4a..5f2be942240606fae331bf9529f0ec4768f73790 100644
--- a/chrome/common/extensions/docs/server2/fake_fetchers.py
+++ b/chrome/common/extensions/docs/server2/fake_fetchers.py
@@ -37,6 +37,13 @@ class FakeOmahaProxy(_FakeFetcher):
'branch_utility',
'first.json'))
+class FakeOmahaHistory(_FakeFetcher):
+ def fetch(self, url):
+ return self._ReadFile(os.path.join('server2',
+ 'test_data',
+ 'chrome_version_data_source',
+ 'omaha_beta_win_history.json'))
+
class FakeSubversionServer(_FakeFetcher):
def __init__(self, base_path):
_FakeFetcher.__init__(self, base_path)
@@ -111,6 +118,7 @@ def ConfigureFakeFetchers(docs):
'''
appengine_wrappers.ConfigureFakeUrlFetch({
url_constants.OMAHA_PROXY_URL: FakeOmahaProxy(docs),
+ re.escape(url_constants.OMAHA_BETA_HISTORY): FakeOmahaHistory(docs),
'%s/.*' % url_constants.SVN_URL: FakeSubversionServer(docs),
'%s/.*' % url_constants.VIEWVC_URL: FakeViewvcServer(docs),
'%s/commits/.*' % url_constants.GITHUB_URL: FakeGithubStat(docs),

Powered by Google App Engine
This is Rietveld 408576698