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 e7a13d632e4a32e4a2b449d92c77d77ed9965490..6ec2239cb39c861eeea6cbb7e161574d846addc7 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_utility', |
+ 'omaha_dev_win_history.json')) |
+ |
class FakeSubversionServer(_FakeFetcher): |
def __init__(self, base_path): |
_FakeFetcher.__init__(self, base_path) |
@@ -113,6 +120,7 @@ def ConfigureFakeFetchers(docs): |
''' |
appengine_wrappers.ConfigureFakeUrlFetch({ |
url_constants.OMAHA_PROXY_URL: FakeOmahaProxy(docs), |
+ re.escape(url_constants.OMAHA_DEV_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), |