| 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 9fc62095fc0fcd8f4ba018f9f0cf59f5734f64e8..26e94eed1b9c9366596dc052f360522652b64236 100644
|
| --- a/chrome/common/extensions/docs/server2/fake_fetchers.py
|
| +++ b/chrome/common/extensions/docs/server2/fake_fetchers.py
|
| @@ -68,14 +68,21 @@ class FakeViewvcServer(object):
|
| return '\n'.join(html)
|
| return _ReadFile(path)
|
|
|
| -class FakeGithub(object):
|
| +class FakeGithubStat(object):
|
| def fetch(self, url):
|
| return '{ "commit": { "tree": { "sha": 0} } }'
|
|
|
| +class FakeGithubZip(object):
|
| + def fetch(self, url):
|
| + return _ReadFile(os.path.join('test_data',
|
| + 'github_file_system',
|
| + 'apps_samples.zip'))
|
| +
|
| def ConfigureFakeFetchers():
|
| appengine_wrappers.ConfigureFakeUrlFetch({
|
| url_constants.OMAHA_PROXY_URL: FakeOmahaProxy(),
|
| '%s/.*' % url_constants.SVN_URL: FakeSubversionServer(),
|
| '%s/.*' % url_constants.VIEWVC_URL: FakeViewvcServer(),
|
| - '%s/.*' % url_constants.GITHUB_URL: FakeGithub()
|
| + '%s/commits/.*' % url_constants.GITHUB_URL: FakeGithubStat(),
|
| + '%s/zipball' % url_constants.GITHUB_URL: FakeGithubZip()
|
| })
|
|
|