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

Unified Diff: chrome/common/extensions/docs/server2/test_branch_utility.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: Revisions, Offline/Online Access (bypassed-hooks) Created 7 years, 7 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/test_branch_utility.py
diff --git a/chrome/common/extensions/docs/server2/test_branch_utility.py b/chrome/common/extensions/docs/server2/test_branch_utility.py
index 1c365a56869fe64d5538bf619c64fc0207b4e3a6..98d2b931b83086213e8f2d1f4f61dd7d5a7ebeec 100644
--- a/chrome/common/extensions/docs/server2/test_branch_utility.py
+++ b/chrome/common/extensions/docs/server2/test_branch_utility.py
@@ -8,5 +8,11 @@ class TestBranchUtility(object):
'''Mimics BranchUtility to return valid-ish data without needing omahaproxy
data.
'''
- def GetBranchForChannel(self, channel_name):
- return channel_name
+ def GetChannelInfo(self, channel_name):
+ class TestChannelInfo(object):
+ def __init__(self, name, branch, version):
+ self.name = name
+ self.branch = branch
+ self.version = version
+
+ return TestChannelInfo(channel_name, 0, 0)

Powered by Google App Engine
This is Rietveld 408576698